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

Skip to content
Commit f02f5b9c authored by Ray Chi's avatar Ray Chi Committed by Gerrit - the friendly Code Review server
Browse files

ANDROID: usb: dwc3: gadget: don't cancel the started requests



Currently, there is an application on Mac that it will send
ClearFeature(halt_ep) request before transfering USB data.

If the device receives the ClearFeature(halt_ep) request, the
started requests would be removed and restart the transfer.
However, userspace services don't know this behavior. The services
will free the requests instead of retry and resend the requests.

It will cause the USB host can't get response so that it will try
to recover by issuing a reset signal.

Finally, it will take the infinite loop.
send reqeust > reset > re-enumeration > send request > reset > ...

To avoid this symptom, this patch will keep the started requests
so that userspace services didn't free the requests.

Bug: 178904115
Bug: 177879761
Signed-off-by: default avatarRay Chi <raychi@google.com>
Change-Id: I52acf48871fd7f86cfcc51fb41c67d21ea895d69
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Git-commit: 92de566762db61b138765a26e4afaacc7d7f7816
Git-Repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent 91a7f066
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment