]> git.baikalelectronics.ru Git - kernel.git/commit
um: irq: don't set the chip for all irqs
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 11 Apr 2019 09:49:44 +0000 (11:49 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 21:18:28 +0000 (23:18 +0200)
commit65094a5ad1260035ca83e1779e2e5606f5e0ff45
tree684d34f1abddc8a34b5dfd942af3606376048b44
parent4cd7b27abfa38614e23fc9c20c83eaaf8e103bc8
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>
arch/um/kernel/irq.c