EXT_CSD_HS_TIMING, EXT_CSD_TIMING_HS,
card->ext_csd.generic_cmd6_time,
true, false, true);
- if (!err) {
+ 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);
- }
-
if (err)
pr_warn("%s: switch to high-speed failed, err:%d\n",
mmc_hostname(card->host), err);
goto err;
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
- * it is a switch error.
- */
- if (err == -EBADMSG)
- mmc_set_timing(host, old_timing);
}
err:
if (err) {