Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit be79be2f authored by Mimi Wu's avatar Mimi Wu Committed by Michael Bestas
Browse files

scsi: ufs: disable clock scaling



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
Bug: 146108838
Signed-off-by: default avatarMimi Wu <mimiwu@google.com>
Change-Id: I09f07619ab3e11b05149358c1d06b0d1039decf3
parent f8f45f66
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1507,7 +1507,6 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba)
	if (!host->disable_lpm) {
		hba->caps |= UFSHCD_CAP_CLK_GATING;
		hba->caps |= UFSHCD_CAP_HIBERN8_WITH_CLK_GATING;
		hba->caps |= UFSHCD_CAP_CLK_SCALING;
	}
	hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND;