Skip to content

Commit 4dbd2b4

Browse files
committed
Merge tag 'pxa-fixes-4.18' of https://github.com/rjarzmik/linux into fixes
This is the fixes set for v4.18 cycle. This is a fix for suspending all pxa3xx platforms, where high number interrupts are not reenabled. * tag 'pxa-fixes-4.18' of https://github.com/rjarzmik/linux: ARM: pxa: irq: fix handling of ICMR registers in suspend/resume Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents f0463f3 + 0c1049d commit 4dbd2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-pxa/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static int pxa_irq_suspend(void)
185185
{
186186
int i;
187187

188-
for (i = 0; i < pxa_internal_irq_nr / 32; i++) {
188+
for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) {
189189
void __iomem *base = irq_base(i);
190190

191191
saved_icmr[i] = __raw_readl(base + ICMR);
@@ -204,7 +204,7 @@ static void pxa_irq_resume(void)
204204
{
205205
int i;
206206

207-
for (i = 0; i < pxa_internal_irq_nr / 32; i++) {
207+
for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) {
208208
void __iomem *base = irq_base(i);
209209

210210
__raw_writel(saved_icmr[i], base + ICMR);

0 commit comments

Comments
 (0)