diff options
Diffstat (limited to 'drivers/mmc/host/sdhci-pltfm.c')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 1179f1be4318..6c62a733bf15 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -35,6 +35,8 @@ #endif #include "sdhci-pltfm.h" +#include "../debug_mmc.h" + static struct sdhci_ops sdhci_pltfm_ops = { }; @@ -198,6 +200,8 @@ int sdhci_pltfm_suspend(struct platform_device *dev, pm_message_t state) struct sdhci_host *host = platform_get_drvdata(dev); int ret; + MMC_printk("%s: ++", mmc_hostname(host->mmc)); + ret = sdhci_suspend_host(host, state); if (ret) { dev_err(&dev->dev, "suspend failed, error = %d\n", ret); @@ -211,6 +215,8 @@ int sdhci_pltfm_suspend(struct platform_device *dev, pm_message_t state) sdhci_resume_host(host); } + MMC_printk("%s: --", mmc_hostname(host->mmc)); + return ret; } EXPORT_SYMBOL_GPL(sdhci_pltfm_suspend); @@ -220,6 +226,8 @@ int sdhci_pltfm_resume(struct platform_device *dev) struct sdhci_host *host = platform_get_drvdata(dev); int ret = 0; + MMC_printk("%s: ++", mmc_hostname(host->mmc)); + if (host->ops && host->ops->resume) ret = host->ops->resume(host); if (ret) { @@ -231,6 +239,8 @@ int sdhci_pltfm_resume(struct platform_device *dev) if (ret) dev_err(&dev->dev, "resume failed, error = %d\n", ret); + MMC_printk("%s: --", mmc_hostname(host->mmc)); + return ret; } EXPORT_SYMBOL_GPL(sdhci_pltfm_resume); |