Skip to content

Commit c8d8d6f

Browse files
RyceancurryMarc Zyngier
authored andcommitted
irqchip/brcmstb-l2: Set controller as wake-up source
Utilize the Broadcom interrupt controller standard property "brcm,irq-can-wake" to flag whether this particular interrupt controller instance is wake-up capable. Since we do not know what type of parent interrupt controller we are interfaced with, ensure that enable_irq_wake() is called early on. Signed-off-by: Justin Chen <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f4ccb74 commit c8d8d6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-brcmstb-l2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ static int __init brcmstb_l2_intc_of_init(struct device_node *np,
254254
*/
255255
data->gc->wake_enabled = 0xffffffff;
256256
ct->chip.irq_set_wake = irq_gc_set_wake;
257+
enable_irq_wake(parent_irq);
257258
}
258259

259260
pr_info("registered L2 intc (%pOF, parent irq: %d)\n", np, parent_irq);

0 commit comments

Comments
 (0)