kernel: backport flow offload fixes to 5.10
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 860-v5.17-MIPS-ath79-drop-_machine_restart-again.patch
1 From d3115128bdafb62628ab41861a4f06f6d02ac320 Mon Sep 17 00:00:00 2001
2 From: Lech Perczak <lech.perczak@gmail.com>
3 Date: Mon, 10 Jan 2022 23:48:44 +0100
4 Subject: MIPS: ath79: drop _machine_restart again
5
6 Commit 81424d0ad0d4 ("MIPS: ath79: Use the reset controller to restart
7 OF machines") removed setup of _machine_restart on OF machines to use
8 reset handler in reset controller driver.
9 While removing remnants of non-OF machines in commit 3a77e0d75eed
10 ("MIPS: ath79: drop machfiles"), this was introduced again, making it
11 impossible to use additional restart handlers registered through device
12 tree. Drop setting _machine_restart altogether, and ath79_restart
13 function, which is no longer used after this.
14
15 Fixes: 3a77e0d75eed ("MIPS: ath79: drop machfiles")
16 Cc: John Crispin <john@phrozen.org>
17 Cc: Florian Fainelli <f.fainelli@gmail.com>
18 Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
19 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
20 ---
21 arch/mips/ath79/setup.c | 10 ----------
22 1 file changed, 10 deletions(-)
23
24 --- a/arch/mips/ath79/setup.c
25 +++ b/arch/mips/ath79/setup.c
26 @@ -34,15 +34,6 @@
27
28 static char ath79_sys_type[ATH79_SYS_TYPE_LEN];
29
30 -static void ath79_restart(char *command)
31 -{
32 - local_irq_disable();
33 - ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
34 - for (;;)
35 - if (cpu_wait)
36 - cpu_wait();
37 -}
38 -
39 static void ath79_halt(void)
40 {
41 while (1)
42 @@ -233,7 +224,6 @@ void __init plat_mem_setup(void)
43
44 detect_memory_region(0, ATH79_MEM_SIZE_MIN, ATH79_MEM_SIZE_MAX);
45
46 - _machine_restart = ath79_restart;
47 _machine_halt = ath79_halt;
48 pm_power_off = ath79_halt;
49 }