PCI/portdrv: Support multiple interrupts for MSI as well as MSI-X
authorGabriele Paoloni <gabriele.paoloni@huawei.com>
Tue, 23 May 2017 14:23:58 +0000 (15:23 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Jun 2017 23:04:13 +0000 (18:04 -0500)
commita1d5f18cafe6b81696e60ca4901709d2f807362c
tree8f7cbc9c642cdd9fe11185d3429c74e9bfa1a416
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
PCI/portdrv: Support multiple interrupts for MSI as well as MSI-X

Root Ports can generate several different interrupts using either MSI or
MSI-X, but we only support that for MSI-X.  Ports that support MSI but not
MSI-X are currently limited to sharing a single interrupt.

Rename pcie_port_enable_msix() to pcie_port_enable_irq_vec() and extend it
to support multiple interrupts using either MSI-X (preferred) or MSI.

Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
[bhelgaas: changelog, reword comments, simplify PME/hotplug no-MSI logic]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/pci/pcie/portdrv.h
drivers/pci/pcie/portdrv_core.c