diff options
| author | Werner Johansson <werner.johansson@sonyericsson.com> | 2010-06-30 18:42:21 -0700 |
|---|---|---|
| committer | Dima Zavin <dima@android.com> | 2010-06-30 21:03:46 -0700 |
| commit | 931bdcc09a3d805cf25033951adb95c8e5159e46 (patch) | |
| tree | 0a1dfc93ff7db16ccd042839edbdae1975057fd6 | |
| parent | eb42170e6c8b70f11dca9965785aa04a80290c72 (diff) | |
| download | system_core-931bdcc09a3d805cf25033951adb95c8e5159e46.tar.gz system_core-931bdcc09a3d805cf25033951adb95c8e5159e46.tar.bz2 system_core-931bdcc09a3d805cf25033951adb95c8e5159e46.zip | |
Set explicit timeout on USB control transfer
This attempts to solve the intermittent issues with serial number
showing up as all question marks when issuing "fastboot devices"
| -rw-r--r-- | fastboot/usb_linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/usb_linux.c b/fastboot/usb_linux.c index 2ce53eb8..78b7b980 100644 --- a/fastboot/usb_linux.c +++ b/fastboot/usb_linux.c @@ -137,6 +137,7 @@ static int filter_usb_device(int fd, char *ptr, int len, int writable, ctrl.wIndex = 0; ctrl.wLength = sizeof(buffer); ctrl.data = buffer; + ctrl.timeout = 50; result = ioctl(fd, USBDEVFS_CONTROL, &ctrl); if (result > 0) { |
