summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2019-05-07 15:43:39 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-12 19:27:40 -0700
commitd68548eebbe93a6c3009cf20ddf0da7b27fe2012 (patch)
tree9a6effed3c59ea43462322fa705f95b990b6480a /extra
parente02b08ceca36300a602c50b2b3cc81f3a5385978 (diff)
downloadchrome-ec-d68548eebbe93a6c3009cf20ddf0da7b27fe2012.tar.gz
usb_if: use the device with the matching serial number
There might be multiple devices with the same VID:PID connected to the host. Use the serial number to find the correct device if it is given. BUG=none BRANCH=none TEST=none Change-Id: I96f31e8e7ceb0dd2c3c643771b38752da88a2a9e Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1600500 Reviewed-by: Matthew Blecker <matthewb@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r--extra/usb_updater/gsctool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/gsctool.c b/extra/usb_updater/gsctool.c
index 0fd07d38f8..c65234e305 100644
--- a/extra/usb_updater/gsctool.c
+++ b/extra/usb_updater/gsctool.c
@@ -2533,7 +2533,7 @@ int main(int argc, char *argv[])
}
if (td.ep_type == usb_xfer) {
- if (usb_findit(vid, pid, USB_SUBCLASS_GOOGLE_CR50,
+ if (usb_findit(NULL, vid, pid, USB_SUBCLASS_GOOGLE_CR50,
USB_PROTOCOL_GOOGLE_CR50_NON_HC_FW_UPDATE,
&td.uep))
exit(update_error);