[PATCH v2 0/3] pinctrl: scmi: Replace get function and group info with generic callbacks
Linus Walleij
linusw at kernel.org
Tue Oct 6 23:48:56 PDT 2026
On Fri, Sep 18, 2026 at 12:56 AM Alex Tran <alex.tran at oss.qualcomm.com> 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 at oss.qualcomm.com>
Patches applied!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list