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

Commit a58cf90d authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Venkat Gopalakrishnan
Browse files

scsi: ufs-qcom: skip svs2 configuration for newer controllers



Newer QCOM UFS host controller doesn't need to execute
the special LPM mode configuration when switching to SVS2
mode. This change looks at the host controller version
to bypass this special configuration for newer controller
version.

Change-Id: Ib84663955c0c0db6124819c4c4749e5c347a3495
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent b938e348
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2087,6 +2087,11 @@ static inline int ufs_qcom_configure_lpm(struct ufs_hba *hba, bool enable)
	if (!ufs_qcom_cap_svs2(host))
		goto out;

	if (!((host->hw_ver.major == 0x3) &&
	    (host->hw_ver.minor == 0x0) &&
	    (host->hw_ver.step == 0x0)))
		goto out;

	/*
	 * The link should be put in hibern8 state before
	 * configuring the PHY to enter/exit SVS2 mode.