Re: [PATCH] gpio: pca953x: restore output registers before direction on resume

From: Bartosz Golaszewski

Date: Mon Nov 23 2026 - 08:28:09 EST



On Wed, 18 Nov 2026 18:03:21 +1100, Dean Sellers wrote:
> pca953x_regcache_sync() restores the direction registers before the
> output registers. If the chip lost power across suspend, it comes back
> with every line an input and its output registers at their power-on
> value, which is all-high on most of these parts. Restoring direction
> first turns the configured lines back into outputs while the output
> registers still hold that value. Every line programmed low is then
> driven high for the duration of the direction write and the output write
> that follows. Where those lines drive a load, there is potential for a
> spurious output.
>
> [...]

Applied, thanks!

[1/1] gpio: pca953x: restore output registers before direction on resume
https://git.kernel.org/brgl/c/354e4d6f907ad7a60377bf817c700a674f063044

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