All of lore.kernel.org
 help / color / mirror / Atom feed
* [-mm PATCH] set enable bit instead of lock bit of Watchdog Timer in Intel 6300 chipset
@ 2005-08-15 21:21 Naveen Gupta
  2005-08-15 22:11 ` David Härdeman
  2005-08-15 22:27 ` David Härdeman
  0 siblings, 2 replies; 5+ messages in thread
From: Naveen Gupta @ 2005-08-15 21:21 UTC (permalink / raw)
  To: wim, david, akpm; +Cc: linux-kernel


This patch sets the WDT_ENABLE bit of the Lock Register to enable the
watchdog and WDT_LOCK bit only if nowayout is set. The old code always
sets the WDT_LOCK bit of watchdog timer for Intel 6300ESB chipset. So, we
end up locking the watchdog instead of enabling it.

Signed-off-by: Naveen Gupta <ngupta@google.com>

Index: linux-2.6.12/drivers/char/watchdog/i6300esb.c
===================================================================
--- linux-2.6.12.orig/drivers/char/watchdog/i6300esb.c	2005-08-15 11:19:01.000000000 -0700
+++ linux-2.6.12/drivers/char/watchdog/i6300esb.c	2005-08-15 11:21:35.000000000 -0700
@@ -97,7 +97,7 @@
 	u8 val;
 
 	/* Enable or Enable + Lock? */
-	val = 0x02 | nowayout ? 0x01 : 0x00;
+	val = 0x02 | (nowayout ? 0x01 : 0x00);
 
         pci_write_config_byte(esb_pci, ESB_LOCK_REG, val);
 }

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-16  6:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 21:21 [-mm PATCH] set enable bit instead of lock bit of Watchdog Timer in Intel 6300 chipset Naveen Gupta
2005-08-15 22:11 ` David Härdeman
2005-08-15 22:17   ` Naveen Gupta
2005-08-15 22:27 ` David Härdeman
2005-08-16  6:03   ` Wim Van Sebroeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.