Skip to content

Commit 52a5180

Browse files
powen-kao-mtkmartinkpetersen
authored andcommitted
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. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Stanley Chu <[email protected]> Signed-off-by: Po-Wen Kao <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 2ae57c9 commit 52a5180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7253,7 +7253,7 @@ static int ufshcd_host_reset_and_restore(struct ufs_hba *hba)
72537253
hba->silence_err_logs = false;
72547254

72557255
/* scale up clocks to max frequency before full reinitialization */
7256-
ufshcd_set_clk_freq(hba, true);
7256+
ufshcd_scale_clks(hba, true);
72577257

72587258
err = ufshcd_hba_enable(hba);
72597259

0 commit comments

Comments
 (0)