mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "scsi: ufs: Narrow down fast pass in system suspend path"
This commit is contained in:
commit
dcb612382b
1 changed files with 2 additions and 1 deletions
|
|
@ -9073,7 +9073,8 @@ int ufshcd_system_suspend(struct ufs_hba *hba)
|
|||
if (!hba || !hba->is_powered)
|
||||
return 0;
|
||||
|
||||
if ((ufs_get_pm_lvl_to_dev_pwr_mode(hba->spm_lvl) ==
|
||||
if (pm_runtime_suspended(hba->dev) &&
|
||||
(ufs_get_pm_lvl_to_dev_pwr_mode(hba->spm_lvl) ==
|
||||
hba->curr_dev_pwr_mode) &&
|
||||
(ufs_get_pm_lvl_to_link_pwr_state(hba->spm_lvl) ==
|
||||
hba->uic_link_state))
|
||||
|
|
|
|||
Loading…
Reference in a new issue