mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "mhi: core: Check for pm error state before asserting dev wake"
This commit is contained in:
commit
e15bf3bcf8
1 changed files with 5 additions and 0 deletions
|
|
@ -1517,6 +1517,11 @@ int __mhi_device_get_sync(struct mhi_controller *mhi_cntrl)
|
|||
int ret;
|
||||
|
||||
read_lock_bh(&mhi_cntrl->pm_lock);
|
||||
if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) {
|
||||
read_unlock_bh(&mhi_cntrl->pm_lock);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
mhi_cntrl->wake_get(mhi_cntrl, true);
|
||||
read_unlock_bh(&mhi_cntrl->pm_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue