From 892da50c2ea9e6a31c7892bc4165b61174f95c36 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 20 Oct 2015 07:10:05 +0000 Subject: ramips: gpio-mt7621 was not handling irqs above 31 properly Signed-off-by: John Crispin Backport of r47238 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47239 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-3.18/0048-GPIO-ralink-add-mt7621-gpio-controller.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target') 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 + 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)); -- cgit v1.2.3