]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:45 +0000 (15:17 +0100)
commitb06d46992847a0f4e60b7fafd1bf58f2fc936882
tree0eca2b6678a694306c68c8fc2dbb38e0544e095f
parent12f2fb3f7b57770e843e20a9062307ab204d117f
PCI: dwc: Do not remap invalid res

BugLink: https://bugs.launchpad.net/bugs/1964361
[ Upstream commit 6e5ebc96ec651b67131f816d7e3bf286c635e749 ]

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: 281f1f99cf3a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/pci/controller/dwc/pcie-designware.c