Created
January 15, 2012 19:00
-
-
Save pamaury/1616770 to your computer and use it in GitHub Desktop.
MMC panic detail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/firmware/target/arm/imx233/mmc-imx233.c b/firmware/target/arm/imx233/mmc-imx233.c | |
index 8782e8e..7edfc21 100644 | |
--- a/firmware/target/arm/imx233/mmc-imx233.c | |
+++ b/firmware/target/arm/imx233/mmc-imx233.c | |
@@ -230,6 +230,8 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v | |
ret = imx233_ssp_sd_mmc_transfer(MMC_SSP, read ? 18 : 25, start, | |
SSP_SHORT_RESP, buf, this_count, false, read, &resp); | |
} | |
+ if(ret != 0) | |
+ panicf("resp: %x", resp); | |
count -= this_count; | |
start += this_count; | |
buf += this_count * 512; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment