If an irqchip has provided an irq_print_chip method, let's use it instead of the name field directly.
Signed-off-by: Marc Zyngier <[email protected]> --- kernel/irq/debugfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c index da41150322e1..50e324110271 100644 --- a/kernel/irq/debugfs.c +++ b/kernel/irq/debugfs.c @@ -69,7 +69,13 @@ irq_debug_show_chip(struct seq_file *m, struct irq_data *data, int ind) seq_printf(m, "chip: None\n"); return; } - seq_printf(m, "%*schip: %s\n", ind, "", chip->name); + seq_printf(m, "%*schip: ", ind, ""); + if (chip->irq_print_chip) { + chip->irq_print_chip(data, m); + seq_printf(m, "\n"); + } else { + seq_printf(m, "%s\n", chip->name); + } seq_printf(m, "%*sflags: 0x%lx\n", ind + 1, "", chip->flags); irq_debug_show_bits(m, ind, chip->flags, irqchip_flags, ARRAY_SIZE(irqchip_flags)); -- 2.14.2

