Merge "scsi: ufs: Narrow down fast pass in system suspend path"

This commit is contained in:
qctecmdr 2021-05-06 22:23:01 -07:00 • committed by Gerrit - the friendly Code Review server
commit dcb612382b

View file

@ -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))