commit | a4136361ff6a883b0253fa07b883f86bf0adfee9 | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Thu Feb 16 10:38:50 2017 -0800 |
committer | Jerry Zhang <zhangjerry@google.com> | Thu Feb 16 10:56:05 2017 -0800 |
tree | df416351e520cf1e2986d0b8a3a8e8647bf4c0ca | |
parent | ed795c01b5ae5a1f268bf3b40cd8afb2983b23f0 [diff] [blame] |
adb: Lower EP_ALLOC retry count Retries were causing timeouts on some devices. Bug: 35418581 Test: Change usb config Change-Id: Ie80d9eba1cb9af0acee49bd7312842533a94a87b
diff --git a/daemon/usb.cpp b/daemon/usb.cpp index 6d77f4b..ac05d4c 100644 --- a/daemon/usb.cpp +++ b/daemon/usb.cpp
@@ -64,7 +64,7 @@ #define FUNCTIONFS_ENDPOINT_ALLOC _IOR('g', 231, __u32) -static constexpr size_t ENDPOINT_ALLOC_RETRIES = 10; +static constexpr size_t ENDPOINT_ALLOC_RETRIES = 2; static int dummy_fd = -1;