diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2015-09-18 13:58:34 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-09-18 13:58:34 -0500 |
commit | 339e5b44eda2150baad183def6b7030fad5ec44e (patch) | |
tree | dd2bc451f26ec360960b1861441397352bfea109 /drivers/pci/msi.c | |
parent | ed8b472df44af6dc4cb18e828dc9bb2d57f14b9e (diff) | |
download | linux-stable-339e5b44eda2150baad183def6b7030fad5ec44e.tar.gz linux-stable-339e5b44eda2150baad183def6b7030fad5ec44e.tar.bz2 linux-stable-339e5b44eda2150baad183def6b7030fad5ec44e.zip |
PCI: Add msi_controller setup_irqs() method for special multivector setup
Add a msi_controller setup_irqs() method so MSI chip providers can
implement their own multivector MSI setup.
[bhelgaas: changelog]
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pratyush Anand <pratyush.anand@gmail.com>
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d4497141d083..74319f497656 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -105,9 +105,12 @@ void __weak arch_teardown_msi_irq(unsigned int irq) int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) { + struct msi_controller *chip = dev->bus->msi; struct msi_desc *entry; int ret; + if (chip && chip->setup_irqs) + return chip->setup_irqs(chip, dev, nvec, type); /* * If an architecture wants to support multiple MSI, it needs to * override arch_setup_msi_irqs() |