PCI: dwc: Expand maximum number of MSI IRQs from 32 to 256
authorGustavo Pimentel <gustavo.pimentel@synopsys.com>
Tue, 6 Mar 2018 11:54:55 +0000 (11:54 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 6 Mar 2018 14:31:16 +0000 (14:31 +0000)
commit1f319cb0538a10339d1ca73ee124331d611b43bf
treeccd78704d15da4482172c0df4ff3511fd8923802
parent3f43ccc4ea1b912ff24679576b4278fafbb190b3
PCI: dwc: Expand maximum number of MSI IRQs from 32 to 256

The Synopsys PCIe Root Complex supports up to MSI 256 IRQs distributed
over 8 controller registers, therefore the maximum number of MSI IRQs
can be changed to 256. The number of controllers can be calculated based
on the number of vectors used by the specific SoC driver.

Update the dwc host bridge driver maximum number of supported MSI
IRQs.

Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Niklas Cassel <niklas.cassel@axis.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/pci/dwc/pcie-designware-host.c
drivers/pci/dwc/pcie-designware.h