From 192ad80d14ee5478e23fe4b7bed55f203748aec3 Mon Sep 17 00:00:00 2001 From: Subhash Jadavani Date: Thu, 9 Oct 2014 03:00:27 -0700 Subject: [PATCH] scsi: ufs: change clock gating timeout to 50ms Clock gating timeout is generally choosen such a way that it doesn't impact storage benchmark performance numbers. Although current timeout value of 150ms seems high hence this change reduces it to 50ms to save power clock gating timeout. Reducing it to 50ms doesn't affect the storage performance benchmark numbers. Change-Id: Ia131fc420995f44d8446f3800c19de40fedea504 Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 070bca13f481..7bb69150031f 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1058,7 +1058,7 @@ static void ufshcd_init_clk_gating(struct ufs_hba *hba) if (!ufshcd_is_clkgating_allowed(hba)) return; - hba->clk_gating.delay_ms = 150; + hba->clk_gating.delay_ms = 50; INIT_DELAYED_WORK(&hba->clk_gating.gate_work, ufshcd_gate_work); INIT_WORK(&hba->clk_gating.ungate_work, ufshcd_ungate_work);