This patch addes ARM64-specific hook for calling arch-specific irq_domain_ops.ini_alloc_info() before allocating irqs. Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@xxxxxxx> --- arch/arm64/kernel/acpi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index d6463bb..f3709dc 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -20,6 +20,7 @@ #include <linux/cpumask.h> #include <linux/init.h> #include <linux/irq.h> +#include <linux/irqchip/arm-gic.h> #include <linux/irqdomain.h> #include <linux/memblock.h> #include <linux/of_fdt.h> @@ -205,3 +206,15 @@ void __init acpi_boot_table_init(void) disable_acpi(); } } + +int acpi_init_irq_alloc_info(struct irq_domain *domain, u32 gsi, unsigned int irq_type, + void **info) +{ + int ret; + uint32_t data[3] = {GIC_INT_TYPE_GSI, gsi, irq_type}; + + if (domain && domain->ops->init_alloc_info) + ret = domain->ops->init_alloc_info(data, 3, NULL, info); + + return 0; +} -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html