ramips: gpio-mt7621 was not handling irqs above 31 properly

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 47238
This commit is contained in:
John Crispin 2015-10-20 07:09:20 +00:00
parent e73c42876f
commit e043ada1d5
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ pending = mtk_gpio_r32(rg, GPIO_REG_STAT); + pending = mtk_gpio_r32(rg, GPIO_REG_STAT);
+ +
+ for_each_set_bit(bit, &pending, MTK_BANK_WIDTH) { + 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); + generic_handle_irq(map);
+ mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit)); + mtk_gpio_w32(rg, GPIO_REG_STAT, BIT(bit));