On Wed, Nov 27, 2024, at 01:12, Fabio Estevam wrote: > However, after thinking more about it, I wonder if the patch in > Subject is worth it. > > It can help reduce the kernel size for LS1021A that does not need > pinctrl, but on the other > hand, it will cause pain to lots of people who have i.MX products > running custom defconfigs. How about moving CONFIG_SOC_LS1021A out of arch/arm/mach-imx/Kconfig entirely? As far as I can tell, the only file that is even compiled in there is arch/arm/mach-imx/mach-ls1021a.c, and that one is not actually required. I think we can just have an ARCH_LAYERSCAPE entry in arch/arm/Kconfig.platforms instead, or maybe keep it in mach-imx/Kconfig but drop the CONFIG_IMX dependency. The only thing that imx and layerscape seem to share is the platsmp.c file, which has code for both, but nothing in there seems shared. Maybe layerscape can just use enable-method="psci" anyway, if that is implemented by the firmware? Arnd