]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: iTCO_wdt.c - problems with newer hardware due to SMI clearing (part 2)
authorWim Van Sebroeck <wim@iguana.be>
Mon, 26 Dec 2011 14:23:51 +0000 (15:23 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 27 Dec 2011 19:35:59 +0000 (20:35 +0100)
commit454c327e0af0ebe28fc53c8fe08489c327f962f5
tree2844369ab5fb57a1adac36cdf16da07d44d3ca62
parent4a1728e91cfe010946c7b69a8b7044ae8ee0238e
watchdog: iTCO_wdt.c - problems with newer hardware due to SMI clearing (part 2)

Redhat Bugzilla: Bug 727875 - TCO_EN bit is disabled by TCO driver

The previous patch breaks reset watchdog behaviour on the older hardware.
It is therefor better to make sure that the behaviour for older hardware (<=ICH5 or
6300ESB) is preserved and that the behaviour for newer hardware is changed.
We therefor use the iTCO_version to see if we need the clearing of the SMI_TCO_EN
bit in the SMI_EN register.

So the new behaviour becomes:
turn_SMI_watchdog_clear_off=0 -> Do not turn off SMI clearing watchdog.
turn_SMI_watchdog_clear_off=1 -> Turn off SMI clearing watchdog when iTCO_version=1
 (ICHO till ICH5 + 6300ESB only)
turn_SMI_watchdog_clear_off=2 -> Turn off SMI clearing watchdog.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/iTCO_wdt.c