aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-10-12 03:29:37 -0400
committerChris Ball <cjb@laptop.org>2010-10-23 09:11:15 -0400
commit4d0b8611cd4da64f075b8e07a126f0eb498fb153 (patch)
tree401db5395e1c74d2e5f3040a8fc7a6ea2959e378 /drivers/mmc
parent88ae8b866488031b0e2fc05a27440fefec5e6927 (diff)
mmc: sdhci: mmc_rescan: reduce verbosity
mmc_rescan() includes a pr_info which prints 4 lines each second for hosts configured with MMC_CAP_NEEDS_POLL. This patch enables the message only if CONFIG_MMC_DEBUG is selected. Tested on i.MX51's sdhci-esdhc. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Hein Tibosch <hein_tibosch@yahoo.es> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 222466df66ff..c5e3c9bf6fdd 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1452,9 +1452,10 @@ void mmc_rescan(struct work_struct *work)
1452 mmc_release_host(host); 1452 mmc_release_host(host);
1453 goto out; 1453 goto out;
1454 } 1454 }
1455#ifdef CONFIG_MMC_DEBUG
1455 pr_info("%s: %s: trying to init card at %u Hz\n", 1456 pr_info("%s: %s: trying to init card at %u Hz\n",
1456 mmc_hostname(host), __func__, host->f_init); 1457 mmc_hostname(host), __func__, host->f_init);
1457 1458#endif
1458 mmc_power_up(host); 1459 mmc_power_up(host);
1459 sdio_reset(host); 1460 sdio_reset(host);
1460 mmc_go_idle(host); 1461 mmc_go_idle(host);