svn commit: r183765 - head/sys/dev/mmc

Alexander Motin mav at FreeBSD.org
Sat Oct 11 17:30:02 UTC 2008


Author: mav
Date: Sat Oct 11 17:30:02 2008
New Revision: 183765
URL: http://svn.freebsd.org/changeset/base/183765

Log:
  SELECT_CARD command with zero RCA deselects all cards and so has no reply.

Modified:
  head/sys/dev/mmc/mmc.c

Modified: head/sys/dev/mmc/mmc.c
==============================================================================
--- head/sys/dev/mmc/mmc.c	Sat Oct 11 17:28:22 2008	(r183764)
+++ head/sys/dev/mmc/mmc.c	Sat Oct 11 17:30:02 2008	(r183765)
@@ -526,7 +526,7 @@ static int
 mmc_select_card(struct mmc_softc *sc, uint16_t rca)
 {
 	return (mmc_wait_for_command(sc, MMC_SELECT_CARD, ((uint32_t)rca) << 16,
-	    MMC_RSP_R1B | MMC_CMD_AC, NULL, CMD_RETRIES));
+	    (rca?MMC_RSP_R1B:MMC_RSP_NONE) | MMC_CMD_AC, NULL, CMD_RETRIES));
 }
 
 static int


More information about the svn-src-all mailing list