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

Commit ce95d364 authored by Skylar Chang's avatar Skylar Chang Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: fix for wakelock refcnt



When IPA driver votes for IPA power collapse it first checks if
channels are empty. In case that the channels are not empty,
a wakelock needs to be acquired before starting to process the packets.

Change-Id: Ib4d5942e374efc4ceb195e6ccdc446ed8a06aeb0
CRs-Fixed: 2031601
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 080d32f9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5749,6 +5749,7 @@ static void ipa3_gsi_poll_after_suspend(struct ipa3_ep_context *ep)
		/* queue a work to start polling if don't have one */
		atomic_set(&ipa3_ctx->transport_pm.eot_activity, 1);
		if (!atomic_read(&ep->sys->curr_polling_state)) {
			ipa3_inc_acquire_wakelock();
			atomic_set(&ep->sys->curr_polling_state, 1);
			queue_work(ep->sys->wq, &ep->sys->work);
		}