summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOm Prakash Singh <omp@nvidia.com>2012-02-18 22:05:21 +0530
committerSimone Willett <swillett@nvidia.com>2012-03-06 17:43:17 -0800
commit70607ee1ec9678b1765cefece0163bad4318976a (patch)
treeabeb750a8f7144861c605ab1108880b31bfef51f /drivers
parent51b8f46a9966b648ff0ccd2e6b82ed145ccfdbed (diff)
mmc: enable mmc suspend/resume for sdio device
Bug 942826 Change-Id: Ie782f17c51e78994e0fc96da3fbbe2e6592f58dc Signed-off-by: Rakesh Kumar <krakesh@nvidia.com> Reviewed-on: http://git-master/r/84697 Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com> Tested-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 92ff372aa93d..c25f54fd26b8 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2327,7 +2327,7 @@ int sdhci_suspend_host(struct sdhci_host *host, pm_message_t state)
host->tuning_count * HZ);
}
- if (mmc->card && (mmc->card->type != MMC_TYPE_SDIO))
+ if (mmc->card)
ret = mmc_suspend_host(host->mmc);
if (mmc->pm_flags & MMC_PM_KEEP_POWER)
@@ -2371,15 +2371,12 @@ int sdhci_resume_host(struct sdhci_host *host)
mmiowb();
if (mmc->card) {
- if (mmc->card->type != MMC_TYPE_SDIO) {
- ret = mmc_resume_host(host->mmc);
- } else {
- /* Enable card interrupt as it is overwritten in sdhci_init */
- if ((mmc->caps & MMC_CAP_SDIO_IRQ) &&
- (mmc->pm_flags & MMC_PM_KEEP_POWER))
- if (host->card_int_set)
- mmc->ops->enable_sdio_irq(mmc, true);
- }
+ ret = mmc_resume_host(host->mmc);
+ /* Enable card interrupt as it is overwritten in sdhci_init */
+ if ((mmc->caps & MMC_CAP_SDIO_IRQ) &&
+ (mmc->pm_flags & MMC_PM_KEEP_POWER))
+ if (host->card_int_set)
+ mmc->ops->enable_sdio_irq(mmc, true);
}
sdhci_enable_card_detection(host);