Skip to content

Commit 4d0b861

Browse files
Eric Bénardcjb
authored andcommitted
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>
1 parent 88ae8b8 commit 4d0b861

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/mmc/core/core.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,9 +1452,10 @@ void mmc_rescan(struct work_struct *work)
14521452
mmc_release_host(host);
14531453
goto out;
14541454
}
1455+
#ifdef CONFIG_MMC_DEBUG
14551456
pr_info("%s: %s: trying to init card at %u Hz\n",
14561457
mmc_hostname(host), __func__, host->f_init);
1457-
1458+
#endif
14581459
mmc_power_up(host);
14591460
sdio_reset(host);
14601461
mmc_go_idle(host);

0 commit comments

Comments
 (0)