Commit 0f33591cbbb8a2e848e4c297b8293c7b97874ca1

Authored by Sherry Sun
Committed by Ye Li
1 parent 4fb3e77b9e

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 <sherry.sun@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit beb0283e6bac3d42cc87757e3c0e200e2ac3b68f)

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/usb/gadget/f_sdp.c
... ... @@ -182,7 +182,7 @@
182 182 .bEndpointAddress = 1 | USB_DIR_IN,
183 183 .bmAttributes = USB_ENDPOINT_XFER_INT,
184 184 .wMaxPacketSize = 512,
185   - .bInterval = 1,
  185 + .bInterval = 3,
186 186 };
187 187  
188 188 static struct usb_endpoint_descriptor out_hs_desc = {
... ... @@ -192,7 +192,7 @@
192 192 .bEndpointAddress = 1 | USB_DIR_OUT,
193 193 .bmAttributes = USB_ENDPOINT_XFER_INT,
194 194 .wMaxPacketSize = SDP_HID_PACKET_SIZE_EP1,
195   - .bInterval = 1,
  195 + .bInterval = 3,
196 196 };
197 197  
198 198 static struct usb_descriptor_header *sdp_runtime_descs[] = {