[PATCH v2 4/5] genirq/msi: Engage the .msi_teardown() callback on domain removal
Marc Zyngier
maz at kernel.org
Tue May 13 09:31:43 PDT 2025
Kindly inform the MSI driver that we are tearing down the domain,
providing the allocation context previously populated on domain
creation.
Signed-off-by: Marc Zyngier <maz at kernel.org>
---
kernel/irq/msi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 07eb857efd15e..8f3d9f5ff1eb4 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);
--
2.39.2
More information about the linux-arm-kernel
mailing list