From ef3f24dd1cf7252517ab5ba9e8a7c74718370d2e Mon Sep 17 00:00:00 2001 From: Asutosh Das Date: Mon, 31 Aug 2020 16:44:49 -0700 Subject: [PATCH] scsi: ufs: Increase ah8 idle to 10ms Increases the ah8 value to 10ms for higher performance. There's negligible power impact. Change-Id: I9347ceedb19a0b85f5e3b1b5db1f66b55d0447f5 Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 78cab8397258..90558da11260 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1709,8 +1709,8 @@ static int ufs_qcom_apply_dev_quirks(struct ufs_hba *hba) spin_lock_irqsave(hba->host->host_lock, flags); /* Set the rpm auto suspend delay to 3s */ hba->host->hostt->rpm_autosuspend_delay = UFS_QCOM_AUTO_SUSPEND_DELAY; - /* Set the default auto-hiberate idle timer value to 5ms */ - hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 5) | + /* Set the default auto-hiberate idle timer value to 10ms */ + hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 10) | FIELD_PREP(UFSHCI_AHIBERN8_SCALE_MASK, 3); /* Set the clock gating delay to performance mode */ hba->clk_gating.delay_ms = UFS_QCOM_CLK_GATING_DELAY_MS_PERF;