linux-stable/arch/mips/lantiq
Hauke Mehrtens 434b1b9157 MIPS: lantiq: Fix IPI interrupt handling
commit 2b4dba55b0 upstream.

This makes SMP on the vrx200 work again, by removing all the MIPS CPU
interrupt specific code and making it fully use the generic MIPS CPU
interrupt controller.

The mti,cpu-interrupt-controller from irq-mips-cpu.c now handles the CPU
interrupts and also the IPI interrupts which are used to communication
between the CPUs in a SMP system. The generic interrupt code was
already used before but the interrupt vectors were overwritten again
when we called set_vi_handler() in the lantiq interrupt driver and we
also provided our own plat_irq_dispatch() function which overwrote the
weak generic implementation. Now the code uses the generic handler for
the MIPS CPU interrupts including the IPI interrupts and registers a
handler for the CPU interrupts which are handled by the lantiq ICU with
irq_set_chained_handler() which was already called before.

Calling the set_c0_status() function is also not needed any more because
the generic MIPS CPU interrupt already activates the needed bits.

Fixes: 1eed400435 ("MIPS: smp-mt: Use CPU interrupt controller IPI IRQ domain support")
Cc: stable@kernel.org # v4.12
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: jhogan@kernel.org
Cc: ralf@linux-mips.org
Cc: john@phrozen.org
Cc: linux-mips@linux-mips.org
Cc: linux-mips@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-22 21:40:33 +01:00
..
falcon MIPS: lantiq: Replace ltq_boot_select() with dummy implementation. 2017-09-04 21:19:02 +02:00
xway MIPS: lantiq: dma: add dev pointer 2018-09-11 23:33:19 -07:00
clk.c clk: Provide dummy of_clk_get_from_provider() for compile-testing 2017-06-02 10:51:34 -07:00
clk.h MIPS: Change my email address 2016-05-13 14:02:18 +02:00
early_printk.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00
irq.c MIPS: lantiq: Fix IPI interrupt handling 2019-01-22 21:40:33 +01:00
Kconfig MIPS: lantiq: ase: Enable MFD_SYSCON 2018-03-21 21:57:35 +00:00
Makefile MIPS: Change my email address 2016-05-13 14:02:18 +02:00
Platform MIPS: lantiq: implement support for FALCON soc 2012-05-21 14:31:55 +01:00
prom.c MIPS: lantiq: remove unnecessary of_platform_default_populate call 2018-06-24 09:27:27 -07:00
prom.h MIPS: Change my email address 2016-05-13 14:02:18 +02:00