From: Jaehoon Chung Date: Fri, 26 Jan 2018 10:25:30 +0000 (+0900) Subject: mmc: add the debug message in mmc_set_clock X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d2faadb59c2be743854fe8e084def919c19b9634;p=u-boot.git mmc: add the debug message in mmc_set_clock Add the debug message for checking the mmc clock status. It's helpful to debug the controlling clock. Signed-off-by: Jaehoon Chung --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 29971a5047..a08c69476c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1506,6 +1506,8 @@ int mmc_set_clock(struct mmc *mmc, uint clock, bool disable) mmc->clock = clock; mmc->clk_disable = disable; + debug("clock is %s (%dHz)\n", disable ? "disabled" : "enabled", clock); + return mmc_set_ios(mmc); }