|
@@ -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
|
|
|
|
|
|
/**
|