Verified Commit dfadac88 authored by Jan Kiszka's avatar Jan Kiszka Committed by David Runge
Browse files

watchdog: iTCO_wdt: Fix detection of SMI-off case

Obviously, the test needs to run against the register content, not its

Fixes: cb011044

 ("watchdog: iTCO_wdt: Account for rebooting on second timeout")
Reported-by: Mantas Mikulėnas's avatarMantas Mikulėnas <>
Signed-off-by: default avatarJan Kiszka <>
Reviewed-by: default avatarPaolo Bonzini <>
Reviewed-by: default avatarGuenter Roeck <>
Tested-by: Mantas Mikulėnas's avatarMantas Mikulėnas <>

Signed-off-by: default avatarGuenter Roeck <>
Signed-off-by: default avatarWim Van Sebroeck <>
Fixes: (?)
parent 49c1f5bb
......@@ -362,7 +362,7 @@ static int iTCO_wdt_set_timeout(struct watchdog_device *wd_dev, unsigned int t)
* Otherwise, the BIOS generally reboots when the SMI triggers.
if (p->smi_res &&
(inl(SMI_EN(p)) & (TCO_EN | GBL_SMI_EN)) != (TCO_EN | GBL_SMI_EN))
tmrval /= 2;
/* from the specs: */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment