Skip to content

Commit

Permalink
[WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Paprocki authored and Wim Van Sebroeck committed Apr 6, 2008
1 parent 6fdf5e6 commit cc1020f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/watchdog/it8712f_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cc1020f

Please sign in to comment.