summaryrefslogtreecommitdiff
path: root/chip/g/usb_upgrade.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-11-17 15:10:34 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-18 20:07:23 -0800
commit14421571ca39459e96bc97e53694a4592a3be384 (patch)
tree1d052d27821c6f8f67f8f2901813f4cc2946ec76 /chip/g/usb_upgrade.c
parente97073a20dd489ad8c7e90cb2ca04bc9a05463f8 (diff)
downloadchrome-ec-14421571ca39459e96bc97e53694a4592a3be384.tar.gz
g: fix reboot request posting bug
When the host requests the uploader to post a reboot request, the uploader should exit right away once the request is posted. BRANCH=none BUG=chrome-os-partner:59911 TEST=verified that cr50 gets successfully updated from this image to a newer one on both reef and gru: the reboot happens under upstart control, not by cr50 rebooting on its own. Change-Id: I9e4a2da686fe512b633daa05c675871e5946926f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/412348 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'chip/g/usb_upgrade.c')
-rw-r--r--chip/g/usb_upgrade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/g/usb_upgrade.c b/chip/g/usb_upgrade.c
index 1e1fb82957..3800c529c5 100644
--- a/chip/g/usb_upgrade.c
+++ b/chip/g/usb_upgrade.c
@@ -188,6 +188,7 @@ static void upgrade_out_handler(struct consumer const *consumer, size_t count)
*/
rx_state_ = rx_idle;
post_reboot_request();
+ return;
}
if (rx_state_ == rx_outside_block) {