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

Commit 6dbc762d authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Gerrit - the friendly Code Review server
Browse files

mhi: core: do not notify controller of RDDM EE more than once



MHI core driver ends up notifying controller of RDDM EE
more than once in cases where back to back transitions such as
FORCE_RDDM followed by POWER_OFF are initiated.

Change-Id: I2fe854f04c3fac7bee124f6270b88e5154facb0b
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 4082b9d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1621,7 +1621,7 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
	write_unlock_irq(&mhi_cntrl->pm_lock);

	/* if device in rddm don't bother processing sys error */
	if (mhi_cntrl->ee == MHI_EE_RDDM) {
	if (mhi_cntrl->ee == MHI_EE_RDDM && ee != MHI_EE_DISABLE_TRANSITION) {
		if (mhi_cntrl->ee != ee) {
			mhi_cntrl->status_cb(mhi_cntrl, mhi_cntrl->priv_data,
					     MHI_CB_EE_RDDM);