#17839: Reboot command causes sometimes hanging router with TL-WDR3600 (HW V1.5)
and TL-WDR4300 (HW V1.7)
--------------------------+-----------------------------------
Reporter: michaeluray | Owner: developers
Type: defect | Status: reopened
Priority: high | Milestone: Barrier Breaker 14.07
Component: base system | Version: Barrier Breaker 14.07
Resolution: | Keywords: reboot
--------------------------+-----------------------------------
Comment (by anonymous):
Replying to [comment:81 michaeluray]:
> I think I will try it once more to apply the patch to the official
sources via the mailing list.
Maybe is it make sense to replace eternal loop on delay?
{{{
--- a/arch/mips/ath79/common.c
+++ b/arch/mips/ath79/common.c
@@ -14,6 +14,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/delay.h>
#include <linux/types.h>
#include <linux/spinlock.h>
@@ -80,6 +81,9 @@ 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)
+ udelay(100);
+
spin_unlock_irqrestore(&ath79_device_reset_lock, flags);
}
EXPORT_SYMBOL_GPL(ath79_device_reset_set);
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/17839#comment:82>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets