[PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks
Alex Tran
alex.tran at oss.qualcomm.com
Fri Jul 31 10:49:31 PDT 2026
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>
---
Alex Tran (2):
pinctrl: scmi: Replace pinmux ops get function info with generics
pinctrl: scmi: Replace pinctrl ops get group info with generics
drivers/pinctrl/pinctrl-scmi.c | 223 ++++++++++++++++++-----------------------
1 file changed, 97 insertions(+), 126 deletions(-)
---
base-commit: 48a5a7ab8d6ab7090564339e039c421f315de912
change-id: 20260724-scmi-pinctrl-generics-746484c98b66
Best regards,
--
Alex Tran <alex.tran at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list