linux_dsm_epyc7002/drivers/pci/dwc
Vignesh R 524d59f6e3 PCI: dra7xx: Fix legacy INTD IRQ handling
Legacy INTD IRQ handling is broken on dra7xx due to fact that driver
uses hwirq in range of 1-4 for INTA, INTD whereas IRQ domain is of size
4 which is numbered 0-3. Therefore when INTD IRQ line is used with
pci-dra7xx driver following warning is seen:

       WARNING: CPU: 0 PID: 1 at kernel/irq/irqdomain.c:342 irq_domain_associate+0x12c/0x1c4
       error: hwirq 0x4 is too large for dummy

Fix this by using pci_irqd_intx_xlate() helper to translate the INTx 1-4
range into the 0-3 as done in other PCIe drivers.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Reported-by: Chris Welch <Chris.Welch@viavisolutions.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2018-01-10 11:20:12 +00:00
..
Kconfig PCI: dwc: artpec6: Add support for endpoint mode 2017-12-21 11:10:33 +00:00
Makefile PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode 2017-12-21 11:10:18 +00:00
pci-dra7xx.c PCI: dra7xx: Fix legacy INTD IRQ handling 2018-01-10 11:20:12 +00:00
pci-exynos.c PCI: exynos: Remove deprecated PHY initialization code 2018-01-02 16:27:52 +00:00
pci-imx6.c Merge branch 'pci/host-imx6' into next 2017-09-07 13:23:59 -05:00
pci-keystone-dw.c Merge branch 'pci/trivial' into next 2017-09-07 13:24:20 -05:00
pci-keystone.c Merge branch 'pci/host-keystone' into next 2017-09-07 13:24:01 -05:00
pci-keystone.h PCI: keystone: Use PCI_NUM_INTX 2017-08-16 13:39:31 -05:00
pci-layerscape.c PCI: layerscape: Change default error response behavior 2017-10-20 13:26:27 -05:00
pcie-armada8k.c Merge branch 'pci/host-designware' into next 2017-09-07 13:23:55 -05:00
pcie-artpec6.c PCI: dwc: artpec6: Fix return value check in artpec6_add_pcie_ep() 2018-01-03 11:31:53 +00:00
pcie-designware-ep.c PCI: designware-ep: Add generic function for raising MSI irq 2017-12-21 11:10:00 +00:00
pcie-designware-host.c PCI: dwc: Use the DMA-API to get the MSI address 2017-12-21 11:09:10 +00:00
pcie-designware-plat.c PCI: dwc: designware: Handle ->host_init() failures 2017-08-03 16:14:32 -05:00
pcie-designware.c PCI: dwc: Make cpu_addr_fixup take struct dw_pcie as argument 2017-12-21 11:10:34 +00:00
pcie-designware.h PCI: dwc: Make cpu_addr_fixup take struct dw_pcie as argument 2017-12-21 11:10:34 +00:00
pcie-hisi.c PCI: hisi: Constify dw_pcie_host_ops structure 2017-08-19 16:21:32 -05:00
pcie-histb.c PCI: hisi: Add HiSilicon STB SoC PCIe controller driver 2017-10-24 14:48:20 -05:00
pcie-kirin.c Merge branch 'pci/host-kirin' into next 2017-09-07 13:24:01 -05:00
pcie-qcom.c PCI: qcom: Account for const type of of_device_id.data 2018-01-03 18:16:08 +00:00
pcie-spear13xx.c Merge branch 'pci/host-spear13xx' into next 2017-09-07 13:24:07 -05:00