On Wed, Oct 29, 2025 at 12:21 PM Bartosz Golaszewski <[email protected]> wrote:
> From: Bartosz Golaszewski <[email protected]> > > This module scans the device tree (for now only OF nodes are supported > but care is taken to make other fwnode implementations easy to > integrate) and determines which GPIO lines are shared by multiple users. > It stores that information in memory. When the GPIO chip exposing shared > lines is registered, the shared GPIO descriptors it exposes are marked > as shared and virtual "proxy" devices that mediate access to the shared > lines are created. When a consumer of a shared GPIO looks it up, its > fwnode lookup is redirected to a just-in-time machine lookup that points > to this proxy device. > > This code can be compiled out on platforms which don't use shared GPIOs. > > Signed-off-by: Bartosz Golaszewski <[email protected]> The concept is sound and we have to begin somewhere, optimizations for code reuse and cleanups can be done in-tree. So: Reviewed-by: Linus Walleij <[email protected]> Yours, Linus Walleij
