From edbf5ca18617886110583a2da5e76c4e9b15c657 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 15 Dec 2014 00:18:49 +0100 Subject: [PATCH] ar71xx: add workaround patch for WDR3600/4300 reboot While it isn't clear why this patch helps, it doesn't seem to have any negative effects, so let's include it for now... --- ...around-patch-for-WDR3600-4300-reboot.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/openwrt/0010-ar71xx-add-workaround-patch-for-WDR3600-4300-reboot.patch diff --git a/patches/openwrt/0010-ar71xx-add-workaround-patch-for-WDR3600-4300-reboot.patch b/patches/openwrt/0010-ar71xx-add-workaround-patch-for-WDR3600-4300-reboot.patch new file mode 100644 index 00000000..a0589145 --- /dev/null +++ b/patches/openwrt/0010-ar71xx-add-workaround-patch-for-WDR3600-4300-reboot.patch @@ -0,0 +1,24 @@ +From: Matthias Schiffer +Date: Mon, 15 Dec 2014 00:17:38 +0100 +Subject: ar71xx: add workaround patch for WDR3600/4300 reboot + +While it isn't clear why this patch helps, it doesn't seem to have any negative +effects, so let's include it for now... + +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 +new file mode 100644 +index 0000000..86f33f3 +--- /dev/null ++++ b/target/linux/ar71xx/patches-3.10/903-MIPS-ath79-fix-restart.patch +@@ -0,0 +1,11 @@ ++--- a/arch/mips/ath79/common.c +++++ b/arch/mips/ath79/common.c ++@@ -83,6 +83,8 @@ void ath79_device_reset_set(u32 mask) ++ spin_lock_irqsave(&ath79_device_reset_lock, flags); ++ t = ath79_reset_rr(reg); ++ ath79_reset_wr(reg, t | mask); +++ if (mask == AR71XX_RESET_FULL_CHIP) +++ for(;;); ++ spin_unlock_irqrestore(&ath79_device_reset_lock, flags); ++ } ++ EXPORT_SYMBOL_GPL(ath79_device_reset_set);