]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdca267030735c47310a2b3974c76ef9bff642cc3
tree96c7dc7fe9fd274f65929045c027c85a143ad2f8
parent81969c994a9a3cd59c8ea8de7e162ba037464985
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: 07c861e309fc ("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