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)
commit668a9fe5c6a1bcac6b65d5e9b91a9eca86f782a3
tree89a78af1825628046d0fd63ac60ca380388a0e06
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
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