]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:27 +0000 (12:00 +0200)
[ Upstream commit cf8c39b00e982fa506b16f9d76657838c09150cb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/reset/brcmstb-reboot.c

index 0f2944dc935516279af248f7331781440d78527a..a04713f191a1128381cd90d927f012c9948aaaad 100644 (file)
@@ -62,9 +62,6 @@ static int brcmstb_restart_handler(struct notifier_block *this,
                return NOTIFY_DONE;
        }
 
-       while (1)
-               ;
-
        return NOTIFY_DONE;
 }