Merge "mhi: core: Move to error state as soon as RDDM is detected"

This commit is contained in:
qctecmdr 2020-07-13 22:34:39 -07:00 • committed by Gerrit - the friendly Code Review server
commit 4575c8b1b9

View file

@ -1660,13 +1660,14 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
write_unlock_irq(&mhi_cntrl->pm_lock);
MHI_ERR("RDDM event occurred!\n");
mhi_cntrl->status_cb(mhi_cntrl, mhi_cntrl->priv_data,
MHI_CB_EE_RDDM);
wake_up_all(&mhi_cntrl->state_event);
/* notify critical clients with early notifications */
mhi_control_error(mhi_cntrl);
mhi_cntrl->status_cb(mhi_cntrl, mhi_cntrl->priv_data,
MHI_CB_EE_RDDM);
wake_up_all(&mhi_cntrl->state_event);
goto exit_intvec;
}