OSDN Git Service

genirq: Allow the PM device to originate from irq domain
authorMarc Zyngier <maz@kernel.org>
Tue, 1 Feb 2022 12:02:59 +0000 (12:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 9 Feb 2022 13:35:56 +0000 (13:35 +0000)
commit1f8863bfb5ca500ea1c7669b16b1931ba27fce20
tree03a3610203ea60dc77c11d7053dac9ea62fbb23c
parentdfd42facf1e4ada021b939b4e19c935dcdd55566
genirq: Allow the PM device to originate from irq domain

As a preparation to moving the reference to the device used for
runtime power management, add a new 'dev' field to the irqdomain
structure for that exact purpose.

The irq_chip_pm_{get,put}() helpers are made aware of the dual
location via a new private helper.

No functional change intended.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Tony Lindgren <tony@atomide.com>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220201120310.878267-2-maz@kernel.org
include/linux/irqdomain.h
kernel/irq/chip.c