Skip to content

Commit 585a070

Browse files
svanheulebrgl
authored andcommitted
gpio: realtek-otto: fix GPIO line IRQ offset
The irqchip uses one domain for all GPIO lines, so the line offset should be determined w.r.t. the first line of the first port, not the first line of the triggered port. Fixes: 0d82fb1 ("gpio: Add Realtek Otto GPIO support") Signed-off-by: Sander Vanheule <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent dd1695a commit 585a070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-realtek-otto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void realtek_gpio_irq_handler(struct irq_desc *desc)
205205
status = realtek_gpio_read_isr(ctrl, lines_done / 8);
206206
port_pin_count = min(gc->ngpio - lines_done, 8U);
207207
for_each_set_bit(offset, &status, port_pin_count)
208-
generic_handle_domain_irq(gc->irq.domain, offset);
208+
generic_handle_domain_irq(gc->irq.domain, offset + lines_done);
209209
}
210210

211211
chained_irq_exit(irq_chip, desc);

0 commit comments

Comments
 (0)