[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <175161750676.14835.4100205816792446809.b4-ty@linaro.org>
Date: Fri, 4 Jul 2025 10:25:41 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Hugo Villeneuve <hugo@...ovil.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
Hugo Villeneuve <hvilleneuve@...onoff.com>,
stable@...r.kernel.org,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpiolib: fix efficiency regression when using gpio_chip_get_multiple()
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
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@...aro.org>
Powered by blists - more mailing lists