From b8159e3b1accbd65fcd4a7a55472f98dfc7a5a28 Mon Sep 17 00:00:00 2001 From: Vivek Pernamitta Date: Wed, 30 Jun 2021 23:57:14 +0530 Subject: [PATCH] mhi: core: Notify all mhi client's for PCIe link down recovery send early notification to all MHI clients devices on PCIe linkdown recovery when device supports RDDM dumps. so all client channels registered to MHI will receive completion event. Change-Id: I3c25d69b7d43afe2701fe5fae705533faf6f4dd1 Signed-off-by: Vivek Pernamitta --- drivers/bus/mhi/core/mhi_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/mhi/core/mhi_pm.c b/drivers/bus/mhi/core/mhi_pm.c index 0fad46875bab..49a425a6e374 100644 --- a/drivers/bus/mhi/core/mhi_pm.c +++ b/drivers/bus/mhi/core/mhi_pm.c @@ -1063,8 +1063,8 @@ void mhi_control_error(struct mhi_controller *mhi_cntrl) sfr_info->buf_addr); } - /* link is not down if device is in RDDM */ - transition_state = (mhi_cntrl->ee == MHI_EE_RDDM) ? + /* link is not down if device supports RDDM */ + transition_state = (mhi_cntrl->rddm_supported) ? MHI_PM_DEVICE_ERR_DETECT : MHI_PM_LD_ERR_FATAL_DETECT; write_lock_irq(&mhi_cntrl->pm_lock);