Skip to content

Commit e01f988

Browse files
YinboZhuMarc Zyngier
authored andcommitted
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
1 parent 1d7471b commit e01f988

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-loongson-liointc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ static int liointc_init(phys_addr_t addr, unsigned long size, int revision,
295295
ct->chip.irq_mask = irq_gc_mask_disable_reg;
296296
ct->chip.irq_mask_ack = irq_gc_mask_disable_reg;
297297
ct->chip.irq_set_type = liointc_set_type;
298+
ct->chip.flags = IRQCHIP_SKIP_SET_WAKE;
298299

299300
gc->mask_cache = 0;
300301
priv->gc = gc;

0 commit comments

Comments
 (0)