mmc: tmio: Clear BUSWIDTH bit when WMODE bit is set
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 19 Feb 2019 18:20:14 +0000 (19:20 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Feb 2019 15:07:41 +0000 (16:07 +0100)
commit5d6888418c1185a00eda01349b03b56b03cefda5
treecd50d12d12b83aae4681fada5df544645217024b
parentd9dcf9da9619f80985c1bd77c8b251dd3a3a1b48
mmc: tmio: Clear BUSWIDTH bit when WMODE bit is set

According to latest specification rev.0026, when HOST_MODE bit 0
(WMODE) is not set, HOST_MODE bit 8 (BUSWIDTH) is ignored. Clear
HOST_MODE bit 8 in such case and align the code with Linux and
avoid possible unforeseen issues.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/tmio-common.c