Skip to content

Instantly share code, notes, and snippets.

@pamaury
Created January 15, 2012 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pamaury/1616770 to your computer and use it in GitHub Desktop.
Save pamaury/1616770 to your computer and use it in GitHub Desktop.
MMC panic detail
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