Re: [PATCH v2] gpio: pca953x: fix pca953x_irq_bus_sync_unlock regmap lock
From: Bartosz Golaszewski
Date: Thu Jul 16 2026 - 10:06:48 EST
On Thu, 09 Jul 2026 16:51:16 +1200, Mark Tomlinson wrote:
> Locking is disabled in the regmap config as this driver uses its own
> lock. This means that all calls to regmap functions (read or write) must
> hold the i2c_lock. The function pca953x_irq_bus_sync_unlock() did not do
> this, and it was therefore possible that multiple threads could cause an
> incorrect register to be read/written.
>
> A previous patch partly fixed this, but only protected the write to the
> interrupt mask register, and not the read from the direction register.
>
> [...]
Applied, thanks!
[1/1] gpio: pca953x: fix pca953x_irq_bus_sync_unlock regmap lock
https://git.kernel.org/brgl/c/9dc325327babe7f159e84cbe9380a45342da0585
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>