summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-10-05 19:55:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-06 23:31:41 -0700
commit16da7484246d00f37e34a93c97b65cdb41b02dbe (patch)
treec6dcf3e54ed55974f686b541af46eb5da9c228ab
parentc0813cddb0c4116a49446bf6fb599775af5846ba (diff)
downloadchrome-ec-stabilize-8872.70.B.tar.gz
With the recent modification of the tpm reset processing the only way to get the cr50 restart is to reset it internally. Make sure that usb_updater triggers the cr50 reset in the end of the update. BRANCH=none BUG=none TEST=with the corresponding init script changes the update on reef happens as expected. Change-Id: Ib49b81c4ef6d12d0b877a8a63493cf4d6d5aaeb0 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/394255 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
-rw-r--r--extra/usb_updater/usb_updater.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c
index b75a84a014..b12451bcdc 100644
--- a/extra/usb_updater/usb_updater.c
+++ b/extra/usb_updater/usb_updater.c
@@ -302,7 +302,7 @@ static void usage(int errs)
" -h,--help Show this message\n"
" -s,--spi Use /dev/tmp0 (-d is ignored)\n"
" -u,--upstart "
- "Upstart mode (strict header checks, no reboot)\n"
+ "Upstart mode (strict header checks)\n"
"\n", progname, VID, PID);
exit(errs ? update_error : noop);
@@ -958,7 +958,7 @@ static int transfer_and_reboot(struct transfer_descriptor *td,
}
printf("-------\nupdate complete\n");
- if ((td->ep_type == usb_xfer) && !td->upstart_mode) {
+ if (td->ep_type == usb_xfer) {
uint32_t out;
/* Send stop request, ignoring reply. */