Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28562af3 authored by Naveen Gupta's avatar Naveen Gupta Committed by Wim Van Sebroeck
Browse files

[WATCHDOG] i6300esb.c-WDT_ENABLE-bug



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: default avatarNaveen Gupta <ngupta@google.com>
Signed-off-by: default avatarDavid Hardeman <david@2gen.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent c69af038
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}