1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 14:08:17 +02:00

ar71xx: disable irq on reboot to fix hang issues (fixes #17839)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42955
This commit is contained in:
Felix Fietkau 2014-10-18 19:25:30 +00:00
parent b537205ea2
commit a7ee0142e7
2 changed files with 20 additions and 0 deletions

@ -0,0 +1,10 @@
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP
static void ath79_restart(char *command)
{
+ local_irq_disable();
ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
for (;;)
if (cpu_wait)

@ -0,0 +1,10 @@
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP
static void ath79_restart(char *command)
{
+ local_irq_disable();
ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
for (;;)
if (cpu_wait)