irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 21 Sep 2015 13:46:04 +0000 (15:46 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 22 Sep 2015 13:55:51 +0000 (15:55 +0200)
commitd32dc9aa10c739363c775baf4499416b2e0dc11f
tree3c1db86bcea785272bc66a737c9d8f598b634bf1
parent1f93e4a96c9109378204c147b3eec0d0e8100fde
irqchip/atmel-aic5: Use per chip mask caches in mask/unmask()

When masking/unmasking interrupts, mask_cache is updated and used later
for suspend/resume. Unfortunately, it always was the mask_cache
associated with the first irq chip which was updated. So when performing
resume, only irqs 0-31 could be enabled.

Fixes: b1479ebb7720 ("irqchip: atmel-aic: Add atmel AIC/AIC5 drivers")
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: <sasha.levin@oracle.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: <nicolas.ferre@atmel.com>
Cc: <alexandre.belloni@free-electrons.com>
Cc: <boris.brezillon@free-electrons.com>
Cc: <Wenyou.Yang@atmel.com>
Cc: <jason@lakedaemon.net>
Cc: <marc.zyngier@arm.com>
Cc: stable@vger.kernel.org #3.18
Link: http://lkml.kernel.org/r/1442843173-2390-1-git-send-email-ludovic.desroches@atmel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-atmel-aic5.c