diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r--[-rwxr-xr-x] | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 46042f7..1536485 100755..100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2329,6 +2329,10 @@ int sdhci_suspend_host(struct sdhci_host *host, pm_message_t state) } ret = mmc_suspend_host(host->mmc); + if (ret) { + sdhci_enable_card_detection(host); + return ret; + } sdhci_mask_irqs(host, SDHCI_INT_ALL_MASK); |