mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "mhi: core: do not toggle PCIe low power mode in sleeping context"
This commit is contained in:
commit
f417c81eb1
1 changed files with 2 additions and 0 deletions
|
|
@ -2498,6 +2498,7 @@ int mhi_get_remote_time_sync(struct mhi_device *mhi_dev,
|
|||
ret = -EIO;
|
||||
goto error_invalid_state;
|
||||
}
|
||||
read_unlock_bh(&mhi_cntrl->pm_lock);
|
||||
|
||||
/* disable link level low power modes */
|
||||
ret = mhi_cntrl->lpm_disable(mhi_cntrl, mhi_cntrl->priv_data);
|
||||
|
|
@ -2520,6 +2521,7 @@ int mhi_get_remote_time_sync(struct mhi_device *mhi_dev,
|
|||
|
||||
mhi_cntrl->lpm_enable(mhi_cntrl, mhi_cntrl->priv_data);
|
||||
|
||||
read_lock_bh(&mhi_cntrl->pm_lock);
|
||||
error_invalid_state:
|
||||
mhi_cntrl->wake_put(mhi_cntrl, false);
|
||||
read_unlock_bh(&mhi_cntrl->pm_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue