]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqdomain: Handle domain bus token in irq_domain_create()
authorHerve Codina <herve.codina@bootlin.com>
Fri, 14 Jun 2024 17:32:12 +0000 (19:32 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Jun 2024 13:48:14 +0000 (15:48 +0200)
commit0b21add71bd9cfa2bd6677a0300e15fd4c4b84ed
treeee164f461c5eea3bdf4d5d51544037a9e6155879
parent80f6abe0d39bc6ccf353290067ff589653ff922c
irqdomain: Handle domain bus token in irq_domain_create()

irq_domain_update_bus_token() is the only way to set the domain bus
token. This is sub-optimal as irq_domain_update_bus_token() can be called
only once the domain is created and needs to revert some operations, change
the domain name and redo the operations.

In order to avoid this revert/change/redo sequence, take the domain bus
into account token during the domain creation.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240614173232.1184015-12-herve.codina@bootlin.com
include/linux/irqdomain.h
kernel/irq/irqdomain.c