Skip to content

Commit 03c2987

Browse files
Marc ZyngierKAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 1396e89 commit 03c2987

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
@@ -1096,6 +1096,9 @@ void msi_remove_device_irq_domain(struct device *dev, unsigned int domid)
10961096

10971097
dev->msi.data->__domains[domid].domain = NULL;
10981098
info = domain->host_data;
1099+
1100+
info->ops->msi_teardown(domain, info->alloc_data);
1101+
10991102
if (irq_domain_is_msi_device(domain))
11001103
fwnode = domain->fwnode;
11011104
irq_domain_remove(domain);

0 commit comments

Comments
 (0)