mmc: core: Modify the timeout value for writing power class
authorSeungwon Jeon <tgih.jun@samsung.com>
Tue, 18 Oct 2011 04:20:57 +0000 (13:20 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 20:32:28 +0000 (16:32 -0400)
This patch will apply the generic CMD6 timeout to switch command
for power class.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c

index 5408876..7939015 100644 (file)
@@ -663,7 +663,7 @@ static int mmc_select_powerclass(struct mmc_card *card,
                err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
                                 EXT_CSD_POWER_CLASS,
                                 pwrclass_val,
-                                0);
+                                card->ext_csd.generic_cmd6_time);
        }
 
        return err;