Marek Behún
2793f68749
irqchip/armada-370-xp: Fix reenabling last per-CPU interrupt
...
The number of per-CPU interrupts is 29 (0 to 28). This is described by
the constant MPIC_MAX_PER_CPU_IRQS, set to 28 (the maximum per-CPU
interrupt).
Commit 0fa4ce746d1d ("irqchip/armada-370-xp: Re-enable per-CPU
interrupts at resume time") used the constant incorrectly in the
for-loop, it used the operator < instead of <=, causing it to iterate
only the first 28 interrupts (0 to 27), ignoring the last, 28th,
per-CPU interrupt.
To avoid this kind of confusions, fix this issue by renaming the constant
to MPIC_PER_CPU_IRQS_NR and set it to 29, the number of per-CPU IRQs.
Update its use in mpic_is_percpu_irq() accordingly.
Fixes: 0fa4ce746d1d ("irqchip/armada-370-xp: Re-enable per-CPU interrupts at resume time")
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <stable+noautosel@kernel.org> # The 29th interrupt is not used in any device-tree
2024-08-08 17:15:01 +02:00
..
2019-05-30 11:26:32 -07:00
2021-06-11 14:32:12 +01:00
2023-04-13 13:13:50 -07:00
2024-04-09 11:03:15 +02:00
2023-02-25 11:30:21 -08:00
2024-08-08 17:15:01 +02:00
2022-05-04 16:37:48 +01:00
2023-02-05 10:55:19 +00:00
2021-10-26 10:13:31 +01:00
2019-06-19 17:09:55 +02:00
2021-06-10 13:09:19 +01:00
2024-07-30 13:35:49 +02:00
2024-07-25 06:53:47 -05:00
2017-07-04 11:10:37 +01:00
2024-07-30 13:35:49 +02:00
2024-07-15 15:13:55 +02:00
2023-01-11 19:51:39 +01:00
2024-04-24 21:23:49 +02:00
2024-02-13 10:53:15 +01:00
2023-02-18 14:23:41 +00:00
2024-04-24 21:11:48 +02:00
2024-07-30 13:35:49 +02:00
2019-06-19 17:09:55 +02:00
2023-04-08 11:07:49 +01:00
2021-11-12 16:09:50 +00:00
2024-07-30 13:35:49 +02:00
2021-10-26 10:13:31 +01:00
2024-06-25 21:30:48 +02:00
2024-07-30 13:35:49 +02:00
2024-06-24 18:16:44 +01:00
2024-07-22 14:02:19 -07:00
2023-08-21 17:49:11 +01:00
2022-06-09 17:36:57 +01:00
2024-07-18 20:31:20 +02:00
2023-08-21 17:49:11 +01:00
2024-07-18 20:34:46 +02:00
2024-07-22 14:02:19 -07:00
2024-07-18 20:31:20 +02:00
2024-07-30 13:35:49 +02:00
2024-08-02 14:54:25 +02:00
2024-06-24 18:16:44 +01:00
2021-06-10 13:09:19 +01:00
2024-06-24 18:16:44 +01:00
2023-08-21 17:40:30 +01:00
2021-06-10 13:09:19 +01:00
2024-02-27 18:12:09 +01:00
2023-02-08 13:37:55 +01:00
2024-03-11 14:03:03 -07:00
2024-07-15 15:13:56 +02:00
2024-07-18 20:31:20 +02:00
2021-12-16 15:19:52 +00:00
2021-06-10 13:09:19 +01:00
2024-07-30 13:35:49 +02:00
2023-06-17 07:54:48 +01:00
2024-02-27 18:12:09 +01:00
2024-06-17 15:48:15 +02:00
2024-06-25 07:40:08 +02:00
2024-06-25 07:40:08 +02:00
2021-06-10 13:09:19 +01:00
2023-08-21 17:49:11 +01:00
2024-06-23 17:09:26 +02:00
2022-11-26 13:12:13 +00:00
2024-06-25 07:40:08 +02:00
2024-04-23 00:17:07 +02:00
2022-02-15 11:25:46 +00:00
2021-06-10 13:09:19 +01:00
2022-12-05 10:39:52 +00:00
2024-02-27 18:12:10 +01:00
2024-02-27 18:12:10 +01:00
2024-07-18 20:31:20 +02:00
2023-04-13 13:13:52 -07:00
2024-06-23 17:23:08 +02:00
2021-07-09 10:18:58 +01:00
2023-08-21 17:40:20 +01:00
2023-06-17 07:21:02 +01:00
2021-06-10 13:09:19 +01:00
2024-07-18 20:31:20 +02:00
2024-07-18 20:31:20 +02:00
2021-04-07 13:26:00 +01:00
2022-11-28 11:44:02 +00:00
2021-08-12 08:15:15 +01:00
2024-07-18 20:31:20 +02:00
2024-07-18 20:31:21 +02:00
2024-07-18 20:31:21 +02:00
2024-06-23 17:23:08 +02:00
2024-07-18 20:31:21 +02:00
2024-04-23 00:28:14 +02:00
2022-03-23 17:35:57 -07:00
2024-07-30 13:35:49 +02:00
2018-01-04 11:13:22 +00:00
2022-06-28 17:31:15 +09:00
2023-08-21 17:48:59 +01:00
2020-09-25 16:57:33 +01:00
2021-07-26 18:01:27 +01:00
2024-07-25 06:53:47 -05:00
2024-02-27 18:12:10 +01:00
2024-02-13 10:26:15 +01:00
2021-10-26 10:13:31 +01:00
2022-09-28 14:17:10 +01:00
2024-02-27 18:12:10 +01:00
2024-02-27 18:12:10 +01:00
2024-02-27 18:12:10 +01:00
2024-06-23 17:23:08 +02:00
2024-04-24 21:23:49 +02:00
2024-06-23 19:09:14 +02:00
2024-03-25 17:38:29 +01:00
2024-04-09 11:03:15 +02:00
2024-05-23 04:48:40 -07:00
2024-04-14 13:28:49 +02:00
2024-03-25 17:38:28 +01:00
2024-03-25 17:38:28 +01:00
2024-07-22 13:52:05 -07:00
2024-07-30 13:35:49 +02:00
2024-06-03 13:53:12 +02:00
2023-04-13 13:13:53 -07:00
2022-05-04 16:33:17 +01:00
2022-07-08 14:23:57 +02:00
2023-08-21 17:49:11 +01:00
2024-02-26 15:09:18 +01:00
2024-06-23 19:49:45 +02:00
2024-06-24 00:16:43 +02:00
2021-10-26 10:13:31 +01:00
2022-05-04 16:36:59 +01:00
2024-03-25 17:38:29 +01:00
2024-03-25 17:38:29 +01:00
2022-06-15 17:41:11 +02:00
2023-08-21 17:49:11 +01:00
2023-08-21 17:49:11 +01:00
2024-06-23 17:23:08 +02:00
2023-08-21 17:49:11 +01:00
2024-07-30 13:35:49 +02:00
2019-06-19 17:09:55 +02:00
2024-02-21 18:31:08 +01:00
2021-10-26 10:13:31 +01:00
2022-11-26 13:29:48 +00:00
2022-03-04 14:32:57 +00:00
2023-09-20 05:03:20 -07:00
2023-12-12 15:45:39 +01:00
2021-10-26 10:13:31 +01:00
2023-08-21 17:49:11 +01:00
2024-07-22 14:02:19 -07:00
2024-07-22 14:02:19 -07:00
2021-06-10 13:09:19 +01:00
2023-09-12 13:38:08 +01:00
2021-12-16 13:29:44 +00:00