From: Sherry Sun Date: Thu, 26 Sep 2019 14:04:07 +0000 (-0400) Subject: MLK-22673: sdp: Change bInterval of interrupt endpoint to 3 X-Git-Tag: rel_imx_4.19.35_1.1.0~53 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=0f33591cbbb8a2e848e4c297b8293c7b97874ca1;p=u-boot.git MLK-22673: sdp: Change bInterval of interrupt endpoint to 3 Since the USB HID limits the maximum bandwidth(3072) for interrupt endpoint transfers, when the bInterval set to 1, we can only support 3 boards to run sdp at the same time. In order to support more boards, change the bInterval of interrupt endpoint to 3, which will not affect the transmission speed. Signed-off-by: Sherry Sun Reviewed-by: Ye Li (cherry picked from commit beb0283e6bac3d42cc87757e3c0e200e2ac3b68f) --- diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index 3f9d174ef3..941e8b0e30 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -182,7 +182,7 @@ static struct usb_endpoint_descriptor in_hs_desc = { .bEndpointAddress = 1 | USB_DIR_IN, .bmAttributes = USB_ENDPOINT_XFER_INT, .wMaxPacketSize = 512, - .bInterval = 1, + .bInterval = 3, }; static struct usb_endpoint_descriptor out_hs_desc = { @@ -192,7 +192,7 @@ static struct usb_endpoint_descriptor out_hs_desc = { .bEndpointAddress = 1 | USB_DIR_OUT, .bmAttributes = USB_ENDPOINT_XFER_INT, .wMaxPacketSize = SDP_HID_PACKET_SIZE_EP1, - .bInterval = 1, + .bInterval = 3, }; static struct usb_descriptor_header *sdp_runtime_descs[] = {