]> git.baikalelectronics.ru Git - kernel.git/commit
irqdomain: Use hwirq_max instead of revmap_size for NOMAP domains
authorXu Qiang <xuqiang36@huawei.com>
Tue, 19 Jul 2022 06:36:41 +0000 (06:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Jul 2022 13:51:56 +0000 (14:51 +0100)
commitef50cd57a73a8bbfad403e5e2edb3309611f58ad
treef97a6fceb73d4cf38a9ec17f5db4da8dbee91828
parent6f194c99f466147148cc08452718b46664112548
irqdomain: Use hwirq_max instead of revmap_size for NOMAP domains

NOMAP irq domains use the revmap_size field to indicate the maximum
hwirq number the domain accepts. This is a bit confusing as
revmap_size is usually used to indicate the size of the revmap array,
which a NOMAP domain doesn't have.

Instead, use the hwirq_max field which has the correct semantics, and
keep revmap_size to 0 for a NOMAP domain.

Signed-off-by: Xu Qiang <xuqiang36@huawei.com>
[maz: commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220719063641.56541-3-xuqiang36@huawei.com
kernel/irq/irqdomain.c