On Mon, 2025-02-03 at 16:11 +0800, Ziqi Chen wrote:
From: Can Guo <quic_cang@xxxxxxxxxxx>
Add a vop to map UFS host controller clock frequencies to the maximum
supported UFS high speed gear speeds.
From the code, seems it is not "maximum" gear, it is corresponding UFS
Gear.
During clock scaling, we canmap thetarget clock frequency, demanded
by devfreq, to the maximum supported gear
speed, so that devfreq can scale the gear to the highest gear speed
supported at the target clock frequency, instead of just scaling
up/down
the gear between the min and max gear speeds.
Co-developed-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx>
Signed-off-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx>
Signed-off-by: Can Guo <quic_cang@xxxxxxxxxxx>
Reveiwed-by: Bean Huo <beanhuo@xxxxxxxxxx>