From 0d8b8f00e31a0897dafe3a55efe5a38a3c4d43e9 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Fri, 9 Aug 2019 10:50:20 +0800 Subject: [PATCH 090/351] irqchip/sunxi-nmi: support wake up On Allwinner boards, the NMI of the SoC is usually hooked to X-Powers AXP series PMIC, which have power key support. As the power key of the PMIC is potentially a wake up source of the boards, the NMI controller should be capable of wake up. Add wake up support to NMI controller thus the AXP can wake up the board. Signed-off-by: Icenowy Zheng --- drivers/irqchip/irq-sunxi-nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c index a412b5d5d0fa..4399bd1207ed 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi-nmi.c @@ -200,7 +200,7 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node, gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[0].chip.irq_eoi = irq_gc_ack_set_bit; gc->chip_types[0].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED; + gc->chip_types[0].chip.flags = IRQCHIP_EOI_THREADED | IRQCHIP_EOI_IF_HANDLED | IRQCHIP_SKIP_SET_WAKE; gc->chip_types[0].regs.ack = reg_offs->pend; gc->chip_types[0].regs.mask = reg_offs->enable; gc->chip_types[0].regs.type = reg_offs->ctrl; -- 2.34.0