kernel: bump 5.15 to 5.15.150
[openwrt/staging/mans0n.git] / target / linux / lantiq / patches-5.15 / 0321-v6.8-MIPS-lantiq-register-smp_ops-on-non-smp-platforms.patch
1 From 4bf2a626dc4bb46f0754d8ac02ec8584ff114ad5 Mon Sep 17 00:00:00 2001
2 From: Aleksander Jan Bajkowski <olek2@wp.pl>
3 Date: Mon, 22 Jan 2024 19:47:09 +0100
4 Subject: [PATCH] MIPS: lantiq: register smp_ops on non-smp platforms
5
6 Lantiq uses a common kernel config for devices with 24Kc and 34Kc cores.
7 The changes made previously to add support for interrupts on all cores
8 work on 24Kc platforms with SMP disabled and 34Kc platforms with SMP
9 enabled. This patch fixes boot issues on Danube (single core 24Kc) with
10 SMP enabled.
11
12 Fixes: 730320fd770d ("MIPS: lantiq: enable all hardware interrupts on second VPE")
13 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
14 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
15 ---
16 arch/mips/lantiq/prom.c | 7 +++----
17 1 file changed, 3 insertions(+), 4 deletions(-)
18
19 --- a/arch/mips/lantiq/prom.c
20 +++ b/arch/mips/lantiq/prom.c
21 @@ -117,10 +117,9 @@ void __init prom_init(void)
22 prom_init_cmdline();
23
24 #if defined(CONFIG_MIPS_MT_SMP)
25 - if (cpu_has_mipsmt) {
26 - lantiq_smp_ops = vsmp_smp_ops;
27 + lantiq_smp_ops = vsmp_smp_ops;
28 + if (cpu_has_mipsmt)
29 lantiq_smp_ops.init_secondary = lantiq_init_secondary;
30 - register_smp_ops(&lantiq_smp_ops);
31 - }
32 + register_smp_ops(&lantiq_smp_ops);
33 #endif
34 }