mmc: omap: improve stat wait message
PATCH 1/1 mmc: omap: improve stat wait message
The message didn't state that it's waiting for STAT to _clear_, and printing the STAT value itself can help to identify problems.
Signed-off-by Grazvydas Ignotas <[email protected]>
--- drivers/mmc/omap_hsmmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mmc/omap_hsmmc.c +2 -1
@@ -215,7 +215,8 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, start =get_timer (0 );while (readl (&mmc_base->stat)) {if (get_timer (0 ) - start >MAX_RETRY_MS ) { -printf ("%s: timedout waiting for stat!\n" , __func__); +printf ("%s: timedout waiting for STAT (%x) to clear\n" , + __func__,readl (&mmc_base->stat));return TIMEOUT ; } }
Signature · 1 line
1.7.0.4
PATCH 1/1 mmc: omap: improve stat wait message
Quoted 4 lines · Grazvydas Ignotas
The message didn't state that it's waiting for STAT to _clear_, and printing the STAT value itself can help to identify problems.
Signed-off-by Grazvydas Ignotas <[email protected]>
Acked-by Tom Rini <[email protected]>
Andy, please take this via your tree, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120319/354f0cef/attachment.pgp>