Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [RFC] pinctrl: ingenic: impossible MACH_* guards can drop OF match data
@ 2026-06-25  6:09 Pengpeng Hou
  2026-06-25  6:28 ` H. Nikolaus Schaller
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-06-25  6:09 UTC (permalink / raw)
  To: Paul Cercueil, Linus Walleij
  Cc: linux-mips, linux-gpio, linux-kernel, Pengpeng Hou

Hi,

while auditing conditional data-provider paths, I noticed that
drivers/pinctrl/pinctrl-ingenic.c still derives some SoC descriptor exposure
from IS_ENABLED(CONFIG_MACH_*) style conditions whose corresponding Kconfig
symbols do not appear to exist in the current Ingenic Kconfig universe.

This looks like a data-symbol legality issue rather than a simple cleanup:
the OF match table .data entries carry SoC-specific pinctrl descriptors.  If
the guard can never be true, a compatible string can lose the intended
descriptor provider even though the descriptor is still present in source.

I am not sending a patch yet because the correct policy is not obvious.  The
possible directions include:

1. remove impossible MACH_* gates from the OF match data;
2. restore current Kconfig symbols for the intended SoC families;
3. split unsupported legacy SoCs from supported descriptor exposure; or
4. keep the gates and document that these descriptors are intentionally not
   exposed.

Could you confirm which direction matches the current Ingenic pinctrl support
policy?

This is static source/Kconfig analysis only.  I have not tested the affected
hardware.

Thanks,
Pengpeng


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-25  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25  6:09 [RFC] pinctrl: ingenic: impossible MACH_* guards can drop OF match data Pengpeng Hou
2026-06-25  6:28 ` H. Nikolaus Schaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox