summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorHuang, Tao <huangtao@rock-chips.com>2015-09-28 19:16:34 +0800
committerHuang, Tao <huangtao@rock-chips.com>2015-09-28 19:16:34 +0800
commit91c0b3f7a5bdcd21dd014852bd3cf4e48c84e6cb (patch)
tree7de5e435f2bc40b1ee3f2b9229f0641d4ff120f2 /drivers/watchdog
parent4e5b768771bba978e9213002e81abd3b52ed00e7 (diff)
parentf0b7ed42af0d718fc11d45f6c05948e9a11e08be (diff)
Merge tag 'lsk-v3.10-15.09-android'
LSK Android 15.09 v3.10
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/omap_wdt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index af88ffd1068f..2b7e073f5e36 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -134,6 +134,13 @@ static int omap_wdt_start(struct watchdog_device *wdog)
pm_runtime_get_sync(wdev->dev);
+ /*
+ * Make sure the watchdog is disabled. This is unfortunately required
+ * because writing to various registers with the watchdog running has no
+ * effect.
+ */
+ omap_wdt_disable(wdev);
+
/* initialize prescaler */
while (__raw_readl(base + OMAP_WATCHDOG_WPS) & 0x01)
cpu_relax();