Start the watchdog each time waitForSIOPowerGood is set
There are some cases where waitForSIOPowerGood is set as the
power state, but there is no watchdog to get out if
SIOPowerGood doesn't assert. This starts the watchdog in all
cases so that it can exit the state on error.
Tested:
Confirmed that power-control functions still work.
Change-Id: I908b986ea7074ac73ef44f164524e8be8a258f95
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/power-control-x86/src/power_control.cpp b/power-control-x86/src/power_control.cpp
index 4dd7102..baf4400 100644
--- a/power-control-x86/src/power_control.cpp
+++ b/power-control-x86/src/power_control.cpp
@@ -1792,6 +1792,7 @@
{
if (sioEnabled == true)
{
+ sioPowerGoodWatchdogTimerStart();
setPowerState(PowerState::waitForSIOPowerGood);
}
else
@@ -1883,6 +1884,7 @@
powerCycleTimer.cancel();
if (sioEnabled == true)
{
+ sioPowerGoodWatchdogTimerStart();
setPowerState(PowerState::waitForSIOPowerGood);
}
else