Re: [PATCH RFT/RFC] mfd: cs42l43: setup true links with software nodes

From: Bartosz Golaszewski

Date: Wed Nov 19 2025 - 09:45:58 EST


On Wed, Nov 19, 2025 at 3:09 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> On Wed, Nov 19, 2025 at 2:27 PM Charles Keepax
> <ckeepax@xxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > I think as Andy pointed out though the first 4 patches in your
> > chain do loosely want we want. Previously, we used the name to
> > point to the actual pinctrl driver, your patches should let us
> > do that properly through the fwnode. So we can drop the pinctrl
> > swnode and just have the cs-gpios bit point at the actual fwnode
> > instead. I am trying to hack together a strawman but its failing
> > in a lightly odd way. Hopefully I can get that sorted fairly
> > soon and post, or I guess I could post a version earlier if you
> > wanted a look in the knowledge it still doesn't work?
> >
>
> If your solution won't work after all, we can try using machine lookup
> instead. We have all the blocks except for support for the "undefined"
> GPIO in machine lookup. That would need to be added.
>

Just noting an idea: we could set the key field in the lookup entry to
"ERR_PTR(-ENOENT)" and use it to signal that we should return -ENOENT
from gpiod_find() if it matches the consumer device.

Bart