diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-01 14:53:29 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-06 22:37:43 +0530 |
commit | bb5190e2d886d85b5a880139084531e98d9a9a9f (patch) | |
tree | a88c3fd6a44c41dc4410727ebbb275d72f21f421 | |
parent | a66239bb3e1d8ba252f7cbf2691b7416f9bce32d (diff) | |
download | phosphor-host-ipmid-bb5190e2d886d85b5a880139084531e98d9a9a9f.tar.gz phosphor-host-ipmid-bb5190e2d886d85b5a880139084531e98d9a9a9f.zip |
Add support for IPMI Chassis Power Cycle command
Fixes openbmc/openbmc#1159
Change-Id: Ieaddee28ec53d8c343eeee472de231aa09cbcd43
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
-rw-r--r-- | chassishandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chassishandler.cpp b/chassishandler.cpp index a0afd56..b2d4d2b 100644 --- a/chassishandler.cpp +++ b/chassishandler.cpp @@ -810,6 +810,10 @@ ipmi_ret_t ipmi_chassis_control(ipmi_netfn_t netfn, ipmi_cmd_t cmd, rc = ipmi_chassis_power_control("powerOff"); break; case CMD_HARD_RESET: + case CMD_POWER_CYCLE: + // SPEC has a section that says certain implementations can trigger + // PowerOn if power is Off when a command to power cycle is + // requested rc = ipmi_chassis_power_control("reboot"); break; default: |