Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks
@ 2026-07-31 17:49 Alex Tran
  2026-07-31 17:49 ` [PATCH 1/2] pinctrl: scmi: Replace pinmux ops get function info with generics Alex Tran
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alex Tran @ 2026-07-31 17:49 UTC (permalink / raw)
  To: Sudeep Holla, Cristian Marussi, Linus Walleij
  Cc: arm-scmi, linux-arm-kernel, linux-gpio, linux-kernel, Alex Tran

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@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@oss.qualcomm.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-14  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 17:49 [PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks Alex Tran
2026-07-31 17:49 ` [PATCH 1/2] pinctrl: scmi: Replace pinmux ops get function info with generics Alex Tran
2026-07-31 17:49 ` [PATCH 2/2] pinctrl: scmi: Replace pinctrl ops get group " Alex Tran
2026-08-14  8:26 ` [PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks Cristian Marussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox