Re: [PATCH] pinctrl: amlogic: a4: Allow functions without groups
From: Linus Walleij
Date: Fri Nov 13 2026 - 07:14:30 EST
On Fri, Nov 6, 2026 at 8:09 AM Xianwei Zhao via B4 Relay
<devnull+xianwei.zhao.amlogic.com@xxxxxxxxxx> wrote:
> From: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
>
> Allow function nodes without child groups during device tree
> parsing instead of returning an error.
>
> Only count and parse nodes with the "func-" prefix as pinctrl
> functions, ignoring other non-GPIO child nodes.
>
> Also handle zero-sized allocations when no groups are defined
> by checking for ZERO_SIZE_PTR in addition to NULL.
>
> This allows the driver to support function nodes without
> groups and avoid treating unrelated device tree nodes as
> pinctrl functions.
>
> Signed-off-by: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
> ---
> Add debugging information for error dts and Error pinctrl config not affect normal pin work.
The way I read Sashikos bug report the behaviour it is complaining
about is exactly what you want?
Patch applied.
If there is something to Sashikos report, follow up with more
patches.
Yours,
Linus Walleij