Re: [PATCH v2] gpiolib: normalize the return value of gc->get() on behalf of buggy drivers

From: Bartosz Golaszewski

Date: Mon Feb 23 2026 - 05:49:45 EST



On Thu, 19 Feb 2026 10:51:33 +0100, Bartosz Golaszewski wrote:
> Commit 86ef402d805d ("gpiolib: sanitize the return value of
> gpio_chip::get()") started checking the return value of the .get()
> callback in struct gpio_chip. Now - almost a year later - it turns out
> that there are quite a few drivers in tree that can break with this
> change. Partially revert it: normalize the return value in GPIO core but
> also emit a warning.
>
> [...]

Applied, thanks!

[1/1] gpiolib: normalize the return value of gc->get() on behalf of buggy drivers
https://git.kernel.org/brgl/c/ec2cceadfae72304ca19650f9cac4b2a97b8a2fc

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