Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 00:08:39 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216941 - head/sys/dev/mmc
Message-ID:  <201101040008.p0408dak010378@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101040008.p0408dak010378>