android_kernel_oneplus_msm8998/arch/xtensa/platforms
Max Filippov afb415f72d xtensa: don't use linux IRQ #0
commit e5c86679d5e864947a52fb31e45a425dea3e7fa9 upstream.

Linux IRQ #0 is reserved for error reporting and may not be used.
Increase NR_IRQS for one additional slot and increase
irq_domain_add_legacy parameter first_irq value to 1, so that linux
IRQ #0 is not associated with hardware IRQ #0 in legacy IRQ domains.
Introduce macro XTENSA_PIC_LINUX_IRQ for static translation of xtensa
PIC hardware IRQ # to linux IRQ #. Use this macro in XTFPGA platform
data definitions.

This fixes inability to use hardware IRQ #0 in configurations that don't
use device tree and allows for non-identity mapping between linux IRQ #
and hardware IRQ #.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-17 06:39:38 +02:00
..
iss xtensa: ISS: don't hang if stdin EOF is reached 2016-04-12 09:08:55 -07:00
xt2000 xtensa: fixes for configs without loop option 2015-11-02 18:02:47 +03:00
xtfpga xtensa: don't use linux IRQ #0 2017-06-17 06:39:38 +02:00