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

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

Backport of r42955

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42956 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2014-10-18 19:26:22 +00:00
parent 9a5b2585d3
commit 7f95aef182
1 changed files with 10 additions and 0 deletions

View File

@ -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)