]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: shared: ignore disabled nodes when traversing the device-tree
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 3 Dec 2025 09:23:09 +0000 (10:23 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 9 Dec 2025 06:14:53 +0000 (07:14 +0100)
commit9e7a40a2841483d7bf51b8d9a5e1f0633a5c7a26
treeb6e613581efd7ed866da8fc5327dd27dee14c43c
parent2d967310c49ed93ac11cef408a55ddf15c3dd52e
gpio: shared: ignore disabled nodes when traversing the device-tree

Don't consider disabled devices when traversing the device-tree looking
for shared GPIOs. Even if they do share a phandle to a pin, they can
never be instantiated and request it.

Fixes: a060b8c511ab ("gpiolib: implement low-level, shared GPIO support")
Link: https://lore.kernel.org/r/20251203092309.34737-1-bartosz.golaszewski@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib-shared.c