]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog
authorAndrew Paprocki <andrew@ishiboo.com>
Wed, 2 Apr 2008 06:43:19 +0000 (02:43 -0400)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 6 Apr 2008 19:12:22 +0000 (19:12 +0000)
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>
drivers/watchdog/it8712f_wdt.c

index ca90c5192596f8c4f47628ced8d2aabdcdd82b37..445b7e812112572ba82925576b6129ebafe8aed5 100644 (file)
@@ -200,6 +200,8 @@ it8712f_wdt_disable(void)
 
        superio_outb(0, WDT_CONFIG);
        superio_outb(0, WDT_CONTROL);
+       if (revision >= 0x08)
+               superio_outb(0, WDT_TIMEOUT + 1);
        superio_outb(0, WDT_TIMEOUT);
 
        superio_exit();