mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-11 07:28:10 +09:00
HACK: mmc: core: fix switching clk 400K to 52/200M status error
Change-Id: I56285d306e8e3a52039a7612fae666ed40117a4a Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user