From d933db57d7054ec28cc754ecb88a6a58534d38d7 Mon Sep 17 00:00:00 2001 From: Bhaumik Bhatt Date: Thu, 16 Sep 2021 17:03:01 -0700 Subject: [PATCH] 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 Signed-off-by: Lazarus Motha --- drivers/bus/mhi/host/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mhi/host/pm.c b/drivers/bus/mhi/host/pm.c index b4854cf4f772..4841984fefc4 100644 --- a/drivers/bus/mhi/host/pm.c +++ b/drivers/bus/mhi/host/pm.c @@ -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;