]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/irqdomain: Add irq_domain_update_bus_token helper
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 10:34:57 +0000 (11:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:28:45 +0000 (18:28 +0200)
commite22a37b92f96ebaaec64bb23aef889620359de21
treef721513ed1aaa59db21e79a8db6af997495ed55c
parent7452591af523ccee31912e3d815f55fd6eb6951a
genirq/irqdomain: Add irq_domain_update_bus_token helper

We can have irq domains that are identified by the same fwnode
(because they are serviced by the same HW), and yet have different
functionnality (because they serve different busses, for example).
This is what we use the bus_token field.

Since we don't use this field when generating the domain name,
all the aliasing domains will get the same name, and the debugfs
file creation fails. Also, bus_token is updated by individual drivers,
and the core code is unaware of that update.

In order to sort this mess, let's introduce a helper that takes care
of updating bus_token, and regenerate the debugfs file.

A separate patch will update all the individual users.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irqdomain.h
kernel/irq/irqdomain.c