gpio: aggregator: Add interrupt support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 3 Dec 2021 14:06:44 +0000 (15:06 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 3 Dec 2021 14:54:31 +0000 (15:54 +0100)
commita00128dfc8fc0cc8848d9168d6e7cfff99bd46f0
treefa78c02a09bbe0cad0d6060a8ed434488d8eaadb
parent49fdfe66400614ee1c484057c79dd6642c535fd4
gpio: aggregator: Add interrupt support

Currently the GPIO Aggregator does not support interrupts.  This means
that kernel drivers going from a GPIO to an IRQ using gpiod_to_irq(),
and userspace applications using line events do not work.

Add interrupt support by providing a gpio_chip.to_irq() callback, which
just calls into the parent GPIO controller.

Note that this does not implement full interrupt controller (irq_chip)
support, so using e.g. gpio-keys with "interrupts" instead of "gpios"
still does not work.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-aggregator.c