]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI/MSI: Free legacy IRQ when enabling MSI/MSI-X
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 30 Jul 2015 19:00:08 +0000 (14:00 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 30 Jul 2015 19:17:28 +0000 (14:17 -0500)
commit5f2269916b0e509f2926346b58209abfa8316143
tree443173a16164daf978550eb21ddef7425d773849
parent811a4e6fce09bc9239c664c6a1a53645a678c303
PCI/MSI: Free legacy IRQ when enabling MSI/MSI-X

Once MSI/MSI-X is enabled by the device driver, a PCI device won't use
legacy IRQs again until MSI/MSI-X is disabled.

Call pcibios_free_irq() when enabling MSI/MSI-X and pcibios_alloc_irq()
when disabling MSI/MSI-X.  This allows arch code to manage resources
associated with the legacy IRQ.

[bhelgaas: changelog]
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/msi.c