]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: ufs-qcom: Disable lane clocks during phy hibern8
authorPalash Kambar <quic_pkambar@quicinc.com>
Tue, 9 Sep 2025 05:51:49 +0000 (11:21 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Sep 2025 01:50:41 +0000 (21:50 -0400)
commitc1553fc105dff28f79bef90fab207235f5f2d977
tree1a3db18db6d912d789666f4df560a87ce4e960d7
parent0bd0e43776b6a0ff5f7aa3783f547849356ac899
scsi: ufs: ufs-qcom: Disable lane clocks during phy hibern8

Currently, the UFS lane clocks remain enabled even after the link enters
the Hibern8 state and are only disabled during runtime/system
suspend.This patch modifies the behavior to disable the lane clocks
during ufs_qcom_setup_clocks(), which is invoked shortly after the link
enters Hibern8 via gate work.

While hibern8_notify() offers immediate control, toggling clocks on
every transition isn't ideal due to varied contexts like clock scaling.
Since setup_clocks() manages PHY/controller resources and is invoked
soon after Hibern8 entry, it serves as a central and stable point for
clock gating.

Signed-off-by: Palash Kambar <quic_pkambar@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Message-ID: <20250909055149.2068737-1-quic_pkambar@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c