summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-05 17:04:44 +0000
committerimp <imp@FreeBSD.org>2007-06-05 17:04:44 +0000
commit3cd4cdf93df1e3a579d555ed064240f124cf9ece (patch)
treebb1bd9e60e5b92544d37107a79612dd66af23766 /sys
parent0ea71aaaf99c65307dbc35a3a3c80a46e0677a87 (diff)
downloadFreeBSD-src-3cd4cdf93df1e3a579d555ed064240f124cf9ece.zip
FreeBSD-src-3cd4cdf93df1e3a579d555ed064240f124cf9ece.tar.gz
MFp4: When querying the operating condition of SD cards (using the
application specific SEND_OP_COND (CMD55 + ACMD41), go ahead and allow 100 tries. This gives a timeout of a second rather than the ~100ms the old style produces. I've had one old 16MB SD card which needs the extra time. I've now had reports from the field that other cards need this too. Originally done at BSDcan 2007 while waiting to give my embedding madness minitalk.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c
index 73adb2b..260aefb 100644
--- a/sys/dev/mmc/mmc.c
+++ b/sys/dev/mmc/mmc.c
@@ -393,7 +393,7 @@ mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr)
cmd.arg = ocr;
cmd.flags = MMC_RSP_R3 | MMC_CMD_BCR;
- for (i = 0; i < 10; i++) {
+ for (i = 0; i < 100; i++) {
err = mmc_wait_for_app_cmd(sc, 0, &cmd, CMD_RETRIES);
if (err != MMC_ERR_NONE)
break;
OpenPOWER on IntegriCloud