]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Call pci_intx() when using legacy interrupts in pci_alloc_irq_vectors()
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Aug 2016 14:11:05 +0000 (07:11 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Aug 2016 13:02:40 +0000 (08:02 -0500)
commit9a03ef2c320d21a8e8b5df7eb0e6b0985e038a87
treed48f58105d771aef446de3f032d124d348477d95
parent4b9e5287f038a0e445f3c2c6962bde574139eee5
PCI: Call pci_intx() when using legacy interrupts in pci_alloc_irq_vectors()

ahci currently insists on an explicit call to pci_intx() before falling
back from MSI or MSI-X to legacy IRQs.  As pci_intx() is a no-op if the
command register already contains the right value it seems safe and useful
to add this call to pci_alloc_irq_vectors() so that ahci can just use
pci_alloc_irq_vectors().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c