ar71xx: disable irq on reboot to fix hang issues (fixes #17839)
[openwrt.git] / target / linux / ar71xx / patches-3.14 / 728-MIPS-ath79-fix-restart.patch
1 --- a/arch/mips/ath79/setup.c
2 +++ b/arch/mips/ath79/setup.c
3 @@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYP
4  
5  static void ath79_restart(char *command)
6  {
7 +       local_irq_disable();
8         ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
9         for (;;)
10                 if (cpu_wait)