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

Commit 9e03d297 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Hemant Kumar
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 c511abcf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1569,7 +1569,8 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
		state = mhi_get_mhi_state(mhi_cntrl);
		ee = mhi_cntrl->ee;
		mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
		MHI_LOG("device ee:%s dev_state:%s\n",
		MHI_LOG("local ee: %s device ee:%s dev_state:%s\n",
			TO_MHI_EXEC_STR(ee),
			TO_MHI_EXEC_STR(mhi_cntrl->ee),
			TO_MHI_STATE_STR(state));
	}
@@ -1582,7 +1583,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);