diff --git a/drivers/bus/mhi/core/mhi_pm.c b/drivers/bus/mhi/core/mhi_pm.c index 06a970d47631..36ddf0be3b64 100644 --- a/drivers/bus/mhi/core/mhi_pm.c +++ b/drivers/bus/mhi/core/mhi_pm.c @@ -1517,6 +1517,13 @@ int mhi_pm_fast_resume(struct mhi_controller *mhi_cntrl, bool notify_client) } if (mhi_cntrl->rddm_supported) { + + /* check EP is in proper state */ + if (mhi_cntrl->link_status(mhi_cntrl, mhi_cntrl->priv_data)) { + MHI_ERR("Unable to access EP Config space\n"); + return -EIO; + } + if (mhi_get_exec_env(mhi_cntrl) == MHI_EE_RDDM && !mhi_cntrl->power_down) { mhi_cntrl->ee = MHI_EE_RDDM;