Author: pjd
Date: Tue Jan 4 00:08:39 2011
New Revision: 216941
URL: http://svn.freebsd.org/changeset/base/216941
Log:
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
Modified:
head/sys/dev/mmc/mmc.c
Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c Mon Jan 3 23:37:42 2011 (r216940)
+++ head/sys/dev/mmc/mmc.c Tue Jan 4 00:08:39 2011 (r216941)
@@ -448,7 +448,7 @@ mmc_send_app_op_cond(struct mmc_softc *s
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, u
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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"