diff options
author | pjd <pjd@FreeBSD.org> | 2011-01-04 00:08:39 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-01-04 00:08:39 +0000 |
commit | 27b4b81c81a10b05b13803b668e291f34b25c94a (patch) | |
tree | db321c5d97daf36e6c60a6f45e43855ca4c10e39 /sys/dev/mmc | |
parent | 2527ba42c4a6eaaf6426b0cdd57674b635768ffa (diff) | |
download | FreeBSD-src-27b4b81c81a10b05b13803b668e291f34b25c94a.zip FreeBSD-src-27b4b81c81a10b05b13803b668e291f34b25c94a.tar.gz |
Wait for commands to complete 10 times longer. This makes my A-DATA 32GB SDHC
card being detected.
Reviewed by: imp
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/mmc')
-rw-r--r-- | sys/dev/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 7689d16..63c81dd 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -448,7 +448,7 @@ mmc_send_app_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) cmd.flags = MMC_RSP_R3 | MMC_CMD_BCR; cmd.data = NULL; - for (i = 0; i < 100; i++) { + for (i = 0; i < 1000; i++) { err = mmc_wait_for_app_cmd(sc, 0, &cmd, CMD_RETRIES); if (err != MMC_ERR_NONE) break; @@ -475,7 +475,7 @@ mmc_send_op_cond(struct mmc_softc *sc, uint32_t ocr, uint32_t *rocr) cmd.flags = MMC_RSP_R3 | MMC_CMD_BCR; cmd.data = NULL; - for (i = 0; i < 100; i++) { + for (i = 0; i < 1000; i++) { err = mmc_wait_for_cmd(sc, &cmd, CMD_RETRIES); if (err != MMC_ERR_NONE) break; |