X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=target%2Flinux%2Far71xx%2Fpatches-3.2%2F027-watchdog-ath79_wdt-flush-register-writes.patch;fp=target%2Flinux%2Far71xx%2Fpatches-3.2%2F027-watchdog-ath79_wdt-flush-register-writes.patch;h=0000000000000000000000000000000000000000;hb=7d21fad75fb8d33319bc74a90ee53f9eb2072a9d;hp=32d39448a0f8ac0c4862d1cfee09bc2be1f9ab5b;hpb=0b19a3f8fb2a5a088a46a3331a2fc2102d10a408;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/target/linux/ar71xx/patches-3.2/027-watchdog-ath79_wdt-flush-register-writes.patch b/target/linux/ar71xx/patches-3.2/027-watchdog-ath79_wdt-flush-register-writes.patch deleted file mode 100644 index 32d39448a0..0000000000 --- a/target/linux/ar71xx/patches-3.2/027-watchdog-ath79_wdt-flush-register-writes.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 156560a512a39284148d556ab96e2e833e816666 Mon Sep 17 00:00:00 2001 -From: Gabor Juhos -Date: Fri, 23 Dec 2011 19:25:42 +0100 -Subject: [PATCH 27/27] watchdog: ath79_wdt: flush register writes - -The watchdog register writes required to have a flush -in order to commit the values to the register. Without -the flush, the driver not function correctly on AR934X -SoCs. - -Signed-off-by: Gabor Juhos -Acked-by: Luis R. Rodriguez -Signed-off-by: Wim Van Sebroeck ---- - drivers/watchdog/ath79_wdt.c | 6 ++++++ - 1 files changed, 6 insertions(+), 0 deletions(-) - ---- a/drivers/watchdog/ath79_wdt.c -+++ b/drivers/watchdog/ath79_wdt.c -@@ -68,17 +68,23 @@ static int max_timeout; - static inline void ath79_wdt_keepalive(void) - { - ath79_reset_wr(AR71XX_RESET_REG_WDOG, wdt_freq * timeout); -+ /* flush write */ -+ ath79_reset_rr(AR71XX_RESET_REG_WDOG); - } - - static inline void ath79_wdt_enable(void) - { - ath79_wdt_keepalive(); - ath79_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR); -+ /* flush write */ -+ ath79_reset_rr(AR71XX_RESET_REG_WDOG_CTRL); - } - - static inline void ath79_wdt_disable(void) - { - ath79_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE); -+ /* flush write */ -+ ath79_reset_rr(AR71XX_RESET_REG_WDOG_CTRL); - } - - static int ath79_wdt_set_timeout(int val)