Skip to content

Commit 80d892f

Browse files
Can Guomartinkpetersen
authored andcommitted
scsi: ufs: Give clk scaling min gear a value
The initialization of clk_scaling.min_gear was removed by mistake. This change adds it back, otherwise clock scaling down would fail. Link: https://lore.kernel.org/r/[email protected] Fixes: 4543d9d ("scsi: ufs: Refactor ufshcd_init/exit_clk_scaling/gating()") Reported-by: Bjorn Andersson <[email protected]> Tested-by: Bjorn Andersson <[email protected]> Tested-by: Bean Huo <[email protected]> Reviewed-by: Stanley Chu <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Bean Huo <[email protected]> Signed-off-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 2468d20 commit 80d892f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/ufs/ufshcd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,9 @@ static void ufshcd_init_clk_scaling(struct ufs_hba *hba)
16021602
if (!ufshcd_is_clkscaling_supported(hba))
16031603
return;
16041604

1605+
if (!hba->clk_scaling.min_gear)
1606+
hba->clk_scaling.min_gear = UFS_HS_G1;
1607+
16051608
INIT_WORK(&hba->clk_scaling.suspend_work,
16061609
ufshcd_clk_scaling_suspend_work);
16071610
INIT_WORK(&hba->clk_scaling.resume_work,

0 commit comments

Comments
 (0)