summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2015-04-11 00:57:56 +0200
committerJason Cooper <jason@lakedaemon.net>2015-04-11 00:57:56 +0200
commit07c523f1493b6860662e74a3d7e1ae0e7d67d416 (patch)
tree8d8edfc4f8ba1c985e1b8ca032beadf04323cc01 /kernel
parentMerge branch 'irqchip/stacked-tegra' into irqchip/core (diff)
parentARM: omap: convert wakeupgen to stacked domains (diff)
downloadlinux-07c523f1493b6860662e74a3d7e1ae0e7d67d416.tar.xz
linux-07c523f1493b6860662e74a3d7e1ae0e7d67d416.zip
Merge branch 'irqchip/stacked-omap' into irqchip/core
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/chip.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 6f1c7a566b95..eb9a4ea394ab 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -948,6 +948,22 @@ int irq_chip_retrigger_hierarchy(struct irq_data *data)
return -ENOSYS;
}
+
+/**
+ * irq_chip_set_wake_parent - Set/reset wake-up on the parent interrupt
+ * @data: Pointer to interrupt specific data
+ * @on: Whether to set or reset the wake-up capability of this irq
+ *
+ * Conditional, as the underlying parent chip might not implement it.
+ */
+int irq_chip_set_wake_parent(struct irq_data *data, unsigned int on)
+{
+ data = data->parent_data;
+ if (data->chip->irq_set_wake)
+ return data->chip->irq_set_wake(data, on);
+
+ return -ENOSYS;
+}
#endif
/**