Re: [PATCH v5 0/4] gpio: shared-proxy: Fix line accounting

From: Bartosz Golaszewski

Date: Mon Nov 02 2026 - 04:46:41 EST



On Wed, 28 Oct 2026 20:34:44 +0800, Shawn Guo wrote:
> Four fixes for how the shared GPIO proxy accounts for users and
> votes.
>
> Patch 1 fixes a race between consumers that request a shared line
> concurrently. Each of them sees usecnt > 1, assumes another user has
> already configured the line, and fails with -EPERM. On Nord RRD this
> intermittently leaves both DAC supply regulators without their enable
> GPIO.
>
> [...]

Applied, thanks!

[1/4] gpio: shared-proxy: Fix race between concurrent first users
https://git.kernel.org/brgl/c/eb70d2419e79b6720fd465b905a2dddd751f2a48
[2/4] gpio: shared-proxy: Drop the vote of a released proxy on write failure
https://git.kernel.org/brgl/c/53b7b1201964f6f147fa0fa2f61194403a65cdf0
[3/4] gpio: shared-proxy: Drive the default value when no votes are cast
https://git.kernel.org/brgl/c/0bc45604403176722e634e670f5e38de0aa42a9b
[4/4] gpio: shared-proxy: Drop the vote when switching to input
https://git.kernel.org/brgl/c/925409db963dbae4628d522bc6b14985e749c08b

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