Re: [PATCH] gpio: pca953x: Handle direction register read errors in IRQ paths
From: Bartosz Golaszewski
Date: Tue Oct 20 2026 - 09:35:04 EST
On Sun, 18 Oct 2026 22:20:03 +0530, Sahaj Chaudhari wrote:
> Three IRQ paths ignore the result of reading the direction registers
> and then use the destination bitmap. pca953x_read_regs() does not populate
> that bitmap when regmap_bulk_read() fails, leaving the callers to use
> uninitialized stack data.
>
> This can select incorrect GPIOs for direction changes during IRQ bus
> synchronization, corrupt the saved input state during IRQ setup, or
> produce incorrect pending interrupt decisions.
>
> [...]
Applied, thanks!
[1/1] gpio: pca953x: Handle direction register read errors in IRQ paths
https://git.kernel.org/brgl/c/a0fe269293509acdd93b9cfb3f46636f7b91b33a
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>