Re: [PATCH v3] gpio: shared: undo the vote of the proxy on GPIO free

From: Bartosz Golaszewski

Date: Tue May 26 2026 - 04:35:05 EST



On Fri, 22 May 2026 09:49:35 +0200, Bartosz Golaszewski wrote:
> When the user of a shared GPIO managed by gpio-shared-proxy calls
> gpiod_put() to release it, we never undo the potential "vote" for
> driving the shared line "high". In the free() callback, check if this
> proxy voted for "high" and - if so - decrease the number of votes and
> potentially revert the value to low if this is the last user.
>
>
> [...]

Applied, thanks!

[1/1] gpio: shared: undo the vote of the proxy on GPIO free
https://git.kernel.org/brgl/c/54c2855a8de1fe135df5c1baa953d8c4d68198d1

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