diff options
author | Pavan Kunapuli <pkunapuli@nvidia.com> | 2014-03-27 17:26:45 +0530 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2014-05-27 22:51:27 -0700 |
commit | 07ac04f8f8b393b136f22a913de1294795e746c1 (patch) | |
tree | 5199c1233743afbad04b4e01732177cda8e10602 /drivers | |
parent | 5bf181dba1391eef6321bf8aaa4d066c85d0d6b7 (diff) |
mmc: tegra: Run autocal in resume for always_on devices
For devices that are always powered on, run calibration in
platform resume. The resume path for these devices primarily
restores host context and doesn't call any signal voltage
change APIs. This patch ensures that calibration is done
during resume and proper drive strength codes are applied.
Bug 1423423
Change-Id: Iaae2fba42395a2b783bcac06e3141842340c4e50
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/387819
(cherry picked from commit 901b27722af774588865012bd85505f365dca8f1)
Reviewed-on: http://git-master/r/415582
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 8f79b2873c79..078a855e26df 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -3024,6 +3024,8 @@ static int tegra_sdhci_resume(struct sdhci_host *sdhci) tegra_sdhci_reset(sdhci, SDHCI_RESET_ALL); sdhci_writeb(sdhci, SDHCI_POWER_ON, SDHCI_POWER_CONTROL); sdhci->pwr = 0; + + tegra_sdhci_do_calibration(sdhci); } return 0; |