Files
linux/drivers/gpio
Bartosz Golaszewski 96fa9ec477 gpiolib: don't bail out if get_direction() fails in gpiochip_add_data()
Since commit 9d846b1aeb ("gpiolib: check the return value of
gpio_chip::get_direction()") we check the return value of the
get_direction() callback as per its API contract. Some drivers have been
observed to fail to register now as they may call get_direction() in
gpiochip_add_data() in contexts where it has always silently failed.
Until we audit all drivers, replace the bail-out to a kernel log
warning.

Fixes: 9d846b1aeb ("gpiolib: check the return value of gpio_chip::get_direction()")
Reported-by: Mark Brown <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Reported-by: Marek Szyprowski <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Tested-by: Mark Brown <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
2025-02-20 14:08:18 +01:00
..
2024-10-21 09:23:20 +02:00
2024-10-17 08:53:34 +02:00
2024-10-21 09:23:34 +02:00
2023-10-13 08:39:30 +02:00
2022-10-26 14:52:01 +02:00
2024-11-13 16:29:27 +01:00
2023-08-21 10:39:58 +02:00
2023-03-06 12:33:02 +02:00
2025-02-05 14:37:53 +01:00
2024-09-30 10:16:26 +02:00