diff options
| author | Marc Zyngier <maz@kernel.org> | 2025-05-13 17:31:43 +0100 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2025-05-14 12:36:42 +0200 |
| commit | 03c298760ed97c5981402d64c4eed9bc4f2f0a4e (patch) | |
| tree | a54c0e667cef460c4db44173a328acc46701ebbb | |
| parent | 1396e89e09f00deb816e5f4a176d71d554922292 (diff) | |
genirq/msi: Engage the .msi_teardown() callback on domain removal
Kindly inform the MSI driver that the domain is torn down, providing the
allocation context previously populated on domain creation.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250513163144.2215824-5-maz@kernel.org
| -rw-r--r-- | kernel/irq/msi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 1098f2698547..b5559fa609eb 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -1096,6 +1096,9 @@ void msi_remove_device_irq_domain(struct device *dev, unsigned int domid) dev->msi.data->__domains[domid].domain = NULL; info = domain->host_data; + + info->ops->msi_teardown(domain, info->alloc_data); + if (irq_domain_is_msi_device(domain)) fwnode = domain->fwnode; irq_domain_remove(domain); |
