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
Unified · Split
| @@ -185,7 +185,7 @@ static int pxa_irq_suspend(void) · 184 unmodified lines | ||
| 185 | 185 | { |
| 186 | 186 | int i; |
| 187 | 187 | |
| 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++) { | |
| 189 | 189 | void __iomem *base = irq_base(i); |
| 190 | 190 | |
| 191 | 191 | saved_icmr[i] = __raw_readl(base + ICMR); |
| @@ -204,7 +204,7 @@ static void pxa_irq_resume(void) · 12 unmodified lines | ||
| 204 | 204 | { |
| 205 | 205 | int i; |
| 206 | 206 | |
| 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++) { | |
| 208 | 208 | void __iomem *base = irq_base(i); |
| 209 | 209 | |
| 210 | 210 | __raw_writel(saved_icmr[i], base + ICMR); |