[U-Boot] [PATCH 2/3] mmc: add the debug message in mmc_set_clock
Jaehoon Chung
jh80.chung at samsung.com
Mon Jan 29 03:58:14 UTC 2018
Hi,
On 01/26/2018 07:25 PM, Jaehoon Chung wrote:
> Add the debug message for checking the mmc clock status.
> It's helpful to debug the controlling clock.
Will resend the patch. Because Masahiro sent the patch as "mmc: use pr_* log functions".
So i will follow his patch. Will use the pr_* log function instead of debug.
Best Regards,
Jaehoon Chung
>
> Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
> ---
> drivers/mmc/mmc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index c6475974cc..13b3a893d8 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -1512,6 +1512,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);
> }
>
>
More information about the U-Boot
mailing list