diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2024-01-27 21:47:41 +0530 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-02-15 17:55:41 +0100 |
commit | 9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd (patch) | |
tree | 0f276d9ba7b3a8cdb606a82601fe30f7d3b63a52 /include/linux/msi.h | |
parent | genirq/irqdomain: Reroute device MSI create_mapping (diff) | |
download | wireguard-linux-9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd.tar.xz wireguard-linux-9bbe13a5d414a7f8208dba64b54d2b6e4f7086bd.zip |
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
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r-- | include/linux/msi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index 36ba6a0852ea..26d07e23052e 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -554,6 +554,8 @@ enum { MSI_FLAG_FREE_MSI_DESCS = (1 << 6), /* Use dev->fwnode for MSI device domain creation */ MSI_FLAG_USE_DEV_FWNODE = (1 << 7), + /* Set parent->dev into domain->pm_dev on device domain creation */ + MSI_FLAG_PARENT_PM_DEV = (1 << 8), /* Mask for the generic functionality */ MSI_GENERIC_FLAGS_MASK = GENMASK(15, 0), |