projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6511718
)
mmc: add the debug message in mmc_set_clock
author
Jaehoon Chung
<jh80.chung@samsung.com>
Fri, 26 Jan 2018 10:25:30 +0000
(19:25 +0900)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Tue, 8 May 2018 04:12:33 +0000
(13:12 +0900)
Add the debug message for checking the mmc clock status.
It's helpful to debug the controlling clock.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index 29971a5047c9c31a8076aa2e64fcb7c0665a4fc8..a08c69476ca8395ac301ac4731309974ad3e8aaf 100644
(file)
--- 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);
}