mmc: sdhci: Fix missing enhanced strobe setting during runtime resume
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 2 Nov 2016 13:49:11 +0000 (15:49 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Nov 2016 12:26:43 +0000 (13:26 +0100)
Restore enhanced strobe setting during runtime resume.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c

index 542aabc48032042c0cd78e6cad875f5554147f6a..42ef3ebb1d8cf9d57f30e48d21c3a5250aea16ea 100644 (file)
@@ -2924,6 +2924,10 @@ int sdhci_runtime_resume_host(struct sdhci_host *host)
                spin_unlock_irqrestore(&host->lock, flags);
        }
 
+       if ((mmc->caps2 & MMC_CAP2_HS400_ES) &&
+           mmc->ops->hs400_enhanced_strobe)
+               mmc->ops->hs400_enhanced_strobe(mmc, &mmc->ios);
+
        spin_lock_irqsave(&host->lock, flags);
 
        host->runtime_suspended = false;