mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 15:01:27 +02:00
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>
This commit is contained in:
@@ -186,7 +186,7 @@ static struct usb_endpoint_descriptor in_hs_desc = {
|
|||||||
.bEndpointAddress = 1 | USB_DIR_IN,
|
.bEndpointAddress = 1 | USB_DIR_IN,
|
||||||
.bmAttributes = USB_ENDPOINT_XFER_INT,
|
.bmAttributes = USB_ENDPOINT_XFER_INT,
|
||||||
.wMaxPacketSize = 512,
|
.wMaxPacketSize = 512,
|
||||||
.bInterval = 1,
|
.bInterval = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct usb_endpoint_descriptor out_hs_desc = {
|
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,
|
.bEndpointAddress = 1 | USB_DIR_OUT,
|
||||||
.bmAttributes = USB_ENDPOINT_XFER_INT,
|
.bmAttributes = USB_ENDPOINT_XFER_INT,
|
||||||
.wMaxPacketSize = SDP_HID_PACKET_SIZE_EP1,
|
.wMaxPacketSize = SDP_HID_PACKET_SIZE_EP1,
|
||||||
.bInterval = 1,
|
.bInterval = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct usb_descriptor_header *sdp_runtime_descs[] = {
|
static struct usb_descriptor_header *sdp_runtime_descs[] = {
|
||||||
|
Reference in New Issue
Block a user