genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV
authorThomas Gleixner <tglx@linutronix.de>
Sat, 27 Jan 2024 16:17:41 +0000 (21:47 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 16:55:41 +0000 (17:55 +0100)
commit9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd
tree0f276d9ba7b3a8cdb606a82601fe30f7d3b63a52
parente49312fe09df36cc4eae0cd6e1b08b563a91e1bc
genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV

Some platform-MSI implementations require that power management is
redirected to the underlying interrupt chip device. To make this work
with per device MSI domains provide a new feature flag and let the
core code handle the setup of dev->pm_dev when set during device MSI
domain creation.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240127161753.114685-14-apatel@ventanamicro.com
include/linux/msi.h
kernel/irq/msi.c