aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-08-14 18:07:38 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-15 13:03:08 +1000
commitbf3d9f40ea9bb79053750c0ddca6f06b00472fa2 (patch)
treebd627723e5253c1caff578dff2d8f8db067cb7c4 /platforms
parent932709df985069ea8f40d67dcf662f7f28fd5121 (diff)
downloadskiboot-bf3d9f40ea9bb79053750c0ddca6f06b00472fa2.zip
skiboot-bf3d9f40ea9bb79053750c0ddca6f06b00472fa2.tar.gz
skiboot-bf3d9f40ea9bb79053750c0ddca6f06b00472fa2.tar.bz2
ipmi: Correct chassis control message
I misread the spec when implementing the chassis control message. This fixes the message, as well as correcting the naming of the IPMI fields to better reflect what they represent. Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Jeremy Kerr <jeremy.kerr@au.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/bmc/palmetto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/bmc/palmetto.c b/platforms/bmc/palmetto.c
index f0a0c86..c8ea281 100644
--- a/platforms/bmc/palmetto.c
+++ b/platforms/bmc/palmetto.c
@@ -218,12 +218,12 @@ static int64_t palmetto_ipmi_power_down(uint64_t request __unused)
* However, I believe at that point we are ready to shut down,
* so unconditionally tell the BMC to immediately power us down.
*/
- return ipmi_opal_chassis_request(IPMI_SET_CHASSIS_PWR_DOWN_CMD);
+ return ipmi_opal_chassis_control(IPMI_CHASSIS_PWR_DOWN);
}
static int64_t palmetto_ipmi_reboot(void)
{
- return ipmi_opal_chassis_request(IPMI_SET_CHASSIS_PWR_CYCLE_CMD);
+ return ipmi_opal_chassis_control(IPMI_CHASSIS_PWR_CYCLE);
}
DECLARE_PLATFORM(palmetto) = {