* [PATCH] scsi: ufs: Give clk scaling min gear a value
@ 2021-01-28 2:42 Can Guo
0 siblings, 0 replies; only message in thread
From: Can Guo @ 2021-01-28 2:42 UTC (permalink / raw)
To: jaegeuk, asutoshd, nguyenb, hongwus, bjorn.andersson, linux-scsi,
kernel-team, cang
Cc: Alim Akhtar, Avri Altman, James E.J. Bottomley,
Martin K. Petersen, Stanley Chu, Bean Huo, open list
The initialization of clk_scaling.min_gear by mistake. This change adds it
back, otherwise clock scaling down would fail.
Fixes: 4543d9d78227 ("scsi: ufs: Refactor ufshcd_init/exit_clk_scaling/gating()")
Signed-off-by: Can Guo <cang@codeaurora.org>
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 36bcbb3..8ef6796 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -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,
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-28 2:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 2:42 [PATCH] scsi: ufs: Give clk scaling min gear a value Can Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox