ramips: Fix for gpio falling interrupt mask
authorJohn Crispin <john@openwrt.org>
Thu, 8 Jan 2015 20:26:13 +0000 (20:26 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 8 Jan 2015 20:26:13 +0000 (20:26 +0000)
commitd1f1d7b5457759c49bf779a59e49e5212feb9f13
tree8dc5f0fb457ea1f67a91d73888676096223799e3
parent42ae39772fcb9a9fcbc761a106f42617e4fe2273
ramips: Fix for gpio falling interrupt mask

This patch fixes a wrong mask operation for the rt2880-compatible ralink devices.
The mask operation reads the actual flags and then logical combines it with the pin flag it want to set.
Unfortunally, for rising as for falling interrupt flags the actual flag status of the rising interrupts was used.
That caused a problem if you want to use more than one falling GPIO interrupt.
Now the correct (seperated) actual status is used for both, falling and rising.

Signed-off-by: Jonas Arndt <info@greenwire-elektronik.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43882
target/linux/ramips/patches-3.14/999-gpi_irq.patch [new file with mode: 0644]