0010-ar71xx-add-workaround-patch-for-WDR3600-4300-reboot.patch 972 B

123456789101112131415161718192021222324
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Mon, 15 Dec 2014 00:17:38 +0100
  3. Subject: ar71xx: add workaround patch for WDR3600/4300 reboot
  4. While it isn't clear why this patch helps, it doesn't seem to have any negative
  5. effects, so let's include it for now...
  6. diff --git a/target/linux/ar71xx/patches-3.10/903-MIPS-ath79-fix-restart.patch b/target/linux/ar71xx/patches-3.10/903-MIPS-ath79-fix-restart.patch
  7. new file mode 100644
  8. index 0000000..86f33f3
  9. --- /dev/null
  10. +++ b/target/linux/ar71xx/patches-3.10/903-MIPS-ath79-fix-restart.patch
  11. @@ -0,0 +1,11 @@
  12. +--- a/arch/mips/ath79/common.c
  13. ++++ b/arch/mips/ath79/common.c
  14. +@@ -83,6 +83,8 @@ void ath79_device_reset_set(u32 mask)
  15. + spin_lock_irqsave(&ath79_device_reset_lock, flags);
  16. + t = ath79_reset_rr(reg);
  17. + ath79_reset_wr(reg, t | mask);
  18. ++ if (mask == AR71XX_RESET_FULL_CHIP)
  19. ++ for(;;);
  20. + spin_unlock_irqrestore(&ath79_device_reset_lock, flags);
  21. + }
  22. + EXPORT_SYMBOL_GPL(ath79_device_reset_set);