Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40a87784 authored by Jerry Zhang's avatar Jerry Zhang
Browse files

Revert "adb: Lower EP_ALLOC retry count"

This reverts commit 05fe272a.

Commit "adb: Do not signal gaget stack unless descriptors are written"
fixed the main issue for configfs devices where device wasn't enabled
until after the ioctl was attempted. Thus it is safe to bring up the
retry count so that the ioctl doesn't fail due to small delays in
usb stack.

Test: use adb, switch configs on configfs devices
parent 75f8d89a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ using namespace std::chrono_literals;

#define FUNCTIONFS_ENDPOINT_ALLOC       _IOR('g', 231, __u32)

static constexpr size_t ENDPOINT_ALLOC_RETRIES = 2;
static constexpr size_t ENDPOINT_ALLOC_RETRIES = 10;

static int dummy_fd = -1;