ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan
authorAgustin Vega-Frias <agustinv@codeaurora.org>
Thu, 2 Feb 2017 23:23:57 +0000 (18:23 -0500)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 3 Feb 2017 15:03:40 +0000 (15:03 +0000)
commitfa20b176f609c813d2c677f54c814cbb7ea5f1d1
tree270153e3ec9c6974b584e64350883ea15ed17fef
parent566cf877a1fcb6d6dc0126b076aad062054c2637
ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

ACPI extended IRQ resources may contain a Resource Source field to specify
an alternate interrupt controller, attempting to map them as GSIs is
incorrect, so just disable the platform resource.

Since this field is currently ignored, we make this change conditional
on CONFIG_ACPI_GENERIC_GSI to keep the current behavior on x86 platforms,
in case some existing ACPI tables are using this incorrectly.

Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Agustin Vega-Frias <agustinv@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/acpi/resource.c