Skip to content

Commit 30fdfb9

Browse files
Matthew Minterbjorn-helgaas
authored andcommitted
PCI: Add a call to pci_assign_irq() in pci_device_probe()
The pci_assign_irq() function allows assignment of an IRQ to devices during device enable time rather than only at boot. Therefore call it in the pci_device_probe() function during the enable device code path so this assignment can be performed. This patch will do nothing on arches which do not set the IRQ mapping function pointers and is therefore currently a nop, however as support for these function pointers is added to arch-specific code this will cause IRQ assignment to migrate to device enable time allowing the new code paths to be used. Signed-off-by: Matthew Minter <[email protected]> [[email protected]: moved pci_assign_irq() call site] Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 716fb31 commit 30fdfb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/pci-driver.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ static int pci_device_probe(struct device *dev)
412412
struct pci_dev *pci_dev = to_pci_dev(dev);
413413
struct pci_driver *drv = to_pci_driver(dev->driver);
414414

415+
pci_assign_irq(pci_dev);
416+
415417
error = pcibios_alloc_irq(pci_dev);
416418
if (error < 0)
417419
return error;

0 commit comments

Comments
 (0)