Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2008 17:30:02 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r183765 - head/sys/dev/mmc
Message-ID:  <200810111730.m9BHU2u1023174@svn.freebsd.org>

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



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