]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: ufs: qcom : Refactor phy_power_on/off calls
authorNitin Rawat <quic_nitirawa@quicinc.com>
Mon, 26 May 2025 15:38:21 +0000 (21:08 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 15 Jun 2025 14:23:24 +0000 (19:53 +0530)
commit77d2fa54a94574f767d5fb296b6b8e011eba0c8e
tree6dc1ed91863b0f444d2b4ea5d8edf1d5227a9a27
parenta079b2d715340482e425ff136b55810ab8279800
scsi: ufs: qcom : Refactor phy_power_on/off calls

Commit 3f6d1767b1a0 ("phy: ufs-qcom: Refactor all init steps into
phy_poweron") moved the phy_power_on/off from ufs_qcom_setup_clocks
to suspend/resume func.

To have a better power saving, remove the phy_power_on/off calls from
resume/suspend path and put them back to ufs_qcom_setup_clocks, so that
PHY regulators & clks can be turned on/off along with UFS's clocks.

Since phy phy_power_on is separated out from phy calibrate, make
separate calls to phy_power_on calls from ufs qcom driver.

Co-developed-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20250526153821.7918-11-quic_nitirawa@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/ufs/host/ufs-qcom.c