Re: [PATCH 0/2] pinctrl: scmi: Replace get function and group info with generic callbacks
From: Sudeep Holla
Date: Mon Sep 07 2026 - 04:59:33 EST
On Fri, Aug 14, 2026 at 05:05:27PM -0700, Alex Tran wrote:
> > Hi Alex,
> >
> > I gave it a go at this series on an emulated setup and with these
> > changes I get:
> >
> > root@deb-guest:~# modprobe pinctrl-scmi
> > [ 15.329932] scmi-pinctrl scmi_dev.4: error -EINVAL: Failed to register functions
> > [ 15.330259] scmi-pinctrl scmi_dev.4: probe with driver scmi-pinctrl failed with error -22
> >
> > ...not debugged any further.
> >
> > Thanks,
> > Cristian
> Hi Cristian,
>
> I've tested this series on sa8797p hardware and did not experience any issues
> with registering functions during probe. Can you provide me with the pin
> topology of your emulated setup? I have a hunch that the topology may
> contain a function with 0 groups which is why -EINVAL is being returned.
> The previous pinctrl_scmi_get_function_groups callback considered a function
> with no groups invalid.
I found couple of feedback from sashiko valid, can you take a look at all the
comments there[1] ?
--
Regards,
Sudeep
[1] https://sashiko.dev/#/patchset/20260731-scmi-pinctrl-generics-v1-0-8affd2b79a6b@xxxxxxxxxxxxxxxx