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: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
This commit is contained in:
parent
8cdca82049
commit
461a7044f1
1 changed files with 4 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue