diff options
| author | Hans de Goede <hansg@kernel.org> | 2025-09-20 23:09:55 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-02 14:48:38 +0300 |
| commit | 61ae3a52075dcdb46aa6fd9fccf5a4f3ececbd77 (patch) | |
| tree | 3e6d5af47a69cc56df0b27248c8432985acab3ca /scripts/gdb/linux/xarray.py | |
| parent | a2cb8818a3d915cd33a1e8b2babc1bb0c34862c3 (diff) | |
| download | linux-61ae3a52075dcdb46aa6fd9fccf5a4f3ececbd77.tar.xz | |
gpiolib: Extend software-node support to support secondary software-nodes
commit c6ccc4dde17676dfe617b9a37bd9ba19a8fc87ee upstream.
When a software-node gets added to a device which already has another
fwnode as primary node it will become the secondary fwnode for that
device.
Currently if a software-node with GPIO properties ends up as the secondary
fwnode then gpiod_find_by_fwnode() will fail to find the GPIOs.
Add a new gpiod_fwnode_lookup() helper which falls back to calling
gpiod_find_by_fwnode() with the secondary fwnode if the GPIO was not
found in the primary fwnode.
Fixes: e7f9ff5dc90c ("gpiolib: add support for software nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20250920200955.20403-1-hansg@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
