Merge "ufs: ufs-qcom: Set spm level 5 for S2D"

This commit is contained in:
qctecmdr 2024-06-19 00:45:22 -07:00 committed by Gerrit - the friendly Code Review server
commit 939ed9cfe5

View File

@ -6073,11 +6073,16 @@ static void ufs_qcom_resume_complete(struct device *dev)
static int ufs_qcom_system_freeze(struct device *dev)
{
struct ufs_hba *hba = NULL;
if (!is_bootdevice_ufs) {
dev_info(dev, "UFS is not boot dev.\n");
return 0;
}
hba = dev_get_drvdata(dev);
hba->spm_lvl = UFS_PM_LVL_5;
return ufshcd_system_freeze(dev);
}