Commit 4d0b8611 authored by Eric Bénard's avatar Eric Bénard Committed by Chris Ball

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: default avatarEric Bénard <eric@eukrea.com>
Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarHein Tibosch <hein_tibosch@yahoo.es>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 88ae8b86
......@@ -1452,9 +1452,10 @@ void mmc_rescan(struct work_struct *work)
mmc_release_host(host);
goto out;
}
#ifdef CONFIG_MMC_DEBUG
pr_info("%s: %s: trying to init card at %u Hz\n",
mmc_hostname(host), __func__, host->f_init);
#endif
mmc_power_up(host);
sdio_reset(host);
mmc_go_idle(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment