Files
twx-linux/drivers
Anssi Hannula 5a86b1150f mmc: core: fix multi-bit bus width without high-speed mode
commit 3d4ef32975 upstream.

Commit 577fb13199 ("mmc: rework selection of bus speed mode")
refactored bus width selection code to mmc_select_bus_width().

However, it also altered the behavior to not call the selection code in
non-high-speed modes anymore.

This causes 1-bit mode to always be used when the high-speed mode is not
enabled, even though 4-bit and 8-bit bus are valid bus widths in the
backwards-compatibility (legacy) mode as well (see e.g. 5.3.2 Bus Speed
Modes in JEDEC 84-B50). This results in a significant regression in
transfer speeds.

Fix the code to allow 4-bit and 8-bit widths even without high-speed
mode, as before.

Tested with a Zynq-7000 PicoZed 7020 board.

Fixes: 577fb13199 ("mmc: rework selection of bus speed mode")
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[anssi.hannula@bitwise.fi: backported for the different err variable
 check on v4.4 and tested]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-23 17:43:10 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-01-12 11:22:47 +01:00
2017-02-18 16:39:27 +01:00
2017-02-23 17:43:10 +01:00
…
…
…
…
…
…
…
2016-12-08 07:15:24 +01:00
…
2016-11-26 09:54:53 +01:00
…
2017-02-23 17:43:09 +01:00
…
…
…
…
…
…
2016-11-26 09:54:53 +01:00
…
…
…
…
…