scsi: ufs: ufs-qcom: Enable QUnipro Internal Clock Gating
authorNitin Rawat <quic_nitirawa@quicinc.com>
Mon, 14 Jul 2025 07:53:36 +0000 (13:23 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 14 Jul 2025 22:25:10 +0000 (18:25 -0400)
commit5a6f304f39c24c1a2c3023fbfda81b0042354c3f
treebd000a83ea7456b6d5000f2ea1eb03f9cd112753
parentc49601642f95c8c6787acb07881f2495bc8aeb27
scsi: ufs: ufs-qcom: Enable QUnipro Internal Clock Gating

Enable internal clock gating for Qualcomm UFS host controller by setting
the following attributes to 1 during host controller initialization:

 - DL_VS_CLK_CFG
 - PA_VS_CLK_CFG_REG
 - DME_VS_CORE_CLK_CTRL.DME_HW_CGC_EN

This change is necessary to support the internal clock gating mechanism
in Qualcomm UFS host controller. This is power saving feature and hence
driver can continue to function correctly despite any error in enabling
these feature.

Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20250714075336.2133-4-quic_nitirawa@quicinc.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c
drivers/ufs/host/ufs-qcom.h