Skip to content

Commit fa15778

Browse files
author
Myron Stowe
committed
genirq/msi: Engage the .msi_teardown() callback on domain removal
JIRA: https://issues.redhat.com/browse/RHEL-120705 Upstream Status: 03c2987 commit 03c2987 Author: Marc Zyngier <maz@kernel.org> Date: Tue May 13 17:31:43 2025 +0100 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 Signed-off-by: Myron Stowe <mstowe@redhat.com>
1 parent d96a828 commit fa15778

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/irq/msi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,9 @@ void msi_remove_device_irq_domain(struct device *dev, unsigned int domid)
10771077

10781078
dev->msi.data->__domains[domid].domain = NULL;
10791079
info = domain->host_data;
1080+
1081+
info->ops->msi_teardown(domain, info->alloc_data);
1082+
10801083
if (irq_domain_is_msi_device(domain))
10811084
fwnode = domain->fwnode;
10821085
irq_domain_remove(domain);

0 commit comments

Comments
 (0)