[PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks
Alex Tran <[email protected]> Fri, 31 Jul 2026 10:49:31 -0700
| Newsgroups | org.kernel.vger.arm-scmi,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260731-scmi-pinctrl-generics-v1-0-8affd2b79a6b@oss.qualcomm.com> |
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 <[email protected]> --- 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 <[email protected]>