]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mcp23s08: Fix clearing of interrupt.
authorPhil Reid <preid@electromag.com.au>
Tue, 15 Mar 2016 07:46:30 +0000 (15:46 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Mar 2016 12:41:59 +0000 (13:41 +0100)
commit2354a77d7935c237c6e2267d0ab2ec2d356ec231
tree269fe28556a1bff5e20abdf954e3ba10fd940117
parentc5f14d7b76b1cd51698bb113b841f3bb1003ff48
gpio: mcp23s08: Fix clearing of interrupt.

The mcp23s18 is configurable on clearing the interrupt on either reading
INTCAP or GPIO. Since driver reads INTCAP in IRQ and not the GPIO reg need
to set control byte for this mode.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c