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

Commit 7225e281 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

scsi: ufs-msm: avoid powering off the device during system suspend



Powering off the device during system suspend cause regressions
and device may go bad. This is mainly because of specification
violation of not holding RST_n line LOW during power up. Since
RST_n line cannot be controlled from software, avoid powering off
the device in first place.

Change-Id: I5cdb3b3b1685222d69717f079dc9fc43c97b01bf
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent 73041ee4
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1829,12 +1829,11 @@ static int msm_ufs_init(struct ufs_hba *hba)
	msm_ufs_advertise_quirks(hba);
	if (hba->quirks & UFSHCD_QUIRK_BROKEN_SUSPEND) {
		/*
		 * During runtime suspend keep the device and the link active
		 * but shut-off the system clocks. During system suspend power
		 * off both link and device.
		 * During suspend keep the device and the link active
		 * but shut-off the system clocks.
		 */
		hba->rpm_lvl = UFS_PM_LVL_0;
		hba->spm_lvl = UFS_PM_LVL_4;
		hba->spm_lvl = UFS_PM_LVL_0;

	} else if (hba->quirks & UFSHCD_QUIRK_BROKEN_HIBERN8) {
		/*