• Marc Zyngier's avatar
    genirq/irqdomain: Add irq_domain_update_bus_token helper · 61d0a000
    Marc Zyngier authored
    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: default avatarMarc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    61d0a000
irqdomain.c 46.7 KB