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:
Pawel Jakub Dawidek 2011-01-04 00:08:39 +00:00
parent 80b1151e82
commit 4daf3d2552
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216941

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;