[U-Boot] [PATCH 0/2] Fix some corner cases in bus width setting

Andrew Gabbasov andrew_gabbasov at mentor.com
Thu Dec 25 17:22:23 CET 2014


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



More information about the U-Boot mailing list