diff options
author | Jonico Eustaquio <jonico.eustaquio@fii-na.com> | 2023-02-14 01:26:58 +0300 |
---|---|---|
committer | Vivekanand Veeracholan <vveerach@google.com> | 2023-07-21 22:57:14 +0300 |
commit | 47e9cded03bf02dd3cc3a7cc8555c785efe6b6ec (patch) | |
tree | d0ac9851e2e1c9d7002b889761561678d7340a47 /meta-fii | |
parent | aefbb65c6cc444c9f79400de18b66af5f64bbde2 (diff) | |
download | openbmc-47e9cded03bf02dd3cc3a7cc8555c785efe6b6ec.tar.xz |
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>
Diffstat (limited to 'meta-fii')
-rw-r--r-- | meta-fii/meta-kudo/recipes-kudo/host/files/ampere_power_util.sh | 4 |
1 files changed, 0 insertions, 4 deletions
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 d6cfea498a..5e57590e4f 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 @@ graceful_shutdown() { } 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() { |