summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarada Prasanna Garnayak <sgarna@codeaurora.org>2016-12-29 16:41:35 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-16 19:56:54 -0800
commit9e08913c6061da105cb97c2fcee9b3655652596c (patch)
tree40b85f239eae37cc648aae2285a65669a7b05966
parent02547378692da674db13085ab8f3c8f839e5bc54 (diff)
qcacld-3.0: Runtime PM packets tagging after wow suspend
qcacld-2.0 to qcacld-3.0 propagation Don't Tag Non-WoW packets as Runtime PM packets after wow suspend. Some WMI Commands can be send in Runtime PM context and MC thread context. Packets coming via MC Thread Context can be tagged as Runtime PM packets when runtime pm in progress. Packets should be tagged in the same caller context to avoid any race condition. Being stability issue, addressing this issue by not tagging any non-wow commands as runtime pm after wow suspend. This will ensure all the non-wow packets coming after wow_suspend flag is set as non runtime pm packets and will trigger a runtime resume. Git-commit: 4a396d80c5cc2ded75098c61426521b9b2762c17 Git-commit: 2ee4bf4791cc5db30ec03eceaf591367deffe39a CRs-Fixed: 1106513 Change-Id: Ic83fedd645a86d48feecf54c407bb46a9afda24b
-rw-r--r--core/wma/src/wma_features.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index ba5481b3e753..a94d4ec351ac 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -3559,12 +3559,10 @@ int wma_pdev_resume_event_handler(void *handle, uint8_t *event, uint32_t len)
*/
static inline void wma_set_wow_bus_suspend(tp_wma_handle wma, int val)
{
-
qdf_atomic_set(&wma->is_wow_bus_suspended, val);
+ wmi_set_is_wow_bus_suspended(wma->wmi_handle, val);
}
-
-
/**
* wma_add_wow_wakeup_event() - Configures wow wakeup events.
* @wma: wma handle
@@ -4801,6 +4799,7 @@ static QDF_STATUS wma_send_host_wakeup_ind_to_fw(tp_wma_handle wma)
wmi_get_host_credits(wma->wmi_handle));
if (!cds_is_driver_recovering()) {
if (pMac->sme.enableSelfRecovery) {
+ wmi_tag_crash_inject(wma->wmi_handle, true);
cds_trigger_recovery(false);
} else {
QDF_BUG(0);