]> 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)
commit07d318fa400fd16f1585ee266d1a1bb8028fa728
tree89a78af1825628046d0fd63ac60ca380388a0e06
parentcf1710d1388cf5bd81996b258399c4907d27006e
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