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

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

mhi: core: do not process sys_error if rddm mode is supported



Device that support RDDM do not require processing SYS_ERROR since
it's redundant. This change avoid processing sys error if rddm
is supported by the device.

CRs-Fixed: 2495678
Change-Id: I47ca39bda7b5b17e16ae62aa44a0d9bdb93e650d
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent a3216fd9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1175,6 +1175,15 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl,
			{
				enum MHI_PM_STATE new_state;

				/*
				 * Don't process sys error if device support
				 * rddm since we will be processing rddm ee
				 * event instead of sys error state change event
				 */
				if (mhi_cntrl->ee == MHI_EE_RDDM ||
				    mhi_cntrl->rddm_image)
					break;

				MHI_ERR("MHI system error detected\n");
				write_lock_irq(&mhi_cntrl->pm_lock);
				new_state = mhi_tryset_pm_state(mhi_cntrl,