瀏覽代碼

qcacld-3.0: Wait for reg work completion before EP access state transistion

Currently intermediate EP vote access is set without checking
for previous state and reg work handler completion.
In some of the error scenarios when resume is triggered from
suspend path, EP vote access is still enabled and work handler
will be scheduled for register updates.
So make sure reg work is completed before setting intermediate access.

Change-Id: I7a1e55c188b9a9e85309dd44ac03651181499674
CRs-Fixed: 2994039
Karthik Kantamneni 3 年之前
父節點
當前提交
dd234699a9
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 2 - 3
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -1356,9 +1356,8 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw(
 	pmo_enter();
 
 	hif_ctx = pmo_core_psoc_get_hif_handle(psoc);
-	hif_set_ep_vote_access(hif_ctx,
-			       HIF_EP_VOTE_NONDP_ACCESS,
-			       HIF_EP_VOTE_INTERMEDIATE_ACCESS);
+
+	hif_set_ep_intermediate_vote_access(hif_ctx);
 
 	qdf_event_reset(&psoc_ctx->wow.target_resume);