am 931bdcc0: Set explicit timeout on USB control transfer

Merge commit '931bdcc09a3d805cf25033951adb95c8e5159e46' into gingerbread-plus-aosp

* commit '931bdcc09a3d805cf25033951adb95c8e5159e46':
  Set explicit timeout on USB control transfer
This commit is contained in:
Werner Johansson 2010-06-30 21:18:54 -07:00 committed by Android Git Automerger
commit a8c7404956
1 changed files with 1 additions and 0 deletions

View File

@ -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) {