diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-04-11 05:49:44 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-05-07 17:18:28 -0400 |
commit | 1987b1b8f9f17a06255877e7917d0bb5b5377774 (patch) | |
tree | 684d34f1abddc8a34b5dfd942af3606376048b44 /arch/um | |
parent | ea70d791c1687529edf9bb9a69530a66e1ca4584 (diff) |
um: irq: don't set the chip for all irqs
Setting a chip for an interrupt marks it as allocated. Since UM doesn't
support dynamic interrupt numbers (yet), it means we cannot simply
increase NR_IRQS and then use the free irqs between LAST_IRQ and NR_IRQS
with gpio-mockup or iio testing drivers as irq_alloc_descs() will fail
after not being able to neither find an unallocated range of interrupts
nor expand the range.
Only call irq_set_chip_and_handler() for irqs until LAST_IRQ.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index f4874b7ec503..598d7b3d9355 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
@@ -479,7 +479,7 @@ void __init init_IRQ(void) | |||
479 | irq_set_chip_and_handler(TIMER_IRQ, &SIGVTALRM_irq_type, handle_edge_irq); | 479 | irq_set_chip_and_handler(TIMER_IRQ, &SIGVTALRM_irq_type, handle_edge_irq); |
480 | 480 | ||
481 | 481 | ||
482 | for (i = 1; i < NR_IRQS; i++) | 482 | for (i = 1; i < LAST_IRQ; i++) |
483 | irq_set_chip_and_handler(i, &normal_irq_type, handle_edge_irq); | 483 | irq_set_chip_and_handler(i, &normal_irq_type, handle_edge_irq); |
484 | /* Initialize EPOLL Loop */ | 484 | /* Initialize EPOLL Loop */ |
485 | os_setup_epoll(); | 485 | os_setup_epoll(); |