Skip to content

Commit 1827a89

Browse files
maquefelbrgl
authored andcommitted
gpio: ep93xx: Fix wrong irq numbers in port F
Port F IRQ's should be statically mapped to EP93XX_GPIO_F_IRQ_BASE. So we need to specify girq->first otherwise: "If device tree is used, then first_irq will be 0 and IRQ's get mapped dynamically on the fly" And that's not the thing we want. Reviewed-by: Linus Walleij <[email protected]> Acked-by: Alexander Sverdlin <[email protected]> Signed-off-by: Nikita Shubin <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 50f9a6c commit 1827a89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-ep93xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ static int ep93xx_gpio_add_bank(struct ep93xx_gpio_chip *egc,
416416
girq->default_type = IRQ_TYPE_NONE;
417417
girq->handler = handle_level_irq;
418418
gc->to_irq = ep93xx_gpio_f_to_irq;
419+
girq->first = EP93XX_GPIO_F_IRQ_BASE;
419420
}
420421

421422
return devm_gpiochip_add_data(dev, gc, epg);

0 commit comments

Comments
 (0)