summaryrefslogtreecommitdiff
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorban_feng <Ban_Feng@asus.com>2012-03-28 17:30:16 +0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-02-03 15:51:48 +0100
commitd9a0d0137d952e1adad44ee96069dc2db30e06c9 (patch)
treeab03c461ebc8383c8382eefbafcfae313c74d48c /drivers/mmc/host
parent5f7bbcaf707c56badf8dd9354994ea908561eda6 (diff)
eMMC: Add more debugging messages
Change-Id: I28d670944cbfd55e2b2ad98b727368a8dfdc0944 Change-Id: I2bb65335c2468b257473fe264e705826cfd4474e Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/45300 Reviewed-by: Ban Feng <Ban_Feng@asus.com> Tested-by: Ban Feng <Ban_Feng@asus.com> Reviewed-by: Sam hblee <Sam_hblee@asus.com> (cherry picked from commit 1711f72a9840f3667cf93c774ac16c2d8417375c) Conflicts: drivers/mmc/core/core.c
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c10
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);