diff options
author | Andrew Paprocki <andrew@ishiboo.com> | 2008-04-02 02:43:19 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2008-04-06 15:12:22 -0400 |
commit | cc1020f15ad0f843c0111bf4b77bdfaabca79571 (patch) | |
tree | 8bb1d0fc8804bd5bc3af8d02fd2ac953bb3e2e8a | |
parent | 6fdf5e67fe8d3c83500dad9acae985132c2459a3 (diff) |
[WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog
I noticed this while testing the latest code. I'm not sure if it is required,
but the normal (or LSB) timeout value is set to zero, so the MSB should
be as well to stay consistent.
If the chip revision is >= 8, set MSB of the 16-bit timeout value to zero
when disabling the watchdog in it8712f_wdt_disable().
Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | drivers/watchdog/it8712f_wdt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/it8712f_wdt.c b/drivers/watchdog/it8712f_wdt.c index ca90c5192596..445b7e812112 100644 --- a/drivers/watchdog/it8712f_wdt.c +++ b/drivers/watchdog/it8712f_wdt.c | |||
@@ -200,6 +200,8 @@ it8712f_wdt_disable(void) | |||
200 | 200 | ||
201 | superio_outb(0, WDT_CONFIG); | 201 | superio_outb(0, WDT_CONFIG); |
202 | superio_outb(0, WDT_CONTROL); | 202 | superio_outb(0, WDT_CONTROL); |
203 | if (revision >= 0x08) | ||
204 | superio_outb(0, WDT_TIMEOUT + 1); | ||
203 | superio_outb(0, WDT_TIMEOUT); | 205 | superio_outb(0, WDT_TIMEOUT); |
204 | 206 | ||
205 | superio_exit(); | 207 | superio_exit(); |