]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Do not remap invalid res
authorTim Harvey <tharvey@gateworks.com>
Mon, 1 Nov 2021 18:02:43 +0000 (11:02 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 2 Dec 2021 09:41:43 +0000 (09:41 +0000)
commit1809488c50e9b49867bc1cdd6836391dbd0d8258
treef4a92f905961b944e597cae545d18a18c9c83dd1
parentbad68f6c0c96b209be688acd1511fc590315093b
PCI: dwc: Do not remap invalid res

On imx6 and perhaps others when pcie probes you get a:
imx6q-pcie 33800000.pcie: invalid resource

This occurs because the atu is not specified in the DT and as such it
should not be remapped.

Link: https://lore.kernel.org/r/20211101180243.23761-1-tharvey@gateworks.com
Fixes: 415e9b909dfd ("PCI: dwc: Detect number of iATU windows")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Richard Zhu <hongxing.zhu@nxp.com>
Cc: Richard Zhu <hongxing.zhu@nxp.com>
drivers/pci/controller/dwc/pcie-designware.c