FROMGIT: scsi: ufshcd: Update the set frequency to devfreq
Currently, the frequency that devfreq provides the driver always leads the clocks to be scaled up. Hence, round the clock-rate to the nearest frequency before deciding to scale. Also update the devfreq statistics of current frequency. Bug: 152781094 (cherry picked from commit 91831d3336627ff0585c1519935bc11b48de22c6 https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/log/?h=5.7/scsi-queue) Link: https://lore.kernel.org/r/d0c6c22455811e9f0eda01f9bc70d1398b51b2bd.1585160616.git.asutoshd@codeaurora.org Acked-by:Avri Altman <Avri.Altman@wdc.com> Signed-off-by:
Asutosh Das <asutoshd@codeaurora.org> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Change-Id: Id1287e3022c1b9e48f244500a62fc02cedabd42a Signed-off-by:
Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment