irqchip: gic: Use mask field in GICC_IAR
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Sun, 11 May 2014 08:05:58 +0000 (16:05 +0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 07:41:38 +0000 (09:41 +0200)
commit03c2fd4d233df62d02ed2a6233f40a5fab27eeec
tree7ee5d5db71c18f73f7654668d63d32bfee6228b4
parentc0627e3f793af66835fb7440d13f70c23a8ec2fd
irqchip: gic: Use mask field in GICC_IAR

Bit[9:0] is interrupt ID field in GICC_IAR. Bit[12:10] is CPU ID field,
and others are reserved.

So we should use GICC_IAR_INT_ID_MASK to get interrupt ID. It's not a good way
to use ~0x1c00 (CPU ID field) to get interrupt ID.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Link: https://lkml.kernel.org/r/1399795571-17231-3-git-send-email-haojian.zhuang@linaro.org
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
(cherry picked from commit b8802f76fe473d91886220498aeda157c492f2d1)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
drivers/irqchip/irq-gic.c
include/linux/irqchip/arm-gic.h