mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
usb_updater: always reboot cr50 in the end of the update
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>
This commit is contained in:
committed by
chrome-bot
parent
c0813cddb0
commit
16da748424
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user