mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
irqchip/irq-bcm7038-l1: Enable parent IRQ if necessary
If the 'brcm,irq-can-wake' property is specified, make sure we also enable the corresponding parent interrupt we are attached to. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20191024201415.23454-4-f.fainelli@gmail.com
This commit is contained in:
parent
b94f9008f2
commit
27eebb6035
@ -286,6 +286,10 @@ static int __init bcm7038_l1_init_one(struct device_node *dn,
|
|||||||
pr_err("failed to map parent interrupt %d\n", parent_irq);
|
pr_err("failed to map parent interrupt %d\n", parent_irq);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (of_property_read_bool(dn, "brcm,irq-can-wake"))
|
||||||
|
enable_irq_wake(parent_irq);
|
||||||
|
|
||||||
irq_set_chained_handler_and_data(parent_irq, bcm7038_l1_irq_handle,
|
irq_set_chained_handler_and_data(parent_irq, bcm7038_l1_irq_handle,
|
||||||
intc);
|
intc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user