1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/pci/controller/dwc
Kishon Vijay Abraham I f6f2900ca9 PCI: keystone: Use hwirq to get the MSI IRQ number offset
ks_pcie_msi_irq_handler() uses 'virq' to get the IRQ number offset.
This offset is used to get the correct MSI_IRQ_STATUS register
corresponding to the IRQ line that raised the interrupt.

There is no guarantee that 'virq' assigned for consecutive hardware
IRQ will be contiguous and this might get us an incorrect IRQ number
offset.

Fix it here by using 'hwirq' to get the IRQ number offset. Since we
don't store the 'virq' numbers of all the IRQ numbers, stop checking
if irq count is greater than MAX_MSI_HOST_IRQS and remove
MAX_MSI_HOST_IRQS.

Link: https://lkml.kernel.org/r/bb081d21-7c03-0357-4294-7e92d95d838c@arm.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2019-04-04 17:09:36 +01:00
..
Kconfig PCI: imx6: Add support for i.MX8MQ 2019-02-04 12:04:53 +00:00
Makefile PCI: layerscape: Add EP mode support 2019-02-21 10:40:55 +00:00
pci-dra7xx.c Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pci-exynos.c PCI: exynos: Drop unnecessary root_bus_nr setting 2018-07-13 14:07:47 +01:00
pci-imx6.c pci-v5.1-changes 2019-03-09 14:57:08 -08:00
pci-keystone.c PCI: keystone: Use hwirq to get the MSI IRQ number offset 2019-04-04 17:09:36 +01:00
pci-layerscape-ep.c PCI: layerscape: Add EP mode support 2019-02-21 10:40:55 +00:00
pci-layerscape.c pci-v4.21-changes 2019-01-05 17:57:34 -08:00
pci-meson.c PCI: amlogic: Fix build failure due to missing gpio header 2019-01-08 09:01:44 -06:00
pcie-armada8k.c Revert "PCI: armada8k: Add support for gpio controlled reset signal" 2019-01-31 15:07:29 -06:00
pcie-artpec6.c PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures 2018-07-19 11:34:42 +01:00
pcie-designware-ep.c Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-designware-host.c PCI: dwc: skip MSI init if MSIs have been explicitly disabled 2019-03-01 12:05:45 +00:00
pcie-designware-plat.c Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-designware.c PCI: dwc: Make use of BIT() in constant definitions 2019-03-01 10:55:32 +00:00
pcie-designware.h Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-hisi.c PCI: Collect all native drivers under drivers/pci/controller/ 2018-06-08 07:50:11 -05:00
pcie-histb.c PCI: histb: Constify dw_pcie_host_ops structure 2018-11-08 13:54:44 +00:00
pcie-kirin.c PCI: kirin: Fix section mismatch warning 2018-10-01 17:16:23 +01:00
pcie-qcom.c PCI: qcom: Don't deassert reset GPIO during probe 2019-02-28 09:46:10 +00:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00
pcie-uniphier.c PCI: uniphier: Add UniPhier PCIe host controller support 2018-12-19 10:25:44 +00:00