Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ed15b23 authored by Karthik Kantamneni's avatar Karthik Kantamneni Committed by Madan Koyyalamudi
Browse files

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
parent 7dcd9caa
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);