]> git.baikalelectronics.ru Git - kernel.git/commit
gpio:mcp23s08 Fixed missing interrupts
authorRobert Middleton <robert.middleton@rm5248.com>
Wed, 15 Mar 2017 20:56:47 +0000 (16:56 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Mar 2017 08:20:28 +0000 (09:20 +0100)
commit065797995dfa5a51dded1826e9248082e36ee1d0
tree2ad0218576ed77f43b515ad203b700be557799dd
parent7eb19c536c15e35d0418750bf2c5ee59dc586b45
gpio:mcp23s08 Fixed missing interrupts

When an interrupt occurs on an MCP23S08 chip, the INTF register will only
contain one bit as causing the interrupt.  If more than two pins change at
the same time on the chip, this causes one of the pins to not be reported.
This patch fixes the logic for checking if a pin has changed, so that
multiple pins will always cause more than one change.

Cc: stable@vger.kernel.org
Signed-off-by: Robert Middleton <robert.middleton@rm5248.com>
Tested-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c