All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 7/7] f_sdp: Change bInterval of interrupt endpoint to 3
Date: Tue, 18 Aug 2020 18:16:49 +0800	[thread overview]
Message-ID: <20200818101649.16509-8-peng.fan@nxp.com> (raw)
In-Reply-To: <20200818101649.16509-1-peng.fan@nxp.com>

From: Sherry Sun <sherry.sun@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@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/usb/gadget/f_sdp.c | 4 ++--
 1 file 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[] = {
-- 
2.16.4

      parent reply	other threads:[~2020-08-18 10:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18 10:16 [PATCH v2 0/7] f_sdp: fix and update Peng Fan
2020-08-18 10:16 ` [PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image Peng Fan
2020-08-18 11:22   ` Lukasz Majewski
2020-08-18 12:31     ` Peng Fan
2020-08-18 10:16 ` [PATCH v2 2/7] f_sdp: Add high speed endpoint descriptor Peng Fan
2020-08-18 11:23   ` Lukasz Majewski
2020-08-18 10:16 ` [PATCH v2 3/7] f_sdp: Fix wrong usb request size Peng Fan
2020-08-18 11:24   ` Lukasz Majewski
2020-08-18 10:16 ` [PATCH v2 4/7] f_sdp: Support searching and loading FIT or container image Peng Fan
2020-08-18 11:32   ` Lukasz Majewski
2020-08-18 12:38     ` Peng Fan
2020-08-18 12:42       ` Lukasz Majewski
2020-08-18 10:16 ` [PATCH v2 5/7] spl: add g_dnl_get_board_bcd_device_number Peng Fan
2020-08-18 11:32   ` Lukasz Majewski
2020-08-18 10:16 ` [PATCH v2 6/7] f_sdp: Add EP1_OUT as default data receive pipe in sdp Peng Fan
2020-08-18 10:16 ` Peng Fan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200818101649.16509-8-peng.fan@nxp.com \
    --to=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.