Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcb61238 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents ede504ce 2c3b3ab9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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))