]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Documentation: gpio: pca953x: clarify interrupt source detection
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>
Wed, 7 Jan 2026 09:31:22 +0000 (10:31 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 8 Jan 2026 09:50:33 +0000 (10:50 +0100)
commit8ba379879aa3e8cef871fed4a509d4f0a6370e6c
treecd473e61824dec0d5fa2cde4a28bd843990def9f
parentda64eb51595bc6073b2fb69c2a3859bba93ed75a
Documentation: gpio: pca953x: clarify interrupt source detection

There are multiple design tradeoffs and considerations in how the
PCA953x driver detects the source(s) of an interrupt. This driver
supports PCAL variants with input latching, a feature that is
constrained by the fact that the interrupt status and input port
registers cannot be read atomically. These limits and the design
decisions deserve an in-depth explanation.

Update the documentation to clarify these hardware limits and describe
how the driver determines pending interrupts, and how it makes use of
the PCAL input latching.

Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20260107093125.4053468-1-ernestvanhoecke@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Documentation/driver-api/gpio/pca953x.rst