public
Created

MMC panic detail

  • Download Gist
jlbiasini.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13
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;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.