Skip to content

Commit 0f04cdb

Browse files
maquefelBartosz Golaszewski
authored andcommitted
gpio: ep93xx: Fix port F hwirq numbers in handler
Fix wrong translation of irq numbers in port F handler, as ep93xx hwirqs increased by 1, we should simply decrease them by 1 in translation. Fixes: 482c272 ("ARM: ep93xx: renumber interrupts") Signed-off-by: Nikita Shubin <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 3787035 commit 0f04cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-ep93xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void ep93xx_gpio_f_irq_handler(struct irq_desc *desc)
148148
*/
149149
struct irq_chip *irqchip = irq_desc_get_chip(desc);
150150
unsigned int irq = irq_desc_get_irq(desc);
151-
int port_f_idx = ((irq + 1) & 7) ^ 4; /* {19..22,47..50} -> {0..7} */
151+
int port_f_idx = (irq & 7) ^ 4; /* {20..23,48..51} -> {0..7} */
152152
int gpio_irq = EP93XX_GPIO_F_IRQ_BASE + port_f_idx;
153153

154154
chained_irq_enter(irqchip, desc);

0 commit comments

Comments
 (0)