Skip to content

Commit

Permalink
scsi: ufs: Disable clock scaling
Browse files Browse the repository at this point in the history
Disable clock scaling to avoid costly workqueue overheads.

Power test results on Blueline:
[without this change]
  Suspend: 9.75mA
  Idle: 238.26mA
  Camera Preview: 1309.99mA
  Partial Wake Lock: 13.67mA
[with this change - disable clock scaling]
  Suspend: 9.73mA (-0.21%)
  Idle: 215.87mA (-9.4%)
  Camera Preview: 1181.71mA (-9.79%)
  Partial Wake Lock: 13.85mA (+1.32%)

Bug: 78601190
Signed-off-by: Mimi Wu <[email protected]>
Change-Id: I09f07619ab3e11b05149358c1d06b0d1039decf3
  • Loading branch information
Mimi Wu authored and ghazzor committed Sep 28, 2024
1 parent 7aec595 commit 8176424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba)
if (!host->disable_lpm) {
hba->caps |= UFSHCD_CAP_CLK_GATING |
UFSHCD_CAP_HIBERN8_WITH_CLK_GATING |
UFSHCD_CAP_CLK_SCALING | UFSHCD_CAP_AUTO_BKOPS_SUSPEND |
UFSHCD_CAP_AUTO_BKOPS_SUSPEND |
UFSHCD_CAP_RPM_AUTOSUSPEND;
hba->caps |= UFSHCD_CAP_WB_EN;
}
Expand Down

0 comments on commit 8176424

Please sign in to comment.