From 3ed15b23a6885f529de50cc2830a262bc3be187f Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Mon, 12 Jul 2021 15:51:13 +0530 Subject: [PATCH] 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 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index 68b99921be2f..1ca4c4b77d96 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1346,9 +1346,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);