]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
reset: gpio: use software nodes to setup the GPIO lookup
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 20 Nov 2025 13:24:04 +0000 (14:24 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 20 Nov 2025 15:51:49 +0000 (16:51 +0100)
commit5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8
treec6ebd144e531c3c89a902fad73ca495148507729
parent109ce747ac22d22a88e5ebd76d606d60a834646c
reset: gpio: use software nodes to setup the GPIO lookup

GPIO machine lookup is a nice mechanism for associating GPIOs with
consumers if we don't know what kind of device the GPIO provider is or
when it will become available. However in the case of the reset-gpio, we
are already holding a reference to the device and so can reference its
firmware node. Let's setup a software node that references the relevant
GPIO and attach it to the auxiliary device we're creating.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c