ACPI: irq: Allow acpi_gsi_to_irq() to have an arch-specific fallback
mainline inclusion from mainline-v6.0-rc1 commit 744b9a0c category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB CVE: NA -------------------------------- 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: NJianmin Lv <lvjianmin@loongson.cn> Signed-off-by: NMarc Zyngier <maz@kernel.org> Signed-off-by: NJianmin Lv <lvjianmin@loongson.cn> Tested-by: NHanjun Guo <guohanjun@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/1658314292-35346-4-git-send-email-lvjianmin@loongson.cn Change-Id: I38ccf8bef562439fd434b37de7da4acb4e07e3d9
Showing
想要评论请 注册 或 登录