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

Commit dfa2a692 authored by Jack Pham's avatar Jack Pham Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3: Increase EP0 bounce buffer size to 2KB



There is a known limitation in the DWC3 controller that EP0
control transfers must an even multiple of wMaxPacketSize (64 bytes
in high speed, 512 bytes in super speed). In the current handling
of an OUT data stage, if the length of the request buffer is not
aligned, a pre-reserved bounce buffer is used for that transfer
and copied back to the function when completed. The size of this
buffer is #defined as 512 bytes, and a WARN_ON is issued if the
request is greater than this since that indicates a buffer overrun
condition. A simple way to address this is to bump up this size
to 2048 to handle occassional large control transfers.

Change-Id: I4ea0ae0496bc39f14a384b50cf984b9456b0e3ec
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 8ca03863
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