[PATCH] pinctrl: amlogic: a4: Allow functions without groups

Linus Walleij linusw at kernel.org
Fri Nov 13 02:23:54 PST 2026


On Fri, Nov 6, 2026 at 8:09 AM Xianwei Zhao via B4 Relay
<devnull+xianwei.zhao.amlogic.com at kernel.org> wrote:

> From: Xianwei Zhao <xianwei.zhao at amlogic.com>
>
> 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 at amlogic.com>
> ---
> 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



More information about the linux-arm-kernel mailing list