]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARCv2: intc: Set default priority for all core interrupts
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Tue, 31 Jan 2017 11:45:24 +0000 (14:45 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Feb 2017 17:37:57 +0000 (09:37 -0800)
commitbe568e78dbb35383fdfd0563fd0cfbbff1bc42d0
tree229b345bd67a0f444d801b6ab2544ba98e4d4c2c
parent179cf194e6d153fb6daeca811253502d5c84e4c8
ARCv2: intc: Set default priority for all core interrupts

After reset all interrupts in the core interrupt controller has
the highest priority P0. If the platform supports Fast IRQs and
has more than 1 banks of registers then CPU automatically switch
banks of registers when P0 interrupt comes.

The problem is that the kernel expects that by default switching
of banks is not used by all interrupts. It is necessary to set a
default nonzero priority for all available interrupts to avoid
undefined behaviour.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/intc-arcv2.c