public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] Fix some corner cases in bus width setting
@ 2014-12-25 16:22 Andrew Gabbasov
  2014-12-25 16:22 ` [U-Boot] [PATCH 1/2] mmc: Avoid redundant switching to 1-bit bus width for MMC cards Andrew Gabbasov
  2014-12-25 16:22 ` [U-Boot] [PATCH 2/2] mmc: Skip changing bus width for MMC cards earlier than version 4.0 Andrew Gabbasov
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Gabbasov @ 2014-12-25 16:22 UTC (permalink / raw)
  To: u-boot

Among other fixes, the commit 786e8f818c25265d12d5d06e257fe2b1ba516134
"mmc: Fix handling of bus widths and DDR card capabilities" changed
bus width setting code so that if the attempt to switch to last 1-bit
width item fails, the whole initialization fails. This seems to be more
correct than earlier ignoring of such error, but this makes sense
if the bus width was actually switched. But if all the switching
commands fail (e.g. because the card does not support bus width
switching at all), then we could just skip last switching to default
bus width and treat it as a success.

Also, MMC cards of earlier versions than MMC standard version 4.0
do not support wider bus widths, so it doesn't make sense to even try
to switch the bus width for such cards.

Andrew Gabbasov (2):
  mmc: Avoid redundant switching to 1-bit bus width for MMC cards
  mmc: Skip changing bus width for MMC cards earlier than version 4.0

 drivers/mmc/mmc.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

-- 
2.1.0

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

end of thread, other threads:[~2015-01-19 14:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25 16:22 [U-Boot] [PATCH 0/2] Fix some corner cases in bus width setting Andrew Gabbasov
2014-12-25 16:22 ` [U-Boot] [PATCH 1/2] mmc: Avoid redundant switching to 1-bit bus width for MMC cards Andrew Gabbasov
2015-01-19 14:42   ` Pantelis Antoniou
2014-12-25 16:22 ` [U-Boot] [PATCH 2/2] mmc: Skip changing bus width for MMC cards earlier than version 4.0 Andrew Gabbasov
2015-01-13 10:22   ` Alexey Brodkin
2015-01-19 14:45   ` Pantelis Antoniou

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