summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r--drivers/mmc/core/core.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 4b9d1873e0e2..bc200be1b3c0 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1985,8 +1985,10 @@ static int mmc_rescan_try_freq(struct mmc_host *host, unsigned freq)
mmc_send_if_cond(host, host->ocr_avail);
/* Order's important: probe SDIO, then SD, then MMC */
- if (!mmc_attach_sdio(host))
+ if (!mmc_attach_sdio(host)) {
+ MMC_printk("%s: sdio completed", mmc_hostname(host));
return 0;
+ }
if (!mmc_attach_sd(host))
return 0;
if (!mmc_attach_mmc(host)) {
@@ -2339,6 +2341,8 @@ int mmc_pm_notify(struct notifier_block *notify_block,
notify_block, struct mmc_host, pm_notify);
unsigned long flags;
+ printk("[mmc]mmc_pm_notify start\n");
+ MMC_printk("%s: mode %ld, bus_resume_flags %d rescan_disable %d", mmc_hostname(host), mode, host->bus_resume_flags, host->rescan_disable);
switch (mode) {
case PM_HIBERNATION_PREPARE:
@@ -2366,6 +2370,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
mmc_power_off(host);
mmc_release_host(host);
host->pm_flags = 0;
+ MMC_printk("mode %ld ended", mode);
break;
case PM_POST_SUSPEND:
@@ -2383,6 +2388,8 @@ int mmc_pm_notify(struct notifier_block *notify_block,
}
+ MMC_printk("%s finished", mmc_hostname(host));
+
return 0;
}
#endif