Only lx2160 rev1 use mobiveil PCIe controller. Rev2 switch to designware PCIe controller. Rev2 is mass production chip and Rev1 will be not supported. So mark it as Obsolete at MAINTAINERS and add depericated information in Kconfig. Only allow COMPILE_TEST can choose it to make impact more visible. Signed-off-by: Frank Li <Frank.Li@xxxxxxx> --- Change v1 to v2 - make as Obsolete and deprecated instead of delete these directly. If no one complain for some time, then clean up related code. v1: https://lore.kernel.org/imx/20240808-mobivel_cleanup-v1-0-f4f6ea5b16de@xxxxxxx/T/#t --- MAINTAINERS | 2 +- drivers/pci/controller/mobiveil/Kconfig | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 42decde383206..c97ca861abae9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17497,7 +17497,7 @@ PCI DRIVER FOR NXP LAYERSCAPE GEN4 CONTROLLER M: Hou Zhiqiang <Zhiqiang.Hou@xxxxxxx> L: linux-pci@xxxxxxxxxxxxxxx L: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers) -S: Maintained +S: Obsolete F: Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt F: drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c diff --git a/drivers/pci/controller/mobiveil/Kconfig b/drivers/pci/controller/mobiveil/Kconfig index 58ce034f701ab..8f95fc831c3fe 100644 --- a/drivers/pci/controller/mobiveil/Kconfig +++ b/drivers/pci/controller/mobiveil/Kconfig @@ -12,13 +12,14 @@ config PCIE_MOBIVEIL_HOST select PCIE_MOBIVEIL config PCIE_LAYERSCAPE_GEN4 - bool "Freescale Layerscape Gen4 PCIe controller" + bool "Freescale Layerscape Gen4 PCIe controller (Deprecated)" if COMPILE_TEST depends on ARCH_LAYERSCAPE || COMPILE_TEST depends on PCI_MSI select PCIE_MOBIVEIL_HOST help Say Y here if you want PCIe Gen4 controller support on - Layerscape SoCs. + Layerscape SoCs. It is only used at lx2160a rev1 chip, which is + not mass production. lx2160a rev2 switch to designware version. config PCIE_MOBIVEIL_PLAT bool "Mobiveil AXI PCIe controller" -- 2.34.1