gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | gpio: pca953x: Fix TCA6418 bulk transfers and input cachingdrivers/ | +35 | 0 replies | |
| 2/2 | gpio: pca953x: Fix TCA6418 interrupt handlingdrivers/ | +66 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Guy Morand |
|---|---|
| 1/2 | T-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs
This series fixes multi-bank register access, input register caching, and interrupt handling for the TI TCA6418E GPIO expander in gpio-pca953x:
1. Disable REG_ADDR_AI (0x80) for TCA6418_TYPE so multi-byte reads and writes advance sequentially across all three banks, reverse Bank 0 bit order (bitrev8) in bulk read/write paths to match the datasheet's MSB-first layout, and mark the input status registers (0x14..0x16) as volatile so reads do not return stale cached values.
2. Support TCA6418 interrupt setup, edge configuration (GPIO_INT_LVL), masking (GPIO_INT_EN), status decoding (GPIO_INT_STAT), and W1C acknowledgment (INT_STAT) by reusing the existing pca953x paths, while rejecting unsupported IRQ_TYPE_EDGE_BOTH triggers.
Tested on TI TCA6418E hardware across all three banks (single-pin and multi-pin reads/writes, input volatility, interrupts). Also, independently tested by Guy Morand on his hardware.
Maria Garcia (2):
gpio: pca953x: Fix TCA6418 bulk transfers and input caching
gpio: pca953x: Fix TCA6418 interrupt handling
drivers/gpio/gpio-pca953x.c | 120 ++++++++++++++++++++++++++++++------ 1 file changed, 101 insertions(+), 19 deletions(-)
Signature · 1 line
2.52.0