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

Commit 7d71490f authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

scsi: ufs-qcom: don't disable host PHY ref_clk during aggressive gating



Enabling & disabling host PHY ref_clk generally may have high latencies
hence don't disable them during aggresive clock gating otherwise it could
affect the UFS performance badly.

Change-Id: I1741c75a6295c7c0b0d77ff578ab977213dcc484
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent ff134c6d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1283,6 +1283,7 @@ static int ufs_qcom_setup_clocks(struct ufs_hba *hba, bool on,
		/* M-PHY RMMI interface clocks can be turned off */
		ufs_qcom_phy_disable_iface_clk(host->generic_phy);
		if (!ufs_qcom_is_link_active(hba)) {
			if (!is_gating_context)
				/* turn off UFS local PHY ref_clk */
				ufs_qcom_phy_disable_ref_clk(host->generic_phy);
			/* disable device ref_clk */