Re: [PATCH v2 0/3] pinctrl: scmi: Replace get function and group info with generic callbacks

From: Linus Walleij

Date: Wed Oct 07 2026 - 02:49:19 EST


On Fri, Sep 18, 2026 at 12:56 AM Alex Tran <alex.tran@xxxxxxxxxxxxxxxx> wrote:

> This series refactors the SCMI pinctrl driver to eliminate metadata
> getter callbacks to be replaced with pinctrl and pinmux generics
> provided by the pinctrl core.
>
> Previously, the driver implemented its own get_functions_count,
> get_function_name, get_function_groups, get_groups_count,
> get_group_name, and get_group_pins callbacks, which required
> maintaining driver metadata like the functions and count.
>
> The pinctrl core already has support to store and manage this
> topology in the pinctrl_dev via its own internal radix trees.
> By registering functions and groups at probe time using
> pinmux_generic_add_function and pinctrl_generic_add_group, the
> driver can delegate group and function metadata management to
> the core.
>
> Signed-off-by: Alex Tran <alex.tran@xxxxxxxxxxxxxxxx>

Patches applied!

Yours,
Linus Walleij