summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorSherry Sun <sherry.sun@nxp.com>2020-08-18 13:16:49 +0300
committerMarek Vasut <marex@denx.de>2020-09-01 15:47:43 +0300
commit405217a0332aa33e33fb579d75bc7f420c27bcd1 (patch)
treec1c6ba2e2434e4fdd7174cbe33604576077dea2f /drivers/usb/gadget
parent9e06c5c55a60bea001c82ad32f48177eddda0d38 (diff)
downloadu-boot-405217a0332aa33e33fb579d75bc7f420c27bcd1.tar.xz
f_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. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Sherry Sun <sherry.sun@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c
index c5b35945c1..e48aa2f90d 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[] = {