mmc: tmio: restore bus width when resetting
authorTakeshi Saito <takeshi.saito.xv@renesas.com>
Tue, 16 Mar 2021 08:57:16 +0000 (09:57 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:06 +0000 (11:42 +0200)
commit0a446288aa9f28ab00a31b8b51fdb005953f9f99
tree162d2fefcf8f38693b9313d90dfa811ea48c106b
parent6b0e0fce4074c1fd6d7d56face140ce67110b3b2
mmc: tmio: restore bus width when resetting

Resetting the IP core will lose the bus width information and not all
code paths recover it. So, make sure the latest bus width gets restored
in the reset routine. For that, tmio_mmc_set_bus_width() is moved, but
not modified.

Signed-off-by: Takeshi Saito <takeshi.saito.xv@renesas.com>
[wsa: reworded commit message]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20210316085717.7276-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c