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

Commit 630dc6ea authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: qdss: Fix usage of usb_ep_autoconfig()



commit 59ff8848 ("usb: gadget: qdss: Use usb_ep_autoconfig()
instead of ss() variant") modified f_qdss to use the simple
usb_ep_autoconfig() helper, however this function has a caveat
that the passed in descriptor's wMaxPacketSize field gets updated
to be a maximum to 64 bytes. Hence, this function should not be
called with descriptors intended for high- or Superspeed usage
since they can support up to 512 or 1024 bytes for bulk endpoints.

Instead, call usb_ep_autoconfig() by passing in the FS descriptors,
and use the resulting bEndpointAddress assignment to update the
corresponding HS and SS descriptors.

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