kernel_samsung_a53x/drivers/pci/controller/dwc
Kishon Vijay Abraham I 6044c0ed64 PCI: keystone: Add link up check to ks_pcie_other_map_bus()
commit 9e9ec8d8692a6f64d81ef67d4fb6255af6be684b upstream.

K2G forwards the error triggered by a link-down state (e.g., no connected
endpoint device) on the system bus for PCI configuration transactions;
these errors are reported as an SError at system level, which is fatal and
hangs the system.

So, apply fix similar to how it was done in the DesignWare Core driver
commit 15b23906347c ("PCI: dwc: Add link up check in dw_child_pcie_ops.map_bus()").

Fixes: 10a797c6e54a ("PCI: dwc: keystone: Use pci_ops for config space accessors")
Link: https://lore.kernel.org/r/20240524105714.191642-3-s-vadapalli@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
[kwilczynski: commit log, added tag for stable releases]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-17 13:24:24 +01:00
..
Kconfig
Makefile
pci-dra7xx.c
pci-exynos.c
pci-imx6.c
pci-keystone.c PCI: keystone: Add link up check to ks_pcie_other_map_bus() 2024-12-17 13:24:24 +01:00
pci-layerscape-ep.c
pci-layerscape.c
pci-meson.c
pcie-al.c
pcie-armada8k.c
pcie-artpec6.c
pcie-designware-ep.c
pcie-designware-host.c
pcie-designware-plat.c
pcie-designware.c
pcie-designware.h
pcie-exynos-common.h
pcie-exynos-dbg.c
pcie-exynos-dbg.h
pcie-exynos-rc.c
pcie-exynos-rc.h
pcie-exynosS5E9925-rc-cal.c
pcie-exynosS5E9925-rc-cal_s5300.c
pcie-hisi.c
pcie-histb.c
pcie-intel-gw.c
pcie-kirin.c
pcie-qcom.c
pcie-spear13xx.c
pcie-tegra194.c
pcie-uniphier-ep.c
pcie-uniphier.c