summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-11-18 15:50:02 +0100
committerGuenter Roeck <linux@roeck-us.net>2016-12-16 15:53:54 +0100
commit31ecad65b011d64dfc80cab7c968078171aa2642 (patch)
tree0e8bb4a9b00be734a65b330560328a5540c9936f /drivers
parentwatchdog: mei_wdt: request stop on reboot to prevent false positive event (diff)
downloadlinux-31ecad65b011d64dfc80cab7c968078171aa2642.tar.xz
linux-31ecad65b011d64dfc80cab7c968078171aa2642.zip
intel-mid_wdt: make sure watchdog is not running at startup
Make sure that the watchdog is not running after loading and before it is started by opening /dev/watchdog. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/intel-mid_wdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c
index db36d12e2b52..ff099a36d0c8 100644
--- a/drivers/watchdog/intel-mid_wdt.c
+++ b/drivers/watchdog/intel-mid_wdt.c
@@ -151,6 +151,9 @@ static int mid_wdt_probe(struct platform_device *pdev)
return ret;
}
+ /* Make sure the watchdog is not running */
+ wdt_stop(wdt_dev);
+
ret = watchdog_register_device(wdt_dev);
if (ret) {
dev_err(&pdev->dev, "error registering watchdog device\n");