summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorKuiying Wang <kuiying.wang@intel.com>2018-06-04 10:41:45 +0300
committerWang, Kuiying <kuiying.wang@intel.com>2018-06-05 05:53:04 +0300
commitf42183ccac9e230df9fc03a6778469868a4d4a8a (patch)
tree985cc4f454a9c4d81c653a1c9ea29a72004ad555 /services
parent2d43ed2bf9ef9ec30af8f5bb91d5b45a5ad72004 (diff)
downloadprovingground-f42183ccac9e230df9fc03a6778469868a4d4a8a.tar.xz
Let power button to power on both Chassis and Host at one time.
Use host-start target to power on both chassis and host. Change-Id: I1137181bdd91c2406eec8cb040688143d140d62a Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
Diffstat (limited to 'services')
-rw-r--r--services/chassis/ChassisControl/src/ChassisControl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/chassis/ChassisControl/src/ChassisControl.cpp b/services/chassis/ChassisControl/src/ChassisControl.cpp
index 5b9ed7d..d90d81f 100644
--- a/services/chassis/ChassisControl/src/ChassisControl.cpp
+++ b/services/chassis/ChassisControl/src/ChassisControl.cpp
@@ -37,8 +37,7 @@ constexpr auto POWER_CONTROL_INTERFACE =
int32_t ChassisControl::powerOn() {
auto method = mBus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_OBJ_PATH,
SYSTEMD_INTERFACE, "StartUnit");
- method.append(CHASSIS_POWER_ON_TARGET);
- method.append("replace");
+ method.append(HOST_START_TARGET, "replace");
auto response = mBus.call(method);
if (response.is_method_error()) {
phosphor::logging::log<phosphor::logging::level::ERR>(