]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: qcom: Map devfreq OPP freq to UniPro Core Clock freq
authorCan Guo <quic_cang@quicinc.com>
Thu, 22 May 2025 02:15:36 +0000 (10:15 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 28 May 2025 02:06:40 +0000 (22:06 -0400)
commit8c5bcb3daeef9bc54c9939c36dca9a626126eb59
treeb8c7c4944a939449705c041fa799a032b075f7fe
parent663d0c19f3acc0d697f623d34b8eb3b438bf2bda
scsi: ufs: qcom: Map devfreq OPP freq to UniPro Core Clock freq

On some platforms, the devfreq OPP freq may be different than the unipro
core clock freq. Implement ufs_qcom_opp_freq_to_clk_freq() and use it to
find the unipro core clk freq.

Fixes: c02fe9e222d1 ("scsi: ufs: qcom: Implement the freq_to_gear_speed() vop")
Signed-off-by: Can Guo <quic_cang@quicinc.com>
Co-developed-by: Ziqi Chen <quic_ziqichen@quicinc.com>
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
Link: https://lore.kernel.org/r/20250522021537.999107-3-quic_ziqichen@quicinc.com
Reported-by: Luca Weiss <luca.weiss@fairphone.com>
Closes: https://lore.kernel.org/linux-arm-msm/D9FZ9U3AEXW4.1I12FX3YQ3JPW@fairphone.com/
Tested-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Tested-by: Loïc Minier <loic.minier@oss.qualcomm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c