]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: qcom: Implement the freq_to_gear_speed() vop
authorCan Guo <quic_cang@quicinc.com>
Thu, 13 Feb 2025 08:00:04 +0000 (16:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Feb 2025 02:53:49 +0000 (21:53 -0500)
commitc02fe9e222d16bed8c270608c42f77bc62562ac3
tree33439f387a8d2ff22ccd138ead604fd3d1161180
parentd7bead60b08e61abde46d63eae6cd72f44939358
scsi: ufs: qcom: Implement the freq_to_gear_speed() vop

Implement the freq_to_gear_speed() vop to map the unipro core clock
frequency to the corresponding maximum supported gear speed.

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/20250213080008.2984807-5-quic_ziqichen@quicinc.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-qcom.c