From c0bf9bd9ff8f73166b13716fee949928147dee52 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Wed, 26 May 2021 10:26:30 +0530 Subject: [PATCH] qcacld-3.0: Set intermediate EP vote access Set intermediate EP vote access before host wake up indication smp2p is sent to F.W, this helps to avoid smp2p override. Change-Id: I4b998ee5ea6b26921855bfbae434869fb93accf9 CRs-Fixed: 2953883 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index e2e02f48154c..c59ba67a5d48 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1343,7 +1343,7 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw( hif_ctx = pmo_core_psoc_get_hif_handle(psoc); hif_set_ep_vote_access(hif_ctx, HIF_EP_VOTE_NONDP_ACCESS, - HIF_EP_VOTE_ACCESS_ENABLE); + HIF_EP_VOTE_INTERMEDIATE_ACCESS); qdf_event_reset(&psoc_ctx->wow.target_resume); @@ -1371,6 +1371,9 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw( pmo_debug("Host wakeup received"); pmo_tgt_update_target_suspend_flag(psoc, false); pmo_tgt_update_target_suspend_acked_flag(psoc, false); + hif_set_ep_vote_access(hif_ctx, + HIF_EP_VOTE_NONDP_ACCESS, + HIF_EP_VOTE_ACCESS_ENABLE); hif_set_ep_vote_access(hif_ctx, HIF_EP_VOTE_DP_ACCESS, HIF_EP_VOTE_ACCESS_ENABLE);