[RESEND PATCH v1 0/1] mmc: fix response timeout after switch command

Stefan Bosch stefan_b at posteo.net
Sat Jan 23 13:37:40 CET 2021


Currently I am implementing SPL for frienlyARM's NanoPC-T2 board (SoC
S5P4418). Loading of U-Boot from SD-card fails if CONFIG_SPL_MMC_TINY=y.
I.e. mmc_set_blocklen() inside mmc_bread() fails (Response Timeout),
caused by the previous call of __mmc_switch() in drivers/mmc/mmc.c:
Here the 'current state' of the card status keeps 'data' for several
100ms after issuing the switch command. Because of this state the next
command issued fails (in this case CMD16 = SET_BLOCKLEN). Patch: Wait
for 'current state' = 'tran' in __mmc_switch().


Stefan Bosch (1):
  mmc: fix response timeout after switch command

 drivers/mmc/mmc.c | 3 ++-
 include/mmc.h     | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.17.1



More information about the U-Boot mailing list