mmc: tmio: reinit card irqs in reset routine
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 3 Nov 2021 12:26:46 +0000 (13:26 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Dec 2021 20:35:22 +0000 (21:35 +0100)
commite315b1f3a170f368da5618f8a598e68880302ed1
tree61f5f3b8a24bb6cbe25353afd974ac1904f5ae3e
parent2585cf9dfaaddf00b069673f27bb3f8530e2039c
mmc: tmio: reinit card irqs in reset routine

Refactor the code so that card detect irqs are always reenabled after a
reset. This avoids doing it manually all over the code or forgetting to
do this in the future.

Reported-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
[wsa: added a comment when 'native_hotplug' has to be set]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20211103122646.64422-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c