irqchip/GIC: Fix EOImode setting for non-DT/ACPI systems
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 1 Sep 2015 09:08:53 +0000 (10:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 1 Sep 2015 16:56:25 +0000 (18:56 +0200)
commit4a6ac3044f1504fe4521efa7334095c9c9ceecfd
tree7c51a19948f0a4e413ac8137f7ac171e50b61c84
parent01f779f4862b53810ba4eb247f57bd1ad31d1c18
irqchip/GIC: Fix EOImode setting for non-DT/ACPI systems

Non-DT/ACPI systems call directly into the GIC driver at init time.
Turns out 0b996fd35957 ("irqchip/GIC: Convert to EOImode == 1")
breaks old non firmware-driven platforms, as the driver only
works out the capability of the platform on the DT/ACPI paths.

Fix this thinko by forcing EOImode==0 on non-DT platforms,
which are not capable of supporting a hypervisor anyway.

Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1441098533-31523-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic.c