power: reset: brcmstb: Do not go into infinite loop if reset fails
authorAndrew Davis <afd@ti.com>
Mon, 10 Jun 2024 14:28:36 +0000 (09:28 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 17:35:23 +0000 (19:35 +0200)
There may be other backup reset methods available, do not halt
here so that other reset methods can be tried.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20240610142836.168603-5-afd@ti.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/brcmstb-reboot.c

index 0524ee53d6bae9fc1b9a4ee1c3ecd7dba776c6c8..b9c093f6064ca40cf60eb05c33122deb86fabd54 100644 (file)
@@ -58,9 +58,6 @@ static int brcmstb_restart_handler(struct sys_off_data *data)
                return NOTIFY_DONE;
        }
 
-       while (1)
-               ;
-
        return NOTIFY_DONE;
 }