Doug Anderson b5ade9bc8d watchdog: dw_wdt: Try to get a 30 second watchdog by default
The dw_wdt_set_top() function takes in a value in seconds.  In
dw_wdt_open() we were calling it with a value that's supposed to
represent the maximum value programmed into the "top" register with a
comment saying that we were trying to set the watchdog to its maximum
value.  Instead we ended up setting the watchdog to ~15 seconds.

Let's fix this.  However, setting things to the "max" gives me an 86
second watchdog in the system I'm looking at.  86 seconds feels a
little too long.  We'll explicitly choose 30 seconds as a more
reasonable value.

NOTE: Ideally this driver should be transitioned to be a real watchdog
driver.  Then we could use "watchdog_init_timeout" and let the timeout
be specified in a number of ways (device tree, module parameter, etc).
This patch should be considered a bit of a stopgap solution.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2015-02-17 21:33:49 +01:00
..
2015-02-15 11:11:47 -08:00
2015-02-16 17:56:04 -08:00
2015-02-17 09:27:54 -08:00
2015-02-17 09:38:59 -08:00
2015-02-17 09:27:54 -08:00
2015-02-17 09:38:59 -08:00
2015-02-17 09:17:33 -08:00
2015-02-15 10:48:44 -08:00
2015-02-15 11:30:39 -08:00
2015-02-12 09:16:56 -08:00
2015-02-04 12:10:41 +01:00
2015-02-03 15:48:51 -08:00
2015-02-03 15:58:39 -08:00
2015-02-15 10:48:44 -08:00
2015-02-04 09:15:18 +01:00
2015-02-17 09:38:59 -08:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-17 09:17:33 -08:00
2015-02-17 09:38:59 -08:00
2015-01-29 10:17:56 +02:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-11 10:28:45 -08:00
2015-02-03 15:58:39 -08:00