mmc: tmio: always restore irq register
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 13 Apr 2021 08:31:37 +0000 (10:31 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Apr 2021 11:59:02 +0000 (13:59 +0200)
commit0751d56ef1f25c4206626dff99445db34dedf437
tree8d5940c90b7833521c8eb8710c1b8f7e46e1a34c
parent9751bacc8c212eeb15b10231492840086ca719f3
mmc: tmio: always restore irq register

Currently, only SDHI on R-Car Gen2+ reinitializes the irq register
during reset but it should be done on all instances. We can move it from
the SDHI driver to the TMIO core, because we now have the
'sd_irq_mask_all' variable which carries the proper value to use. That
also means we can remove the initialization from tmio_mmc_probe()
because it calls tmio_mmc_reset(), too. We only move that
tmio_mmc_reset() call there a little to ensure 'sd_irq_mask_all' is
properly set.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210413083137.11171-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc_core.c