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: Henry Lin <henryl@nvidia.com> Signed-off-by: Mark Kuo <mkuo@nvidia.com> Reviewed-on: https://chromium-review.googlesource.com/299091 Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
This commit is contained in:
parent
17fe2ea84d
commit
588dc2e552
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ static struct usb_endpoint_descriptor mtp_intr_desc = {
|
|||
static struct usb_ss_ep_comp_descriptor mtp_intr_ss_comp_desc = {
|
||||
.bLength = sizeof(mtp_intr_ss_comp_desc),
|
||||
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
|
||||
.wBytesPerInterval = cpu_to_le16(2),
|
||||
.wBytesPerInterval = cpu_to_le16(INTR_BUFFER_SIZE),
|
||||
};
|
||||
|
||||
static struct usb_descriptor_header *fs_mtp_descs[] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue