]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/debugfs: Reinstate full OF path for domain name
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 10:05:22 +0000 (11:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 1 Oct 2018 10:24:53 +0000 (12:24 +0200)
commitd2b909c3a69ce0060e31c8bfac908e31d654ed1c
tree921efe10d683c1e1f4e4a23f6e1b4c9d1a8e4fd9
parent1eb8566d75c26648f84108a38c64bd2d4680ff5c
genirq/debugfs: Reinstate full OF path for domain name

On a DT based system, we use the of_node full name to name the
corresponding irq domain. We expect that name to be unique, so so that
domains with the same base name won't clash (this happens on multi-node
topologies, for example).

Since 696e543ff5d3 ("of/fdt: only store the device node basename in
full_name"), of_node_full_name() lies and only returns the basename. This
breaks the above requirement, and we end-up with only a subset of the
domains in /sys/kernel/debug/irq/domains.

Let's reinstate the feature by using the fancy new %pOF format specifier,
which happens to do the right thing.

Fixes: 696e543ff5d3 ("of/fdt: only store the device node basename in full_name")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20181001100522.180054-3-marc.zyngier@arm.com
kernel/irq/irqdomain.c