On Thu, Feb 01, 2024 at 04:14:07PM +0200, Arturas Moskvinas wrote:Ack.
GPINTEN register contains information about GPIOs with enabledYou forgot to add a changelog here, but no need to resend, just you can respond
interrupts no need to check other GPIOs for changes.
Signed-off-by: Arturas Moskvinas<arturas.moskvinas@xxxxxxxxx>
---
to the email since it's not a big issue in this case.
According to specification sheets MCP(s0)17 [1] page 19, MCP(s0)18 [2] page 19, MCP(s0)08 [3] page 11 - all supported expanders have that register also that register needs to be used [4] to mask/unmask interrupts on given GPIO, without it - expander won't even fire an interrupt. I tested on MCP23018 I2C expander though but module itself is not treating that expander differently for interrupt handling purposes.+ if (mcp_read(mcp, MCP_GPINTEN, &gpinten))Do all hw variants have this register available?
+ goto unlock;
Esp. I2C part, wouldn't it be problematic (exception with NACK on the bus)?