mmc: uniphier-sd: call devm_request_irq() after tmio_mmc_host_probe()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 May 2020 06:21:58 +0000 (15:21 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:14 +0000 (11:22 +0200)
commit5d1f42e14b135773c0cc1d82e904c5b223783a9d
tree96c7dc7fe9fd274f65929045c027c85a143ad2f8
parent1ae1d2d6e555e809945b691eccb1055595845a59
mmc: uniphier-sd: call devm_request_irq() after tmio_mmc_host_probe()

Currently, tmio_mmc_irq() handler is registered before the host is
fully initialized by tmio_mmc_host_probe(). I did not previously notice
this problem.

The boot ROM of a new Socionext SoC unmasks interrupts (CTL_IRQ_MASK)
somehow. The handler is invoked before tmio_mmc_host_probe(), then
emits noisy call trace.

Move devm_request_irq() below tmio_mmc_host_probe().

Fixes: 3fd784f745dd ("mmc: uniphier-sd: add UniPhier SD/eMMC controller driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200511062158.1790924-1-yamada.masahiro@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/uniphier-sd.c