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

Commit 33afeeb1 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: fix clock issue which cause poll_mode out of sync



The pm_activate in irq_rx_schedule_poll can be in progress
and a workqueue will be started to enable NAPI. The NAPI poll and
pm_activate can happen in the same time which will cause the
poll_mode in ipa and gsi out of sync. The fix is to add the
pm_activate_sync in workqueue and make sure the clock enabled
before start NAPI.

Change-Id: Ie7ee843e83817e46f8507bb179dc8fd90b095675
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 84f39b76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1512,6 +1512,8 @@ static void ipa3_wq_handle_rx(struct work_struct *work)
	if (sys->ep->napi_enabled) {
		if (!ipa3_ctx->use_ipa_pm)
			IPA_ACTIVE_CLIENTS_INC_SPECIAL("NAPI");
		else
			ipa_pm_activate_sync(sys->pm_hdl);
		sys->ep->client_notify(sys->ep->priv,
				IPA_CLIENT_START_POLL, 0);
	} else