Skip to contentSkip to conversation

it8712f_wdt Zero MSB timeout byte when disabling watchdog

PATCH New Andrew Paprocki 1 participant 1 message Apr 2, 2008 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

Date: Wed, 2 Apr 2008 02:23:33 -0400
Subject: [PATCH] [WATCHDOG] it8712f_wdt Zero MSB timeout byte when disabling watchdog

If the chip revision is >= 8, set MSB of the 16-bit timeout value to zero when disabling the watchdog in it8712f_wdt_disable().

---
 drivers/watchdog/it8712f_wdt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/watchdog/it8712f_wdt.c +2 -0
index ca90c51..445b7e8 100644
@@ -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();
Signature · 1 line
1.4.4.4