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
This commit is contained in:
pjd 2011-01-04 00:08:39 +00:00
parent 2527ba42c4
commit 27b4b81c81

View File

@ -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;