mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 12:56:18 +07:00
mmc: core: Use generic CMD6 time while switching to eMMC HS200 mode
Conform to the eMMC spec and use the CMD6 generic timeout from the EXT_CSD register, when switching to HS200 mode. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
parent
b9ec26160f
commit
57de31f635
@ -857,7 +857,9 @@ static int mmc_select_hs200(struct mmc_card *card)
|
||||
/* switch to HS200 mode if bus width set successfully */
|
||||
if (!err)
|
||||
err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
|
||||
EXT_CSD_HS_TIMING, 2, 0, true, true, true);
|
||||
EXT_CSD_HS_TIMING, 2,
|
||||
card->ext_csd.generic_cmd6_time,
|
||||
true, true, true);
|
||||
err:
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user