Re: [PATCH] gpiolib: fix efficiency regression when using gpio_chip_get_multiple()

From: Bartosz Golaszewski
Date: Fri Jul 04 2025 - 04:36:56 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Thu, 03 Jul 2025 15:18:29 -0400, Hugo Villeneuve wrote:
> commit 74abd086d2ee ("gpiolib: sanitize the return value of
> gpio_chip::get_multiple()") altered the value returned by
> gc->get_multiple() in case it is positive (> 0), but failed to
> return for other cases (<= 0).
>
> This may result in the "if (gc->get)" block being executed and thus
> negates the performance gain that is normally obtained by using
> gc->get_multiple().
>
> [...]

Applied, thanks!

[1/1] gpiolib: fix efficiency regression when using gpio_chip_get_multiple()
https://git.kernel.org/brgl/linux/c/30e0fd3c0273dc106320081793793a424f1f1950

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