irqchip: mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
Subsystems (2)
PATCH 1/1 irqchip: mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
The ICOLL controller doesn't provide any facility to configure the wakeup sources. That's the reason why this implementation lacks the irq_set_wake implementation. But this prevent us from properly entering power management states like "suspend to idle".
So enable the flags IRQCHIP_SKIP_SET_WAKE and IRQCHIP_MASK_ON_SUSPEND to let the irqchip core allows and handles the power management.
--- drivers/irqchip/irq-mxs.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/irqchip/irq-mxs.c +4 -0
@@ -131,12 +131,16 @@ static void asm9260_unmask_irq(struct irq_data *d) .irq_ack = icoll_ack_irq, .irq_mask = icoll_mask_irq, .irq_unmask = icoll_unmask_irq, + .flags = IRQCHIP_MASK_ON_SUSPEND | + IRQCHIP_SKIP_SET_WAKE, };static struct irq_chip asm9260_icoll_chip = { .irq_ack = icoll_ack_irq, .irq_mask = asm9260_mask_irq, .irq_unmask = asm9260_unmask_irq, + .flags =IRQCHIP_MASK_ON_SUSPEND | +IRQCHIP_SKIP_SET_WAKE , }; asmlinkage void __exception_irq_entry icoll_handle_irq(struct pt_regs *regs)
Signature · 1 line
1.7.9.5
Fabio Estevam
reviewerPATCH 1/1 irqchip: mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
Quoted 10 lines · Stefan Wahren
The ICOLL controller doesn't provide any facility to configure the wakeup sources. That's the reason why this implementation lacks the
irq_set_wakeimplementation. But this prevent us from properly entering power management states like "suspend to idle".So enable the flags
IRQCHIP_SKIP_SET_WAKEandIRQCHIP_MASK_ON_SUSPENDto let the irqchip core allows and handles the power management.Signed-off-by Stefan Wahren <[email protected]>
Jason Cooper
AppliedPATCH 1/1 irqchip: mxs: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
In reply to Stefan WahrenHi Stefan,
Quoted 5 lines · Stefan Wahren
The ICOLL controller doesn't provide any facility to configure the wakeup sources. That's the reason why this implementation lacks the
irq_set_wakeimplementation. But this prevent us from properly entering power management states like "suspend to idle".
Quoted 8 lines
So enable the flags
IRQCHIP_SKIP_SET_WAKEandIRQCHIP_MASK_ON_SUSPENDto let the irqchip core allows and handles the power management.Signed-off-by Stefan Wahren <[email protected]>--- drivers/irqchip/irq-mxs.c | 4 ++++ 1 file changed, 4 insertions(+)
Applied to irqchip/urgent with Fabio's Reviewed-by.
thx,
Jason.