[Skiboot] [PATCH 39/60] xive: Forward interrupt names callback
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu Dec 22 14:16:47 AEDT 2016
The XIVE code wraps the interrupt sources, so we need to add a
wrapper for the new "name" callback
Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
hw/xive.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hw/xive.c b/hw/xive.c
index 1921e22..15e766a 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2357,12 +2357,22 @@ static uint64_t xive_source_attributes(struct irq_source *is, uint32_t isn)
return s->orig_ops->attributes(is, isn);
}
+static char *xive_source_name(struct irq_source *is, uint32_t isn)
+{
+ struct xive_src *s = container_of(is, struct xive_src, is);
+
+ if (!s->orig_ops || !s->orig_ops->name)
+ return NULL;
+ return s->orig_ops->name(is, isn);
+}
+
static const struct irq_source_ops xive_irq_source_ops = {
.get_xive = xive_source_get_xive,
.set_xive = xive_source_set_xive,
.eoi = xive_source_eoi,
.interrupt = xive_source_interrupt,
.attributes = xive_source_attributes,
+ .name = xive_source_name,
};
static void __xive_register_source(struct xive *x, struct xive_src *s,
--
2.9.3
More information about the Skiboot
mailing list