diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-08-19 05:29:27 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-08-19 05:29:27 -0700 |
| commit | f0da3aae3bbd335595a1e5f772ff3b687974041f (patch) | |
| tree | fadba51dc00ae57b483604649878d7b83b315b10 | |
| parent | c8066779721d557225c4107717ff94098d02e99c (diff) | |
| parent | ae1ede303b454d8d243ffe275a62472e9700c5dd (diff) | |
Merge "scsi: ufs-qcom: disable hibern8 during clk gating"
| -rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 84b8425c8965..1fdfadf5e1b9 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1532,6 +1532,13 @@ static void ufshcd_init_clk_gating(struct ufs_hba *hba) if (!ufshcd_is_clkgating_allowed(hba)) return; + /* + * Disable hibern8 during clk gating if + * auto hibern8 is supported + */ + if (ufshcd_is_auto_hibern8_supported(hba)) + hba->caps &= ~UFSHCD_CAP_HIBERN8_WITH_CLK_GATING; + INIT_DELAYED_WORK(&gating->gate_work, ufshcd_gate_work); INIT_WORK(&gating->ungate_work, ufshcd_ungate_work); |
