bus: mhi: host: Skip power down if RDDM is supported and power up fails

Skip power down if RDDM is supported and power up fails as the
CNSS handling requires it.

Change-Id: I88a2f9e0ea29dd04f76a3a6facb421ac61789bce
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
This commit is contained in:
Bhaumik Bhatt 2021-09-16 17:03:01 -07:00 committed by Gerrit - the friendly Code Review server
parent f82f2340d8
commit d933db57d7

View File

@ -1238,7 +1238,7 @@ int mhi_sync_power_up(struct mhi_controller *mhi_cntrl)
msecs_to_jiffies(mhi_cntrl->timeout_ms));
ret = (MHI_IN_MISSION_MODE(mhi_cntrl->ee)) ? 0 : -ETIMEDOUT;
if (ret)
if (ret && !mhi_cntrl->rddm_image)
mhi_power_down(mhi_cntrl, false);
return ret;