Re: [PATCH] software node: allow referencing software nodes by name

From: Bartosz Golaszewski

Date: Wed Mar 25 2026 - 12:50:22 EST


On Tue, Mar 24, 2026 at 8:30 PM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
>
> Please post the reworked version so we can review all the details. My
> concern was that it relies on notifier chains to notify when devices
> get registered and unregistered, and instead of matching node names you
> now need to somehow match device instances and software node instances,
> which again likely is done based on some name. This just piles on
> complexity where a simpler solution would be sufficient.
>

I will post it. Hopefully before the end of the week. I want to cover
both OF nodes with paz00 as well as ACPI with android tablets. The
latter case will have to wait for devices because there's no way to
look up an ACPI node by name that I could idenfity (correct me if I'm
wrong).

> I think this approach also will give trouble when there are multiple
> users of GPIOs provided by the same gpiochip, in cases where users are
> split across multiple modules.
>

Do we have any such use-case? I haven't found any. If we do end up
running into this corner-case, it can still be done by centralizing
the software nodes in question. But maybe let's cross that bridge when
(and if) we get to it.

Bart