The Open-Drain (ODR) control bit enables/disables the INT pin for open-drain configuration. Setting this bit overrides the INTPOL bit. The Interrupt Polarity (INTPOL) sets the polarity of the INT pin. This bit is functional only when the ODR bit is cleared, configuring the INT pin as active push-pull.
This PR proposes to clear the ODR bit if INTPOL gets set.
According to the MCP23S17 data sheet:
This PR proposes to clear the ODR bit if INTPOL gets set.