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>
free_irq(host->irq, host);
- if (host->vmmc)
- ret = regulator_disable(host->vmmc);
-
out:
sdhci_release_ownership(host->mmc);
return ret;
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);