diff options
author | Mary Ruthven <mruthven@chromium.org> | 2017-04-06 12:37:01 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-09-08 22:17:10 +0000 |
commit | 5477e2aba09b7cfb997653a53df5ed99232760fa (patch) | |
tree | 0617badbde36b2736733a6822fa1377e53b9b914 | |
parent | 7272940f92e867763297efe29527db19cbd08456 (diff) | |
download | chrome-ec-5477e2aba09b7cfb997653a53df5ed99232760fa.tar.gz |
usb_updater: only run send_done on usb transfers
show_fw_ver runs send_done on both usb and tpm transfers. This changes
usb_update, so it will only run send_done on usb transfers
BUG=none
BRANCH=cr50
TEST=copy to dut. stop trunksd. Run 'usb_updater -f -s && usb_updater -f
&& usb_updater -f'
Change-Id: I3a09c003ae41a4651c9961092552d7807656a68a
Reviewed-on: https://chromium-review.googlesource.com/470169
Commit-Ready: Mary Ruthven <mruthven@chromium.org>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
(cherry picked from commit 56e3c669e829993683199514b78d2497784d3766)
Reviewed-on: https://chromium-review.googlesource.com/658344
Commit-Queue: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
-rw-r--r-- | extra/usb_updater/usb_updater.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater.c b/extra/usb_updater/usb_updater.c index 6318d340e2..1ce637bf6d 100644 --- a/extra/usb_updater/usb_updater.c +++ b/extra/usb_updater/usb_updater.c @@ -1254,7 +1254,8 @@ int main(int argc, char *argv[]) targ.shv[0].minor); printf("RW %d.%d.%d\n", targ.shv[1].epoch, targ.shv[1].major, targ.shv[1].minor); - send_done(&td.uep); + if (td.ep_type == usb_xfer) + send_done(&td.uep); } if (data) { |