]> Git Repo - linux.git/commitdiff
scsi: ufs: Give clk scaling min gear a value
authorCan Guo <[email protected]>
Thu, 28 Jan 2021 02:49:27 +0000 (18:49 -0800)
committerMartin K. Petersen <[email protected]>
Fri, 29 Jan 2021 18:44:30 +0000 (13:44 -0500)
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: 4543d9d78227 ("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]>
drivers/scsi/ufs/ufshcd.c

index f0700a36379dad2194d268440d31887417005413..45624c757cd13379dc1a22baddc4ce0281ff8b70 100644 (file)
@@ -1602,6 +1602,9 @@ static void ufshcd_init_clk_scaling(struct ufs_hba *hba)
        if (!ufshcd_is_clkscaling_supported(hba))
                return;
 
+       if (!hba->clk_scaling.min_gear)
+               hba->clk_scaling.min_gear = UFS_HS_G1;
+
        INIT_WORK(&hba->clk_scaling.suspend_work,
                  ufshcd_clk_scaling_suspend_work);
        INIT_WORK(&hba->clk_scaling.resume_work,
This page took 0.077135 seconds and 4 git commands to generate.