projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b94f900
)
irqchip/irq-bcm7038-l1: Enable parent IRQ if necessary
author
Florian Fainelli
<f.fainelli@gmail.com>
Thu, 24 Oct 2019 20:14:13 +0000
(13:14 -0700)
committer
Marc Zyngier
<maz@kernel.org>
Sun, 10 Nov 2019 18:47:47 +0000
(18:47 +0000)
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
drivers/irqchip/irq-bcm7038-l1.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-bcm7038-l1.c
b/drivers/irqchip/irq-bcm7038-l1.c
index 689e487be80cf6becccdecb21f93b4cb207bca7c..45879e59e58b3eb6a9605c3dca089ee1729d5149 100644
(file)
--- a/
drivers/irqchip/irq-bcm7038-l1.c
+++ b/
drivers/irqchip/irq-bcm7038-l1.c
@@
-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);
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,
intc);