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

This commit is contained in:
Alexander Motin 2008-10-11 17:30:02 +00:00
parent 4b0e2b9add
commit eecec5bd59

View File

@ -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