]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: PM: Use runtime PM for chained interrupts
authorMarc Zyngier <maz@kernel.org>
Wed, 8 Jun 2022 13:45:35 +0000 (14:45 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 9 Jun 2022 14:58:13 +0000 (15:58 +0100)
commit26637b9b8dd49c14f2730b85041006f3a159407d
tree89a78af1825628046d0fd63ac60ca380388a0e06
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
genirq: PM: Use runtime PM for chained interrupts

When requesting an interrupt, we correctly call into the runtime
PM framework to guarantee that the underlying interrupt controller
is up and running.

However, we fail to do so for chained interrupt controllers, as
the mux interrupt is not requested along the same path.

Augment __irq_do_set_handler() to call into the runtime PM code
in this case, making sure the PM flow is the same for all interrupts.

Reported-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/26973cddee5f527ea17184c0f3fccb70bc8969a0.camel@pengutronix.de
kernel/irq/chip.c