]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add a call to pci_assign_irq() in pci_device_probe()
authorMatthew Minter <matt@masarand.com>
Wed, 28 Jun 2017 20:14:04 +0000 (15:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 21:14:28 +0000 (16:14 -0500)
commita8011e900550e88f16f5f01ad4af0f2dc333f599
tree1db6ba9a6beb492c4a3c1bd39793c121ee3414a2
parent8187ff360231dda4b595ca13850cada9532f372b
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 <matt@masarand.com>
[lorenzo.pieralisi@arm.com: moved pci_assign_irq() call site]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-driver.c