qcacmn: Avoid shadow register access when link is down

When the scheduler thread initiates the WMA_SET_BSSKEY_REQ
we send CMD_UPDATE_RX_REO_QUEUE to REO srng. This is done by
posting a descriptor to the reo command ring and then we
update the HP so that the HW can consume the descriptor.
Avoid accessing HP shadow address when we are in runtime
suspend state. Perform a hif_pm_runtime_get to resume the
link and access the shadow register and once done initiate a
hif_pm_runtime_put to allow device to go into runtime
suspend.

Change-Id: I24c3e046a5769f03a0f1969360cccdbe55b81d45
CRs-Fixed: 2495720
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-08-01 11:22:04 -07:00
zatwierdzone przez nshrivas
rodzic 1f79c8fbe0
commit 5ee6efde61
3 zmienionych plików z 34 dodań i 10 usunięć

Wyświetl plik

@@ -284,6 +284,9 @@ struct hal_srng {
} u;
struct hal_soc *hal_soc;
/* Number of times hp/tp updated in runtime resume */
uint32_t needs_flush;
};
/* HW SRNG configuration table */