]> git.baikalelectronics.ru Git - kernel.git/commit
irqdomain: Report irq number for NOMAP domains
authorXu Qiang <xuqiang36@huawei.com>
Tue, 19 Jul 2022 06:36:40 +0000 (06:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Jul 2022 13:51:13 +0000 (14:51 +0100)
commit594c3b1e23e3c19850e3beeb2fe1e49bc67b6556
tree07726676a32558dd001a1356715c49200da45723
parentf3187a24b27cc604c81ef14ec50abc73709ef94d
irqdomain: Report irq number for NOMAP domains

When using a NOMAP domain, __irq_resolve_mapping() doesn't store
the Linux IRQ number at the address optionally provided by the caller.
While this isn't a huge deal (the returned value is guaranteed
to the hwirq that was passed as a parameter), let's honour the letter
of the API by writing the expected value.

Fixes: 484f1ac28a5a (“irqdomain: Introduce irq_resolve_mapping()”)
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-2-xuqiang36@huawei.com
kernel/irq/irqdomain.c