]> git.sur5r.net Git - u-boot/commitdiff
mmc: CMD7:MMC_CMD_SELECT_CARD response fix
authorAjay Bhargav <ajay.bhargav@einfochips.com>
Wed, 5 Oct 2011 03:13:23 +0000 (03:13 +0000)
committerAndy Fleming <afleming@freescale.com>
Thu, 3 Nov 2011 07:14:59 +0000 (02:14 -0500)
As per JEDEC document JESD84-A441 (page 105) response for CMD7
(MMC_CMD_SELECT_CARD) response should be R1 instead of R1b. In uboot we
never take MMC to disconnected state and on powerup its always ideal
state which later goes to stand-by state.

from document footnote:
R1 while selecting from Stand-By State to Transfer State; R1b while
selecting from Disconnected State to Programming State.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
drivers/mmc/mmc.c

index 96facb76596fde849a20caa72c4c5df297c87184..37ce6e85a1352ca6f6e93cd1cd4aadcf7060a19d 100644 (file)
@@ -988,7 +988,7 @@ int mmc_startup(struct mmc *mmc)
        /* Select the card, and put it into Transfer Mode */
        if (!mmc_host_is_spi(mmc)) { /* cmd not supported in spi */
                cmd.cmdidx = MMC_CMD_SELECT_CARD;
-               cmd.resp_type = MMC_RSP_R1b;
+               cmd.resp_type = MMC_RSP_R1;
                cmd.cmdarg = mmc->rca << 16;
                cmd.flags = 0;
                err = mmc_send_cmd(mmc, &cmd, NULL);