kernel_samsung_a53x/drivers/pci/controller/dwc
Uwe Kleine-König f5890589f5 PCI: keystone: Don't discard .probe() callback
commit 7994db905c0fd692cf04c527585f08a91b560144 upstream.

The __init annotation makes the ks_pcie_probe() function disappear after
booting completes. However a device can also be bound later. In that case,
we try to call ks_pcie_probe(), but the backing memory is likely already
overwritten.

The right thing to do is do always have the probe callback available.  Note
that the (wrong) __refdata annotation prevented this issue to be noticed by
modpost.

Fixes: 0c4ffcfe1fbc ("PCI: keystone: Add TI Keystone PCIe driver")
Link: https://lore.kernel.org/r/20231001170254.2506508-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 11:43:25 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-dra7xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-exynos.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-imx6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-keystone.c PCI: keystone: Don't discard .probe() callback 2024-11-18 11:43:25 +01:00
pci-layerscape-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-layerscape.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-meson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-al.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-armada8k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-artpec6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware-plat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-rc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-rc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynosS5E9925-rc-cal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynosS5E9925-rc-cal_s5300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-hisi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-histb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-intel-gw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-kirin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-qcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-spear13xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-tegra194.c PCI: tegra194: Use FIELD_GET()/FIELD_PREP() with Link Width fields 2024-11-18 11:43:14 +01:00
pcie-uniphier-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00