diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-12-22 14:16:47 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-05 15:41:01 +1100 |
commit | fe522167376456f2ded980fb139d3c3d55a0a87e (patch) | |
tree | 6c4d3d4967e221e13135e7a70bed8f2b7e3519eb /hw | |
parent | f3e34ce176bc543f9a719ccbeaf7ef082592acc8 (diff) | |
download | skiboot-fe522167376456f2ded980fb139d3c3d55a0a87e.zip skiboot-fe522167376456f2ded980fb139d3c3d55a0a87e.tar.gz skiboot-fe522167376456f2ded980fb139d3c3d55a0a87e.tar.bz2 |
xive: Forward interrupt names callback
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@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xive.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2360,12 +2360,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, |