ARM: pxa: irq: fix handling of ICMR registers in suspend/resume
authorDaniel Mack <daniel@zonque.org>
Fri, 6 Jul 2018 20:15:00 +0000 (22:15 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 7 Jul 2018 11:25:15 +0000 (13:25 +0200)
commit0c1049dcb4ceec640d8bd797335bcbebdcab44d2
treee8f821ed2fb82ce7ec966d663eb96f7aa8fab358
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
ARM: pxa: irq: fix handling of ICMR registers in suspend/resume

PXA3xx platforms have 56 interrupts that are stored in two ICMR
registers. The code in pxa_irq_suspend() and pxa_irq_resume() however
does a simple division by 32 which only leads to one register being
saved at suspend and restored at resume time. The NAND interrupt
setting, for instance, is lost.

Fix this by using DIV_ROUND_UP() instead.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/irq.c