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

Commit 492cafd9 authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Sujit Reddy Thumma
Browse files

scsi: ufs-msm: switch off PHY PLL power rail during hibern8



If UniPro link is in Hibern8 state, low noise analog power rail for PLL
can be switched off along with main PHY analog power.

Change-Id: I20b113e5f004c824c330f72dc7649dac961bfe3e
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent a7883066
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -1259,16 +1259,13 @@ static int msm_ufs_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op)
	msm_ufs_disable_phy_iface_clk(phy);

	/*
	 * If UniPro link is not active, PHY ref_clk and main PHY analog power
	 * can be switched off.
	 * If UniPro link is not active, PHY ref_clk, main PHY analog power
	 * rail and low noise analog power rail for PLL can be switched off.
	 */
	if (!ufshcd_is_link_active(hba)) {
		msm_ufs_disable_phy_ref_clk(phy);
		ret = msm_ufs_phy_disable_vreg(phy, &phy->vdda_phy);
		/*
		 * TODO: Check if "vdda_pll" can voted off when link is hibern8
		 * or power off state?
		 */
		msm_ufs_phy_disable_vreg(phy, &phy->vdda_phy);
		msm_ufs_phy_disable_vreg(phy, &phy->vdda_pll);
	}

out: