linux/drivers/pci/controller/cadence
Krzysztof Wilczyński 1002573ee3 PCI: cadence: Fix DMA range mapping early return error
Function cdns_pcie_host_map_dma_ranges() iterates over a PCIe host bridge
DMA ranges using the resource_list_for_each_entry() iterator, returning an
error if cdns_pcie_host_bar_config() fails.

49e427e6bd ("Merge branch 'pci/host-probe-refactor'") botched a merge so
it *always* returned after the first DMA range, even if no error occurred.

Fix the error checking so we return early only when an error occurs.

[bhelgaas: commit log]
Fixes: 49e427e6bd ("Merge branch 'pci/host-probe-refactor'")
Link: https://lore.kernel.org/r/20210216205935.3112661-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2021-02-18 10:56:02 -06:00
..
Kconfig PCI: j721e: Add TI J721E PCIe driver 2020-08-03 14:49:55 +01:00
Makefile PCI: j721e: Add TI J721E PCIe driver 2020-08-03 14:49:55 +01:00
pci-j721e.c PCI: j721e: Get offset within "syscon" from "ti,syscon-pcie-ctrl" phandle arg 2020-12-10 14:37:48 +00:00
pcie-cadence-ep.c PCI: cadence: Do not error if "cdns,max-outbound-regions" is not found 2020-11-20 17:23:31 +00:00
pcie-cadence-host.c PCI: cadence: Fix DMA range mapping early return error 2021-02-18 10:56:02 -06:00
pcie-cadence-plat.c Merge branch 'remotes/lorenzo/pci/runtime-pm' 2020-08-05 18:24:20 -05:00
pcie-cadence.c Merge branch 'pci/host-probe-refactor' 2020-08-05 18:24:21 -05:00
pcie-cadence.h PCI: cadence: Do not error if "cdns,max-outbound-regions" is not found 2020-11-20 17:23:31 +00:00