From 8407d797f064168a0ac8462564bb9068b5f0e2a0 Mon Sep 17 00:00:00 2001 From: Lazarus Motha Date: Thu, 2 Jun 2022 13:34:50 -0700 Subject: [PATCH] mhi: host: Notify MHI clients about fatal error Currently fatal error notification is done from fast resume path. This does not cover RDDM EE change via BHI Intvec. As a result of the some critical clients are unable to perform cleanup and does not come up after recovery. In case if RDDM EE change never comes notify clients from mhi force reset context. Change-Id: Iea1f1d86e9a28c08e8d58100715004f3b2abfd96 Signed-off-by: Hemant Kumar Signed-off-by: Lazarus Motha --- drivers/bus/mhi/host/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c index e8d689e5f9b3..9baae90e4fbe 100644 --- a/drivers/bus/mhi/host/main.c +++ b/drivers/bus/mhi/host/main.c @@ -552,6 +552,9 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv) case MHI_EE_RDDM: /* proceed if power down is not already in progress */ if (mhi_cntrl->rddm_image && mhi_is_active(mhi_cntrl)) { + /* notify critical clients with early notifications */ + mhi_report_error(mhi_cntrl); + mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_RDDM); mhi_cntrl->ee = ee; wake_up_all(&mhi_cntrl->state_event);