aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-20 07:09:20 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-20 07:09:20 +0000
commit0cce12896474eed9d65e94a9060f175e46e556b3 (patch)
treef024924980411573261c45854c747fb6f9bc9645
parent326456486c5ab022bceb3137f72b15dae9476c94 (diff)
downloadmaster-187ad058-0cce12896474eed9d65e94a9060f175e46e556b3.tar.gz
master-187ad058-0cce12896474eed9d65e94a9060f175e46e556b3.tar.bz2
master-187ad058-0cce12896474eed9d65e94a9060f175e46e556b3.zip
ramips: gpio-mt7621 was not handling irqs above 31 properly
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47238 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch b/target/linux/ramips/patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch
index 5d5f99e1ed..cb58e16a06 100644
--- a/target/linux/ramips/patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch
+++ b/target/linux/ramips/patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch
@@ -250,7 +250,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ pending = mtk_gpio_r32(rg, GPIO_REG_STAT);
+
+ for_each_set_bit(bit, &pending, MTK_BANK_WIDTH) {
-+ u32 map = irq_find_mapping(mediatek_gpio_irq_domain, bit);
++ u32 map = irq_find_mapping(mediatek_gpio_irq_domain, (MTK_BANK_WIDTH * i) + bit);
+
+ generic_handle_irq(map);
+ mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit));