mmc: omap: improve stat wait message
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 19 Mar 2012 12:11:43 +0000 (12:11 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 8 May 2012 23:02:21 +0000 (18:02 -0500)
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>
drivers/mmc/omap_hsmmc.c

index 2b12929..a6bb5fa 100644 (file)
@@ -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;
                }
        }