gpio: 104-idi-48: Clear pending interrupt once in IRQ handler
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 15 Dec 2015 23:52:44 +0000 (18:52 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Dec 2015 09:19:49 +0000 (10:19 +0100)
commit9ae482104cb99076e007ae15792a3194fc1eedd8
tree3af186305493514f942f0bf66d073310d9ec463d
parentf3154a46b64ca74be258e1e00b36596499ab6159
gpio: 104-idi-48: Clear pending interrupt once in IRQ handler

Performing a read operation on the IRQ Status register will clear the
IRQ latch. Since a read operation on the IRQ Status register must be
performed in the IRQ handler in order to determine if the IRQ was in
fact generated by the device, the IRQ latch is consequently cleared by
the IRQ handler. A spinlock is used to guarantee that each IRQ is
serviced in the order it was received.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
drivers/gpio/gpio-104-idi-48.c