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

Skip to content
Commit 0caf908b authored by Manu Gautam's avatar Manu Gautam Committed by Mayank Rana
Browse files

usb: gadget: f_mtp: 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, MTP userspace
module submits RX requests aligned to 512 bytes which works
fine in High speed mode. But, fails in Super-speed mode where
max packet size can be 1024 bytes.
To overcome this just change the size of RX request buffer
while submitting to DCD as the buffers are already allocated
with the size of 16KB.

Change-Id: I68c32ef3d08b2cf943b52a7269785d0a00146953
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 53c1534d
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