Skip to contentSkip to conversation

mmc: omap: improve stat wait message

PATCH New Grazvydas Ignotas 2 participants 2 messages Mar 19, 2012 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/mmc/omap_hsmmc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mmc/omap_hsmmc.c +2 -1
index 547acd5..4b81d0d 100644
@@ -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
#1 lore raw

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.

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>