From: Alex Tran <alex.tran@oss.qualcomm.com>
To: Sudeep Holla <sudeep.holla@kernel.org>,
Cristian Marussi <cristian.marussi@arm.com>,
Linus Walleij <linusw@kernel.org>
Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
Alex Tran <alex.tran@oss.qualcomm.com>
Subject: [PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks
Date: Fri, 31 Jul 2026 10:49:31 -0700 [thread overview]
Message-ID: <20260731-scmi-pinctrl-generics-v1-0-8affd2b79a6b@oss.qualcomm.com> (raw)
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>
next reply other threads:[~2026-07-31 17:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 17:49 Alex Tran [this message]
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
2026-08-15 0:05 ` Alex Tran
2026-09-07 8:53 ` Sudeep Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260731-scmi-pinctrl-generics-v1-0-8affd2b79a6b@oss.qualcomm.com \
--to=alex.tran@oss.qualcomm.com \
--cc=arm-scmi@vger.kernel.org \
--cc=cristian.marussi@arm.com \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudeep.holla@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox