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

Commit bb2d5f08 authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
Browse files

mhi: core: add missing break in fast resume path



When resuming from fast suspend, MHI sees that device wake
remains asserted if device was previously in M0. This causes
power regression on the device. Avoid asserting device wake
twice if we moved to fast suspend from MHI M0 state.

CRs-Fixed: 2511779
Change-Id: Iaf754ea1bc488dae1bb39dfbbd1ed2e898f3eb1f
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 5cad42a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1335,6 +1335,7 @@ int mhi_pm_fast_resume(struct mhi_controller *mhi_cntrl, bool notify_client)
	switch (mhi_cntrl->pm_state) {
	case MHI_PM_M0:
		mhi_pm_m0_transition(mhi_cntrl);
		break;
	case MHI_PM_M2:
		read_lock_bh(&mhi_cntrl->pm_lock);
		mhi_cntrl->wake_get(mhi_cntrl, true);