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:Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment