From: Seungwon Jeon <tgih.jun@samsung.com>
Date: Tue, 18 Oct 2011 04:20:57 +0000 (+0900)
Subject: mmc: core: Modify the timeout value for writing power class
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71fe3eb0d006861bdae57e93975b6ae3d9b55e99;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

mmc: core: Modify the timeout value for writing power class

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

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 54088768776c..793901519208 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -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;