Skip to content

Commit

Permalink
[WATCHDOG] i6300esb.c-WDT_ENABLE-bug
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David Hardeman <david@2gen.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Naveen Gupta authored and Wim Van Sebroeck committed Sep 11, 2005
1 parent c69af03 commit 28562af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/i6300esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void esb_timer_start(void)
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);
}
Expand Down

0 comments on commit 28562af

Please sign in to comment.