[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch 17/22] PCI/MSI: Split out !IRQDOMAIN code
- To: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>
- From: Cédric Le Goater <clg@xxxxxxxx>
- Date: Mon, 29 Nov 2021 08:51:04 +0100
- Authentication-results: garm.ovh; auth=pass (GARM-95G0018853b231-08ce-4c1d-9d13-72c8b66df497, 3279756C2EB34864E332BB908A933B747C53BE44) smtp.auth=clg@xxxxxxxx
- Cc: <linux-hyperv@xxxxxxxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, <sparclinux@xxxxxxxxxxxxxxx>, Wei Liu <wei.liu@xxxxxxxxxx>, Ashok Raj <ashok.raj@xxxxxxxxx>, Marc Zygnier <maz@xxxxxxxxxx>, <x86@xxxxxxxxxx>, Christian Borntraeger <borntraeger@xxxxxxxxxx>, Bjorn Helgaas <helgaas@xxxxxxxxxx>, Jason Gunthorpe <jgg@xxxxxxxxxx>, <linux-pci@xxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <ath11k@xxxxxxxxxxxxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Heiko Carstens <hca@xxxxxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxxxxxx>, Megha Dey <megha.dey@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, <linux-mips@xxxxxxxxxxxxxxx>, <linuxppc-dev@xxxxxxxxxxxxxxxx>
- Delivery-date: Mon, 29 Nov 2021 07:51:22 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
+void __weak arch_teardown_msi_irqs(struct pci_dev *dev)
+{
+ struct msi_desc *desc;
+ int i;
+
+ for_each_pci_msi_entry(desc, dev) {
+ if (desc->irq) {
+ for (i = 0; i < entry->nvec_used; i++)
I guess this is 'desc' ?
Thanks,
C.
+ arch_teardown_msi_irq(desc->irq + i);
+ }
+ }
+}
|