Commit a4321595 authored by Po-Wen Kao's avatar Po-Wen Kao Committed by Bart Van Assche
Browse files

BACKPORT: scsi: ufs: core: Fix missing clk change notification on host reset

In ufshcd_host_reset_and_restore(), ufshcd_set_clk_freq() is called to
scale clock rate. However, this did not call vops->clk_scale_notify() to
inform platform driver of clock change.

Call ufshcd_scale_clks() instead so that clock change can be properly
handled.

Bug: 242973568
Link: https://lore.kernel.org/r/20220711144224.17916-2-powen.kao@mediatek.com


Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarStanley Chu <stanley.chu@mediatek.com>
Signed-off-by: default avatarPo-Wen Kao <powen.kao@mediatek.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Change-Id: Ic0247d502e2145725875a83330a4fac7ab764836
(cherry picked from commit 52a51801)
parent 773f3607
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment