summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYinbo Zhu <zhuyinbo@loongson.cn>2023-06-14 19:59:35 +0800
committerMarc Zyngier <maz@kernel.org>2023-06-16 12:59:28 +0100
commite01f9882f6fdbe0fa8ae39fe7691db2964e9fda6 (patch)
tree691c0943dbc50f23e19d6ff9e10fdd5a2d58c6c9 /drivers
parent1d7471b4e0ebba5a4bf9db4ade43619e8f2d333d (diff)
downloadlinux-e01f9882f6fdbe0fa8ae39fe7691db2964e9fda6.tar.gz
linux-e01f9882f6fdbe0fa8ae39fe7691db2964e9fda6.tar.bz2
linux-e01f9882f6fdbe0fa8ae39fe7691db2964e9fda6.zip
irqchip/loongson-liointc: Add IRQCHIP_SKIP_SET_WAKE flag
LIOINTC doesn't require specific logic to work with wakeup IRQs, and no irq_set_wake callback is needed. To allow registered IRQs from LIOINTC to be used as a wakeup-source, and ensure irq_set_irq_wake() works well, the flag IRQCHIP_SKIP_SET_WAKE should be added. Reviewed-by: Huacai Chen <chenhuacai@kernel.org> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230614115936.5950-5-lvjianmin@loongson.cn
Diffstat (limited to 'drivers')
-rw-r--r--drivers/irqchip/irq-loongson-liointc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c
index 5dd9db8f8fa8..e4b33aed1c97 100644
--- a/drivers/irqchip/irq-loongson-liointc.c
+++ b/drivers/irqchip/irq-loongson-liointc.c
@@ -295,6 +295,7 @@ static int liointc_init(phys_addr_t addr, unsigned long size, int revision,
ct->chip.irq_mask = irq_gc_mask_disable_reg;
ct->chip.irq_mask_ack = irq_gc_mask_disable_reg;
ct->chip.irq_set_type = liointc_set_type;
+ ct->chip.flags = IRQCHIP_SKIP_SET_WAKE;
gc->mask_cache = 0;
priv->gc = gc;