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

Skip to content
Commit a72dcd5e authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Mayank Rana
Browse files

usb: gadget: f_accessory: Make RX buffer size aligned to EP's MTU



Synopsys USB3 Controller (DWC3) has a restriction where size
of OUT requests (TRB) queued to the controller must be aligned
with the endpoint's max packet size. Generally, accessory userspace
module submits RX requests not aligned to endpoint's max packet
size. Hence to overcome this, align the size of RX request buffer to
endpoint's max packet while submitting to DCD as the buffers are
already allocated with the size of 16KB.

Change-Id: I3acdfc055d0c6a79a0aa65a715bae06dc475d078
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 459964f6
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