mmc: Remove return from mmc_init for non SD 2.0 compatible cards.
authorYauhen Kharuzhy <jekhor@gmail.com>
Thu, 7 May 2009 10:08:53 +0000 (13:08 +0300)
committerAndy Fleming <afleming@freescale.com>
Tue, 2 Jun 2009 22:19:07 +0000 (17:19 -0500)
Cards which are not compatible with SD 2.0 standard, may return response
for CMD8 command, but it will be invalid in terms of SD 2.0. We should
accept this case as admissible, just like Linux does.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c

index 925f863ef3910b46cd0c255f671b0cf2dfbe2fd8..64a311dcc2a2211319bb2d22994484c396053516 100644 (file)
@@ -868,10 +868,6 @@ int mmc_init(struct mmc *mmc)
        /* Test for SD version 2 */
        err = mmc_send_if_cond(mmc);
 
-       /* If we got an error other than timeout, we bail */
-       if (err && err != TIMEOUT)
-               return err;
-
        /* Now try to get the SD card's operating condition */
        err = sd_send_op_cond(mmc);