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

Commit 7dba2526 authored by Mark Kuo's avatar Mark Kuo Committed by Badhri Jagan Sridharan
Browse files

CHROMIUM: usb: gadget: f_mtp: fix usb_ss_ep_comp_descriptor



wBytesPerInterval in SuperSpeed Endpoint Companion Descriptor needs
to be set large enough to reserve enough bus time for associated
periodic endpoint.

Originally, wBytesPerInterval for mtp's interrupt IN endpoint is set
to 2 and its single interrupt transfer will be split into many 2 bytes
interrupt transfers. So, we change wBytesPerInterval to INTR_BUFFER_SIZE
to ensure interrupt transfer will not be split.

BUG=none
TEST=Smaug works as a MTP device

Change-Id: I49c0df892b2d9e0193a684eef23f73664ced9f91
Signed-off-by: default avatarHenry Lin <henryl@nvidia.com>
Signed-off-by: default avatarMark Kuo <mkuo@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/299091


Reviewed-by: default avatarAndrew Bresticker <abrestic@chromium.org>
parent bd7dd235
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