sdhci: Do not power off the mmc card when entering in S3.
authorAymen Zayet <aymenx.zayet@intel.com>
Mon, 21 Nov 2011 18:24:42 +0000 (19:24 +0100)
committerbuildbot <buildbot@intel.com>
Mon, 28 Nov 2011 19:38:46 +0000 (11:38 -0800)
BZ: 15061

Avoid enabling / disabling the regulator on suspend / resume.
The attached card shall remain powered by the regulator.

Change-Id: I5c848d911a27e9b0d19c5a37cf4ae60bcab77ccf
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/25380
Reviewed-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Tested-by: Champciaux, NicolasX <nicolasx.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/mmc/host/sdhci.c

index 4c67683..ae22f2c 100644 (file)
@@ -2600,9 +2600,6 @@ int sdhci_suspend_host(struct sdhci_host *host, pm_message_t state)
 
        free_irq(host->irq, host);
 
-       if (host->vmmc)
-               ret = regulator_disable(host->vmmc);
-
 out:
        sdhci_release_ownership(host->mmc);
        return ret;
@@ -2616,12 +2613,6 @@ int sdhci_resume_host(struct sdhci_host *host)
 
        sdhci_acquire_ownership(host->mmc);
 
-       if (host->vmmc) {
-               int ret = regulator_enable(host->vmmc);
-               if (ret)
-                       goto out;
-       }
-
        if (host->flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) {
                if (host->ops->enable_dma)
                        host->ops->enable_dma(host);