diff options
author | Maxim Kiselev <bigunclemax@gmail.com> | 2020-01-15 10:38:11 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-01-23 15:52:40 +0100 |
commit | d5331ec2cc6e8b79b8b0027091d1ebb395e833b5 (patch) | |
tree | 6eaed2221af5daf8ef7d765da069492106ed7b6f /drivers/s390 | |
parent | 366950eeb6ee7ba6693129899452e0ba890cbe4d (diff) |
gpio: mvebu: clear irq in edge cause register before unmask edge irq
When input GPIO set from 0 to 1, the interrupt bit asserted in the GPIO
Interrupt Cause Register (ICR) even if the corresponding interrupt
masked in the GPIO Interrupt Mask Register.
Because interrupt mask register only affects assertion of the interrupt
bits in Main Interrupt Cause Register and it does not affect the
setting of bits in the GPIO ICR.
So, there is problem, when we unmask interrupt with already
asserted bit in the GPIO ICR, then false interrupt immediately occurs
even if GPIO don't change their value since last unmask.
Signed-off-by: Maxim Kiselev <bigunclemax@gmail.com>
Link: https://lore.kernel.org/r/20200115073811.24438-1-bigunclemax@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions