scsi: ufs: qcom: Align programing of unipro clk attributes
authorNitin Rawat <quic_nitirawa@quicinc.com>
Tue, 5 Sep 2023 05:23:59 +0000 (10:53 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Sep 2023 01:15:40 +0000 (21:15 -0400)
commit3091181beeefc37dd44b1a0f95015f4367b26a54
treeacf499361e2fa822c45841ad7291ae70e19bc82d
parenta53dfc008353b6e1cb6a5d961f1679fb863ab6a1
scsi: ufs: qcom: Align programing of unipro clk attributes

Currently CORE_CLK_1US_CYCLES, PA_VS_CORE_CLK_40NS_CYCLES are configured
in clk scaling post change ops. This is not aligning to HPG.

Move this to clk scaling pre change ops to align completely with hardware
specification.

Co-developed-by: Naveen Kumar Goud Arepalli <quic_narepall@quicinc.com>
Signed-off-by: Naveen Kumar Goud Arepalli <quic_narepall@quicinc.com>
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20230905052400.13935-5-quic_nitirawa@quicinc.com
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c