diff options
author | Karthikeyan Ramasubramanian <kramasub@chromium.org> | 2018-10-12 23:48:07 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-17 14:23:24 -0700 |
commit | 0f0829238ab5e2be3a649ab2e13e9f177a65f6e0 (patch) | |
tree | 033104218d7d757cbb84c17d9f3c5634c90e5c22 /board/cheza | |
parent | 47cd57ac6b371bf7d13e137601fb4a1a9c18ae1a (diff) | |
download | chrome-ec-0f0829238ab5e2be3a649ab2e13e9f177a65f6e0.tar.gz |
util/flash_ec: Restore servo setting properly on error
Servo settings are not completely restored on error scenario. As an
example when flash_ec has "Failed to determine chip size", it dies
immediately. The cleanup procedure does not restore some of the servo
settings like disabling GP mode. This in turn causes EC to never
come out of reset until either the servo is disconnected and reconnected
or the servod is killed and restarted.
Restore the servo settings properly under error scenario so that EC
comes out of reset.
BRANCH=none
BUG=b:117414172
TEST=Run flash_ec and ensure that EC comes out of reset
Change-Id: I5512a44b5656ccc97686324a4d9b1bbcf07c6303
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1279434
Commit-Ready: Jett Rink <jettrink@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/cheza')
0 files changed, 0 insertions, 0 deletions