|
@@ -2556,8 +2556,6 @@ EXPORT_SYMBOL_GPL(sdhci_disable_irq_wakeups);
|
|
|
|
|
|
int sdhci_suspend_host(struct sdhci_host *host)
|
|
int sdhci_suspend_host(struct sdhci_host *host)
|
|
{
|
|
{
|
|
- int ret;
|
|
|
|
-
|
|
|
|
if (host->ops->platform_suspend)
|
|
if (host->ops->platform_suspend)
|
|
host->ops->platform_suspend(host);
|
|
host->ops->platform_suspend(host);
|
|
|
|
|
|
@@ -2569,19 +2567,6 @@ int sdhci_suspend_host(struct sdhci_host *host)
|
|
host->flags &= ~SDHCI_NEEDS_RETUNING;
|
|
host->flags &= ~SDHCI_NEEDS_RETUNING;
|
|
}
|
|
}
|
|
|
|
|
|
- ret = mmc_suspend_host(host->mmc);
|
|
|
|
- if (ret) {
|
|
|
|
- if (host->flags & SDHCI_USING_RETUNING_TIMER) {
|
|
|
|
- host->flags |= SDHCI_NEEDS_RETUNING;
|
|
|
|
- mod_timer(&host->tuning_timer, jiffies +
|
|
|
|
- host->tuning_count * HZ);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- sdhci_enable_card_detection(host);
|
|
|
|
-
|
|
|
|
- return ret;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (!device_may_wakeup(mmc_dev(host->mmc))) {
|
|
if (!device_may_wakeup(mmc_dev(host->mmc))) {
|
|
sdhci_mask_irqs(host, SDHCI_INT_ALL_MASK);
|
|
sdhci_mask_irqs(host, SDHCI_INT_ALL_MASK);
|
|
free_irq(host->irq, host);
|
|
free_irq(host->irq, host);
|
|
@@ -2589,14 +2574,14 @@ int sdhci_suspend_host(struct sdhci_host *host)
|
|
sdhci_enable_irq_wakeups(host);
|
|
sdhci_enable_irq_wakeups(host);
|
|
enable_irq_wake(host->irq);
|
|
enable_irq_wake(host->irq);
|
|
}
|
|
}
|
|
- return ret;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(sdhci_suspend_host);
|
|
EXPORT_SYMBOL_GPL(sdhci_suspend_host);
|
|
|
|
|
|
int sdhci_resume_host(struct sdhci_host *host)
|
|
int sdhci_resume_host(struct sdhci_host *host)
|
|
{
|
|
{
|
|
- int ret;
|
|
|
|
|
|
+ int ret = 0;
|
|
|
|
|
|
if (host->flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) {
|
|
if (host->flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) {
|
|
if (host->ops->enable_dma)
|
|
if (host->ops->enable_dma)
|
|
@@ -2625,7 +2610,6 @@ int sdhci_resume_host(struct sdhci_host *host)
|
|
mmiowb();
|
|
mmiowb();
|
|
}
|
|
}
|
|
|
|
|
|
- ret = mmc_resume_host(host->mmc);
|
|
|
|
sdhci_enable_card_detection(host);
|
|
sdhci_enable_card_detection(host);
|
|
|
|
|
|
if (host->ops->platform_resume)
|
|
if (host->ops->platform_resume)
|