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

Commit 2756ef0e authored by Hemant Kumar's avatar Hemant Kumar
Browse files

mhi: core: Abort system suspend to process pending events



mhi_trigger_resume() notifies the PM core of a wakeup event but
it does not request to abort the suspend. This causes event ring to
become full as mhi_runtime_resume() is not getting called to
process the events. Fix this issue by calling pm_wakeup_hard_event()
which kicks in pm resume.

CRs-Fixed: 2524066
Change-Id: I578d73cb48d8572edadf0e09e21906332c98d17a
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent c511abcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -764,7 +764,7 @@ static inline void mhi_trigger_resume(struct mhi_controller *mhi_cntrl)
{
	mhi_cntrl->runtime_get(mhi_cntrl, mhi_cntrl->priv_data);
	mhi_cntrl->runtime_put(mhi_cntrl, mhi_cntrl->priv_data);
	pm_wakeup_event(&mhi_cntrl->mhi_dev->dev, 0);
	pm_wakeup_hard_event(&mhi_cntrl->mhi_dev->dev);
}

/* queue transfer buffer */