diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-03-11 11:43:43 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2015-03-14 20:55:01 -0400 |
commit | 08b55e2a9208e4841a17c9d9c2c454986392977d (patch) | |
tree | 973018e9ca327f51c0b0813860d549baf8e13da1 /kernel/irq | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
genirq: Add irqchip_set_wake_parent
This proves to be useful with stacked domains, when the current
domain doesn't implement wake-up, but expect the parent to do so.
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1426088629-15377-2-git-send-email-marc.zyngier@arm.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/chip.c | 16 |
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) | |||
948 | 948 | ||
949 | return -ENOSYS; | 949 | return -ENOSYS; |
950 | } | 950 | } |
951 | |||
952 | /** | ||
953 | * irq_chip_set_wake_parent - Set/reset wake-up on the parent interrupt | ||
954 | * @data: Pointer to interrupt specific data | ||
955 | * @on: Whether to set or reset the wake-up capability of this irq | ||
956 | * | ||
957 | * Conditional, as the underlying parent chip might not implement it. | ||
958 | */ | ||
959 | int irq_chip_set_wake_parent(struct irq_data *data, unsigned int on) | ||
960 | { | ||
961 | data = data->parent_data; | ||
962 | if (data->chip->irq_set_wake) | ||
963 | return data->chip->irq_set_wake(data, on); | ||
964 | |||
965 | return -ENOSYS; | ||
966 | } | ||
951 | #endif | 967 | #endif |
952 | 968 | ||
953 | /** | 969 | /** |