diff options
author | 2017-03-20 19:50:32 +0200 | |
---|---|---|
committer | 2017-04-24 21:41:26 +0200 | |
commit | d38dcad4e7b48f3d68d5d058f8f4f52a99862e6e (patch) | |
tree | 654812cebbf2ed25a161d9b405f038fe20d381a8 /drivers/mmc/host/sdhci.c | |
parent | mmc: sdhci: Optimize delay loops (diff) | |
download | linux-dev-d38dcad4e7b48f3d68d5d058f8f4f52a99862e6e.tar.xz linux-dev-d38dcad4e7b48f3d68d5d058f8f4f52a99862e6e.zip |
mmc: sdhci: Let drivers decide whether to use mmc_retune_needed() with pm
Devices might save and restore tuning values so that re-tuning might not be
needed after a pm transition. Let drivers decide by pushing the
mmc_retune_needed() logic down to them.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 777c82efce1d..105f4448145d 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2857,8 +2857,6 @@ int sdhci_suspend_host(struct sdhci_host *host) sdhci_disable_card_detection(host); mmc_retune_timer_stop(host->mmc); - if (host->tuning_mode != SDHCI_TUNING_MODE_3) - mmc_retune_needed(host->mmc); if (!device_may_wakeup(mmc_dev(host->mmc))) { host->ier = 0; @@ -2919,8 +2917,6 @@ int sdhci_runtime_suspend_host(struct sdhci_host *host) unsigned long flags; mmc_retune_timer_stop(host->mmc); - if (host->tuning_mode != SDHCI_TUNING_MODE_3) - mmc_retune_needed(host->mmc); spin_lock_irqsave(&host->lock, flags); host->ier &= SDHCI_INT_CARD_INT; |