From eecec5bd59832ccfa158d7fece69fb271a39f87e Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 11 Oct 2008 17:30:02 +0000 Subject: [PATCH] SELECT_CARD command with zero RCA deselects all cards and so has no reply. --- sys/dev/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/mmc.c b/sys/dev/mmc/mmc.c index 6b33b8b7d764..00cda7ce7fcc 100644 --- a/sys/dev/mmc/mmc.c +++ b/sys/dev/mmc/mmc.c @@ -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