OSDN Git Service

mmc: core: Use generic CMD6 time while switching to eMMC HS200 mode
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Jan 2014 16:36:21 +0000 (17:36 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:40:44 +0000 (10:40 -0500)
Conform to the eMMC spec and use the CMD6 generic timeout from the
EXT_CSD register, when switching to HS200 mode.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/mmc.c

index c944692..6b7ccef 100644 (file)
@@ -857,7 +857,9 @@ static int mmc_select_hs200(struct mmc_card *card)
        /* switch to HS200 mode if bus width set successfully */
        if (!err)
                err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
-                               EXT_CSD_HS_TIMING, 2, 0, true, true, true);
+                               EXT_CSD_HS_TIMING, 2,
+                               card->ext_csd.generic_cmd6_time,
+                               true, true, true);
 err:
        return err;
 }