irqchip: gic: Preserve gic V2 bypass bits in cpu ctrl register
authorFeng Kan <fkan@apm.com>
Wed, 30 Jul 2014 21:56:59 +0000 (14:56 -0700)
committerJason Cooper <jason@lakedaemon.net>
Tue, 19 Aug 2014 15:08:07 +0000 (15:08 +0000)
commit3228950621d92f0f212378f95a6998ef3a1be0bb
tree65909d6760b53af50ee62cc0c7e98154eebfd04a
parente5f81539f657af7e9f54ea37986fde8f92acef22
irqchip: gic: Preserve gic V2 bypass bits in cpu ctrl register

This change is made to preserve the GIC v2 bypass bits in the
GIC_CPU_CTRL register (also known as the GICC_CTLR register in spec).
This code will preserve all bits configured by the bootloader regarding
v2 bypass group bits. In the X-Gene platform, the bypass functionality
is not used and bypass bits should not be changed by the kernel gic
code as it could lead to incorrect behavior.

Signed-off-by: Feng Kan <fkan@apm.com>
Reviewed-by: Vinayak Kale <vkale@apm.com>
Reviewed-by: Anup Patel <apatel@apm.com>
Link: https://lkml.kernel.org/r/1406757419-18729-3-git-send-email-fkan@apm.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h