Re: [PATCH] gpiolib: don't bail out if get_direction() fails in gpiochip_add_data()

From: Bartosz Golaszewski
Date: Thu Feb 20 2025 - 08:09:36 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Wed, 19 Feb 2025 15:43:56 +0100, Bartosz Golaszewski wrote:
> Since commit 9d846b1aebbe ("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.
>
> [...]

Applied, thanks!

[1/1] gpiolib: don't bail out if get_direction() fails in gpiochip_add_data()
commit: 96fa9ec477ff60bed87e1441fd43e003179f3253

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>