]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: Add pci_assign_irq() function and have pci_fixup_irqs() use it
authorMatthew Minter <matt@masarand.com>
Wed, 28 Jun 2017 20:14:02 +0000 (15:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 21:14:28 +0000 (16:14 -0500)
commit47a650f2795b00297a5a3eab7aaa46bdb2bbe304
treedc53baca14fc82a9c8819d0da2a2da5b1d527928
parent3aa8a41e0bf5565946082d23ae589c1a8559494a
PCI: Add pci_assign_irq() function and have pci_fixup_irqs() use it

Here we delete the static pdev_fixup_irq() function which is currently what
pci_fixup_irqs() uses to actually assign the IRQs and replace it with the
pci_assign_irq() function which changes the interface and uses the new
function pointers stored in the host bridge structure.

Eventually this will allow pci_fixup_irqs() to be removed entirely and the
new deferred assignment code path will call pci_assign_irq() directly.
However to ensure current users continue to work, a new implementation of
pci_fixup_irqs() is introduced which simply wraps the functionality of
pci_assign_irq().

Signed-off-by: Matthew Minter <matt@masarand.com>
[lorenzo.pieralisi@arm.com: reworked comments/log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-irq.c
include/linux/pci.h