diff options
| author | Hans de Goede <[email protected]> | 2025-09-20 20:09:55 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2025-09-22 14:23:43 +0000 |
| commit | c6ccc4dde17676dfe617b9a37bd9ba19a8fc87ee (patch) | |
| tree | 7f149457a15bed27a73e3f187ae1e23f5690df36 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | Linux 6.17-rc7 (diff) | |
| download | kernel-c6ccc4dde17676dfe617b9a37bd9ba19a8fc87ee.tar.gz kernel-c6ccc4dde17676dfe617b9a37bd9ba19a8fc87ee.zip | |
gpiolib: Extend software-node support to support secondary software-nodes
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: [email protected]
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Dmitry Torokhov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
