On Thu, 2025-02-13 at 16:00 +0800, Ziqi Chen wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > From: Can Guo <quic_cang@xxxxxxxxxxx> > > With OPP V2 enabled, devfreq can scale clocks amongst multiple > frequency > plans. However, the gear speed is only toggled between min and max > during > clock scaling. Enable multi-level gear scaling by mapping clock > frequencies > to gear speeds, so that when devfreq scales clock frequencies we can > put > the UFS link at the appropriate gear speeds accordingly. > > Signed-off-by: Can Guo <quic_cang@xxxxxxxxxxx> > Co-developed-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx> > Signed-off-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx> > Reviewed-by: Bean Huo <beanhuo@xxxxxxxxxx> > Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx> > Tested-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> > --- > > v1 -> v2: > Rename the lable "do_pmc" to "config_pwr_mode". > > v2 -> v3: > Use assignment instead memcpy() in function ufshcd_scale_gear(). > > v3 -> v4: > Typo fixed for commit message. > > v4 -> v5: > Change the data type of "new_gear" from 'int' to 'u32'. > --- > Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>