]> asedeno.scripts.mit.edu Git - linux.git/commit
genirq/debugfs: Reset domain debugfs_file on removal of the debugfs file
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 10:05:21 +0000 (11:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 1 Oct 2018 10:24:53 +0000 (12:24 +0200)
commit513145ea66af95f1a5c744d7b5a4f4a97625e669
tree1b30faa7c19fab358c4d291083ffafbff1df405d
parent17b57b1883c1285f3d0dc2266e8f79286a7bef38
genirq/debugfs: Reset domain debugfs_file on removal of the debugfs file

When removing a debugfs file for a given irq domain, we fail to clear the
corresponding field, meaning that the corresponding domain won't be created
again if we need to do so.

It turns out that this is exactly what irq_domain_update_bus_token does
(delete old file, update domain name, recreate file).

This doesn't have any impact other than making debug more difficult, but we
do value ease of debugging... So clear the debugfs_file field.

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-2-marc.zyngier@arm.com
kernel/irq/irqdomain.c