meta-fii: meta-kudo: Remove host status check for reset
As part of performing a reset instead of DC cycling when reboot is
called from the host. Remove the check on host status since previously
it would prevent a host reboot.
Change-Id: Id4b7888ebcb87c42cd46363b883d88ffa851d67e
Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
diff --git a/meta-fii/meta-kudo/recipes-kudo/host/files/ampere_power_util.sh b/meta-fii/meta-kudo/recipes-kudo/host/files/ampere_power_util.sh
index d6cfea4..5e57590 100644
--- a/meta-fii/meta-kudo/recipes-kudo/host/files/ampere_power_util.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/host/files/ampere_power_util.sh
@@ -73,15 +73,11 @@
}
host_reset() {
- if [ "$(host_status)" == "on" ]; then
echo "Triggering sysreset pin"
busctl set-property xyz.openbmc_project.Watchdog /xyz/openbmc_project/watchdog/host0 xyz.openbmc_project.State.Watchdog ExpireAction s xyz.openbmc_project.State.Watchdog.Action.None
set_gpio_ctrl S0_SYSRESET 0
sleep 1
set_gpio_ctrl S0_SYSRESET 1
- else
- echo "Host is off, cannot reset."
- fi
}
host_cycle() {