linux_dsm_epyc7002/drivers/pci/host
Sergei Shtylyov b9f27afbc0 PCI: faraday: Fix of_irq_get() error check
of_irq_get() may return a negative error number as well as 0 on failure,
while the driver only checks for 0, blithely continuing with the call to
irq_set_chained_handler_and_data() -- that function expects *unsigned int*
so should probably do nothing when a large IRQ number resulting from a
conversion of a negative error number is passed to it. The driver then
probes successfully while being only partly functional...

Check for 'irq <= 0' instead and propagate the negative error number to the
probe method --  that will allow the deferred probing as well.

Fixes: d3c68e0a7e ("PCI: faraday: Add Faraday Technology FTPCI100 PCI Host Bridge driver")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
2017-08-16 11:42:28 -05:00
..
Kconfig Merge branch 'pci/host-tango' into next 2017-07-07 13:42:25 -05:00
Makefile Merge branch 'pci/host-tango' into next 2017-07-07 13:42:25 -05:00
pci-aardvark.c PCI: aardvark: Convert PCI scan API to pci_scan_root_bus_bridge() 2017-07-02 16:14:23 -05:00
pci-ftpci100.c PCI: faraday: Fix of_irq_get() error check 2017-08-16 11:42:28 -05:00
pci-host-common.c PCI: generic: Drop pci_fixup_irqs() 2017-07-02 16:51:19 -05:00
pci-host-generic.c PCI: Don't allow unbinding host controllers that aren't prepared 2017-04-28 10:38:00 -05:00
pci-hyperv.c PCI: hv: Use vPCI protocol version 1.2 2017-07-02 18:43:09 -05:00
pci-mvebu.c Merge branch 'pci/msi' into next 2017-04-28 10:34:19 -05:00
pci-rcar-gen2.c PCI: rcar-gen2: Make of_device_ids const 2017-07-02 18:45:31 -05:00
pci-tegra.c PCI: tegra: Do not allocate MSI target memory 2017-07-02 18:46:20 -05:00
pci-thunder-ecam.c PCI: Don't allow unbinding host controllers that aren't prepared 2017-04-28 10:38:00 -05:00
pci-thunder-pem.c PCI: Don't allow unbinding host controllers that aren't prepared 2017-04-28 10:38:00 -05:00
pci-versatile.c PCI: versatile: Add local struct device pointers 2017-07-02 18:46:43 -05:00
pci-xgene-msi.c PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling 2017-01-17 08:41:51 -06:00
pci-xgene.c PCI: xgene: Move to struct pci_host_bridge IRQ mapping functions 2017-07-02 16:51:19 -05:00
pcie-altera-msi.c Merge branches 'pci/host-aardvark', 'pci/host-altera', 'pci/host-artpec', 'pci/host-designware', 'pci/host-hv', 'pci/host-keystone', 'pci/host-rcar', 'pci/host-rockchip', 'pci/host-tegra' and 'pci/host-xilinx' into next 2016-10-05 13:59:14 -05:00
pcie-altera.c PCI: altera: Drop pci_fixup_irqs() 2017-07-02 16:51:19 -05:00
pcie-iproc-bcma.c PCI: iproc: Convert PCI scan API to pci_scan_root_bus_bridge() 2017-07-02 16:14:24 -05:00
pcie-iproc-msi.c PCI: iproc: Add BCMA type 2016-11-14 15:55:33 -06:00
pcie-iproc-platform.c PCI: iproc: Convert PCI scan API to pci_scan_root_bus_bridge() 2017-07-02 16:14:24 -05:00
pcie-iproc.c PCI: iproc: Drop pci_fixup_irqs() 2017-07-02 16:51:18 -05:00
pcie-iproc.h PCI: iproc: Save host bridge window resource in struct iproc_pcie 2017-03-09 11:27:07 -06:00
pcie-mediatek.c PCI: mediatek: Add MediaTek PCIe host controller support 2017-07-02 18:44:45 -05:00
pcie-rcar.c PCI: rcar: Drop pci_fixup_irqs() 2017-07-02 16:51:18 -05:00
pcie-rockchip.c PCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly 2017-07-12 12:50:11 -05:00
pcie-tango.c PCI: tango: Add Sigma Designs Tango SMP8759 PCIe host bridge support 2017-07-07 13:41:28 -05:00
pcie-xilinx-nwl.c PCI: xilinx-nwl: Modify IRQ chip for legacy interrupts 2017-07-02 18:47:39 -05:00
pcie-xilinx.c PCI: xilinx: Make of_device_ids const 2017-07-02 18:47:40 -05:00
vmd.c pci-v4.13-changes 2017-07-08 15:51:57 -07:00