public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RESEND PATCH v1 0/1] mmc: fix response timeout after switch command
@ 2021-01-23 12:37 Stefan Bosch
  2021-01-23 12:37 ` [RESEND PATCH v1 1/1] " Stefan Bosch
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Bosch @ 2021-01-23 12:37 UTC (permalink / raw)
  To: u-boot


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-28 22:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-23 12:37 [RESEND PATCH v1 0/1] mmc: fix response timeout after switch command Stefan Bosch
2021-01-23 12:37 ` [RESEND PATCH v1 1/1] " Stefan Bosch
2021-01-26 23:38   ` Jaehoon Chung
2021-01-28 19:23     ` Stefan Bosch
2021-01-28 22:00       ` Jaehoon Chung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox