summaryrefslogtreecommitdiff
path: root/drivers/mmc/omap_hsmmc.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2012-03-19 12:11:43 +0000
committerAndy Fleming <afleming@freescale.com>2012-05-08 18:02:21 -0500
commit15ceb1de81e282426d8988264469508fb5dbd192 (patch)
tree64c808ccf126ad24fe7754e0f65cf5b40f2739a3 /drivers/mmc/omap_hsmmc.c
parentb1e725f2c6e2d8f9855a0b4cba508a2abe748b4d (diff)
downloadu-boot-imx-15ceb1de81e282426d8988264469508fb5dbd192.zip
u-boot-imx-15ceb1de81e282426d8988264469508fb5dbd192.tar.gz
u-boot-imx-15ceb1de81e282426d8988264469508fb5dbd192.tar.bz2
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 <notasas@gmail.com> Acked-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/mmc/omap_hsmmc.c')
-rw-r--r--drivers/mmc/omap_hsmmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 2b12929..a6bb5fa 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -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;
}
}