]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc81df667b825b0455c217c2c2d9a9d3ab84e09fd
treeccd78704d15da4482172c0df4ff3511fd8923802
parenta932fc0ee2120df1cfd328b3aceedeb8f2b32439
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