[tip: irq/msi] irqchip/irq-msi-lib: Prepare for DOMAIN_BUS_WIRED_TO_MSI

From: tip-bot2 for Thomas Gleixner
Date: Thu Jul 18 2024 - 14:42:33 EST


The following commit has been merged into the irq/msi branch of tip:

Commit-ID: 64a855324311ddad7a85fc0b25ce1f3914ed3425
Gitweb: https://git.kernel.org/tip/64a855324311ddad7a85fc0b25ce1f3914ed3425
Author: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
AuthorDate: Sun, 23 Jun 2024 17:18:44 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Thu, 18 Jul 2024 20:31:20 +02:00

irqchip/irq-msi-lib: Prepare for DOMAIN_BUS_WIRED_TO_MSI

Add the new bus token to the accepted list of child domain tokens.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Anna-Maria Behnsen <anna-maria@xxxxxxxxxxxxx>
Signed-off-by: Shivamurthy Shastri <shivamurthy.shastri@xxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20240623142235.207343466@xxxxxxxxxxxxx



---
drivers/irqchip/irq-msi-lib.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/irqchip/irq-msi-lib.c b/drivers/irqchip/irq-msi-lib.c
index b98a219..d20a0e6 100644
--- a/drivers/irqchip/irq-msi-lib.c
+++ b/drivers/irqchip/irq-msi-lib.c
@@ -69,6 +69,8 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain,

/* Core managed MSI descriptors */
info->flags = MSI_FLAG_ALLOC_SIMPLE_MSI_DESCS | MSI_FLAG_FREE_MSI_DESCS;
+ fallthrough;
+ case DOMAIN_BUS_WIRED_TO_MSI:
/* Remove PCI specific flags */
required_flags &= ~MSI_FLAG_PCI_MSI_MASK_PARENT;
break;