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

Commit 5193a94c authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: core: fix returning incorrect code when entering rddm mode



Exit from mhi_force_rddm_mode returns failure in success case, fix
return code.

CRs-Fixed: 2336233
Change-Id: I6b5d7134e6c32b788dfb2f2ffb329079945bb5d1
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 11ed50d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1128,7 +1128,7 @@ int mhi_force_rddm_mode(struct mhi_controller *mhi_cntrl)
	ret = wait_event_timeout(mhi_cntrl->state_event,
				 mhi_cntrl->ee == MHI_EE_RDDM,
				 msecs_to_jiffies(mhi_cntrl->timeout_ms));
	ret = !ret ? 0 : -EIO;
	ret = ret ? 0 : -EIO;

	MHI_LOG("Exiting with pm_state:%s ee:%s ret:%d\n",
		to_mhi_pm_state_str(mhi_cntrl->pm_state),