]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpio: sifive: Support IRQ wake
authorSamuel Holland <samuel.holland@sifive.com>
Mon, 26 Jun 2023 17:26:08 +0000 (10:26 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 10 Jul 2023 09:39:49 +0000 (11:39 +0200)
Each pin drives a separate interrupt in the parent IRQ domain, so there
is no need to set IRQCHIP_MASK_ON_SUSPEND.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-sifive.c

index 745e5f67254ea2715ae7d3241468bd7ffe85fed1..efab7b58f739130035522e57ccf7c3ddaa1c44d4 100644 (file)
@@ -150,6 +150,7 @@ static const struct irq_chip sifive_gpio_irqchip = {
        .irq_disable    = sifive_gpio_irq_disable,
        .irq_eoi        = sifive_gpio_irq_eoi,
        .irq_set_affinity = sifive_gpio_irq_set_affinity,
+       .irq_set_wake   = irq_chip_set_wake_parent,
        .flags          = IRQCHIP_IMMUTABLE,
        GPIOCHIP_IRQ_RESOURCE_HELPERS,
 };