From 2d5331b9a2a32b855ea4e667bfa9d1b7c3801013 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Thu, 19 Apr 2018 12:24:10 -0700 Subject: [PATCH] flash_ec: Save the original servo states When first supporting CCD, it skips saving the original servo states as some of the controls are not supported in CCD. https://chromium-review.googlesource.com/344427 But then we customized what controls will be used according to the servo board type. https://chromium-review.googlesource.com/572142 So we should save original states again. It helps to restore the original servo states if it gets interrupted in the middle. BRANCH=none BUG=none TEST=Tried running flash_ec using servo-micro. Change-Id: I5b873d871d36feed4a0e511ba858db9e093a22be Signed-off-by: Wai-Hong Tam Reviewed-on: https://chromium-review.googlesource.com/1020158 Reviewed-by: Aseda Aboagye --- util/flash_ec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/flash_ec b/util/flash_ec index 04307929b7..b25a23c192 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -1029,7 +1029,7 @@ info "Using ${SERVO_TYPE}." IMG="$(ec_image)" info "Using ${MCU} image : ${IMG}" -if ! on_raiden && [ "${NEED_SERVO}" != "no" ] ; then +if [ "${NEED_SERVO}" != "no" ] ; then save="$(servo_save)" fi