Skip to content

Commit 60bd7be

Browse files
committed
Merge tag 'gpio-v4.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio
Linus writes: "GPIO fix for the v4.19 series: - Fix up the interrupt parent for the irqdomains." * tag 'gpio-v4.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: gpio: Assign gpio_irq_chip::parents to non-stack pointer
2 parents ef0e75a + 3e779a2 commit 60bd7be

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/gpio/gpiolib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,8 @@ static void gpiochip_set_cascaded_irqchip(struct gpio_chip *gpiochip,
16821682
irq_set_chained_handler_and_data(parent_irq, parent_handler,
16831683
gpiochip);
16841684

1685-
gpiochip->irq.parents = &parent_irq;
1685+
gpiochip->irq.parent_irq = parent_irq;
1686+
gpiochip->irq.parents = &gpiochip->irq.parent_irq;
16861687
gpiochip->irq.num_parents = 1;
16871688
}
16881689

include/linux/gpio/driver.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ struct gpio_irq_chip {
9494
*/
9595
unsigned int num_parents;
9696

97+
/**
98+
* @parent_irq:
99+
*
100+
* For use by gpiochip_set_cascaded_irqchip()
101+
*/
102+
unsigned int parent_irq;
103+
97104
/**
98105
* @parents:
99106
*

0 commit comments

Comments
 (0)