• Geert Uytterhoeven's avatar
    gpio: aggregator: Add interrupt support · a00128df
    Geert Uytterhoeven authored
    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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
    a00128df
gpio-aggregator.c 12.3 KB