]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio: avoid glitches when resetting
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 25 Jun 2022 13:17:22 +0000 (15:17 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:31:32 +0000 (12:31 +0200)
commit99cbad403d36a06713e15b76e1177f9446eb380b
tree529e312b952149bb37f65b0350d3b81c2c414886
parent102a91784587247d34f9887889dc6745923009e7
mmc: tmio: avoid glitches when resetting

If we reset because of an error, we need to preserve values for the
clock frequency. Otherwise, glitches may be seen on the bus.

To achieve that, we introduce a 'preserve' parameter to the reset
function and the IP core specific reset callbacks to handle everything
accordingly.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20220625131722.1397-1-wsa@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc.c
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_core.c