ufs: ufs-qcom: Set spm level 5 for S2D
Set spm level to lvl 5 in case of S2D while suspending the UFS device. Change-Id: I5ebe7331cb34df94226b598bde05da38a5f1468d Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
This commit is contained in:
parent
4ae21af50c
commit
4d21535445
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user