From 3527e570909b3cc48e5b61a280bcbe05fb034128 Mon Sep 17 00:00:00 2001 From: xiaoyao Date: Thu, 22 Sep 2016 18:01:56 +0800 Subject: [PATCH] HACK: mmc: core: fix switching clk 400K to 52/200M status error Change-Id: I56285d306e8e3a52039a7612fae666ed40117a4a Signed-off-by: xiaoyao --- drivers/mmc/core/mmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 3c2c026f66cd..9531caa125bb 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1010,6 +1010,8 @@ static int mmc_select_hs(struct mmc_card *card) true, false, true); if (!err) { mmc_set_timing(card->host, MMC_TIMING_MMC_HS); + + mmc_set_clock(card->host, card->ext_csd.hs_max_dtr); err = mmc_switch_status(card); } @@ -1378,6 +1380,7 @@ static int mmc_select_hs200(struct mmc_card *card) old_timing = host->ios.timing; mmc_set_timing(host, MMC_TIMING_MMC_HS200); + mmc_set_clock(host, card->ext_csd.hs200_max_dtr); err = mmc_switch_status(card); /* * mmc_select_timing() assumes timing has not changed if -- 2.34.1