]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip / ACPI: Introduce ACPI_IRQ_MODEL_LPIC for LoongArch
authorJianmin Lv <lvjianmin@loongson.cn>
Wed, 20 Jul 2022 10:51:32 +0000 (18:51 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Jul 2022 11:09:21 +0000 (12:09 +0100)
commite8bba72b396cef7c919c73710f3c5884521adb4e
tree9df009802cadfbd9c7e365f3d959eb951a44e25f
parentb2d3e3354e2a0d0e912308618ea33d0337f405c3
irqchip / ACPI: Introduce ACPI_IRQ_MODEL_LPIC for LoongArch

For LoongArch, ACPI_IRQ_MODEL_LPIC is introduced, and then the
callback acpi_get_gsi_domain_id and acpi_gsi_to_irq_fallback are
implemented.

The acpi_get_gsi_domain_id callback returns related fwnode handle
of irqdomain for different GSI range.

The acpi_gsi_to_irq_fallback will create new mapping for gsi when
the mapping of it is not found.

Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1658314292-35346-14-git-send-email-lvjianmin@loongson.cn
drivers/acpi/bus.c
drivers/irqchip/irq-loongarch-cpu.c
include/linux/acpi.h