mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
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.
This commit is contained in:
parent
64a61b0dfc
commit
6634080bee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170337
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user