]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: irq: Allow acpi_gsi_to_irq() to have an arch-specific fallback
authorMarc Zyngier <maz@kernel.org>
Wed, 20 Jul 2022 10:51:22 +0000 (18:51 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Jul 2022 11:05:17 +0000 (12:05 +0100)
commitf2f9eb1148dbdaa1147c833b28296a180f64a240
treee003f565b5262c937e6e3688d5504958e4f6ff2c
parentf1f9aec2f0e7299ffee54fffd307a881327d1b36
ACPI: irq: Allow acpi_gsi_to_irq() to have an arch-specific fallback

It appears that the generic version of acpi_gsi_to_irq() doesn't
fallback to establishing a mapping if there is no pre-existing
one while the x86 version does.

While arm64 seems unaffected by it, LoongArch is relying on the x86
behaviour. In an effort to prevent new architectures from reinventing
the proverbial wheel, provide an optional callback that the arch code
can set to restore the x86 behaviour.

Hopefully we can eventually get rid of this in the future once
the expected behaviour has been clarified.

Reported-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1658314292-35346-4-git-send-email-lvjianmin@loongson.cn
drivers/acpi/irq.c
include/linux/acpi.h