diff mbox series

[7/7] f_sdp: Change bInterval of interrupt endpoint to 3

Message ID 20200629023258.25452-7-peng.fan@nxp.com
State New
Headers show
Series [1/7] sdp: call board_usb_init at spl_sdp_load_image | expand

Commit Message

Peng Fan June 29, 2020, 2:32 a.m. UTC
From: Sherry Sun <sherry.sun at nxp.com>

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.

Reviewed-by: Ye Li <ye.li at nxp.com>
Signed-off-by: Sherry Sun <sherry.sun at nxp.com>
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/usb/gadget/f_sdp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c
index 4e33be6ada..5bde08f707 100644
--- a/drivers/usb/gadget/f_sdp.c
+++ b/drivers/usb/gadget/f_sdp.c
@@ -186,7 +186,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 = {
@@ -196,7 +196,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[] = {