mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "mhi: core: Skip handling MSI0 if MHI register access is not allowed"
This commit is contained in:
commit
c1f9871880
1 changed files with 11 additions and 8 deletions
|
|
@ -1613,16 +1613,19 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev)
|
|||
MHI_VERB("Enter\n");
|
||||
|
||||
write_lock_irq(&mhi_cntrl->pm_lock);
|
||||
if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
|
||||
state = mhi_get_mhi_state(mhi_cntrl);
|
||||
ee = mhi_cntrl->ee;
|
||||
mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
|
||||
MHI_LOG("local ee: %s device ee:%s dev_state:%s\n",
|
||||
TO_MHI_EXEC_STR(ee),
|
||||
TO_MHI_EXEC_STR(mhi_cntrl->ee),
|
||||
TO_MHI_STATE_STR(state));
|
||||
if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
|
||||
write_unlock_irq(&mhi_cntrl->pm_lock);
|
||||
goto exit_intvec;
|
||||
}
|
||||
|
||||
state = mhi_get_mhi_state(mhi_cntrl);
|
||||
ee = mhi_cntrl->ee;
|
||||
mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
|
||||
MHI_LOG("local ee: %s device ee:%s dev_state:%s\n",
|
||||
TO_MHI_EXEC_STR(ee),
|
||||
TO_MHI_EXEC_STR(mhi_cntrl->ee),
|
||||
TO_MHI_STATE_STR(state));
|
||||
|
||||
if (state == MHI_STATE_SYS_ERR) {
|
||||
MHI_ERR("MHI system error detected\n");
|
||||
pm_state = mhi_tryset_pm_state(mhi_cntrl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue