Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Bénard and committed by
Chris Ball
4d0b8611 88ae8b86

+2 -1
+2 -1
drivers/mmc/core/core.c
··· 1452 1452 mmc_release_host(host); 1453 1453 goto out; 1454 1454 } 1455 + #ifdef CONFIG_MMC_DEBUG 1455 1456 pr_info("%s: %s: trying to init card at %u Hz\n", 1456 1457 mmc_hostname(host), __func__, host->f_init); 1457 - 1458 + #endif 1458 1459 mmc_power_up(host); 1459 1460 sdio_reset(host); 1460 1461 mmc_go_idle(host);