litex_mmc: clarify how/why bus-width is configured
commit48abd025d3d8adaa1af7db8e5a8ac09bbe7aaf70
authorGabriel Somlo <gsomlo@gmail.com>
Mon, 11 Jan 2021 15:19:17 +0000 (11 10:19 -0500)
committerGabriel Somlo <gsomlo@gmail.com>
Tue, 12 Jan 2021 17:30:25 +0000 (12 12:30 -0500)
tree14d64e6455e38394f7a1df1d57463c9fac687c67
parent91b1e92a6d55c0e210aebe585f9233e1dd3ec5a6
litex_mmc: clarify how/why bus-width is configured

LiteSDCard does not support the "standard" 1-bit bus width that cards
(and the Linux mmc subsystem) both use as a default. As such, the card's
bus-width must be set to 4-bit (the only width supported by LiteSDCard)
before the very first data transfer occurs (which is typically much earlier
than when the Linux mmc subsystem would switch to "wide mode".

Also, if we're only supporting one bus width, there's no point in storing
it as a variable in the "litex_mmc_host" data structure.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
drivers/mmc/host/litex_mmc.c