From patchwork Mon Jun 29 02:32:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1318721 X-Patchwork-Delegate: lukma@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=QrPVwyr3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49w9v44SHnz9sQt for ; Mon, 29 Jun 2020 12:10:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40CC181F06; Mon, 29 Jun 2020 04:10:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="QrPVwyr3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7BD2281EB0; Mon, 29 Jun 2020 04:09:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0612.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::612]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1928581F0B for ; Mon, 29 Jun 2020 04:08:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEy5W3XD2xzKrgvnrFcVUD8wC6FbtF3cVzG6Z9iJrV5l8w81Yu8tFf0uJavcEleSFNT3f9BNL7E68K9NYLxNa7luwHYVf3L/ILmYNlPVVlCVgxfXEvAHaOxSY60eEDvOg0IfGfooLT+p5cs4csMmxXHNdlh7vD1syu+2sg5DWQfR+1bjpX88KDf3Ie/vabkSBAMGpNKuFsLaVpikMxG/0y48AtJVOfSXCFIq1XxD7QFS8KAvfN341cfus57dgN5tZTkQ9cRT/Rs1UjzTUhtdX4s8UJD6Ytqr7Dbn6dlmIO8JDq3BPcx3EyC0sffkYh1b5S8GH/mED8TrVFYiBwuo3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N1Tv9mYuPVgoIOlnMjdDnLPViIT1OAxqlw5iepMSvxg=; b=C6sZ9S4EJu5Vqj7fK8aV6DNeF0cya9ePXfELbMuMPr+LZNignLpsfb2qVJbnK89UYtlxJfbuAXgdYCOorOMiDPCLOzMeID1gAxG38PgoQifRMGcpl+KtATnV2Babp6xC4Q2iSzT3jRbm4tzvQ8XPLE6PjCgc4902Ly9peqU9ZbPx3V5MjtplikM7E/9QF0oScqAubZLd/+thMTZEAefRq1Z3QzLIDYy+dHuRUfSg/Lrv5EWugsnCT81ur7veliU1/8k07iUW9S93XUH0+4uOYrISihLVs4R+Wi+D1RPP9+ccS+HiNRmTaBiEjKNye1d3WTjhy5wSgbHwuDsZWbfWpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N1Tv9mYuPVgoIOlnMjdDnLPViIT1OAxqlw5iepMSvxg=; b=QrPVwyr3HqticACWY5vAbzirBJd6Jv1K0iCkAc9TojJF6r8d7DRsgcq7sJ9AEO+0iZJWWlgbuWkyIhKzD/d8gQol0w9q0ZQquiXdC8qERQsRCQ76g/C31tSCdQYekZqSaJOdoLh7n9nolwZZvpsMMV7mNXTjHXSUX3XF4lZj208= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB3PR0402MB3913.eurprd04.prod.outlook.com (2603:10a6:8:3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.25; Mon, 29 Jun 2020 02:08:52 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::2d36:b569:17c:7701]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::2d36:b569:17c:7701%4]) with mapi id 15.20.3131.026; Mon, 29 Jun 2020 02:08:51 +0000 From: Peng Fan To: sbabic@denx.de, marex@denx.de, lukma@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Sherry Sun , Peng Fan Subject: [PATCH 7/7] f_sdp: Change bInterval of interrupt endpoint to 3 Date: Mon, 29 Jun 2020 10:32:58 +0800 Message-Id: <20200629023258.25452-7-peng.fan@nxp.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200629023258.25452-1-peng.fan@nxp.com> References: <20200629023258.25452-1-peng.fan@nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Mon, 29 Jun 2020 02:08:49 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2a5e2536-17f7-436e-f0fc-08d81bd15e33 X-MS-TrafficTypeDiagnostic: DB3PR0402MB3913: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 044968D9E1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lTXvKARgs1Rm35XEOfnrysaG32Da7PMru+DubCyoT1b3ncLaDf6dHzGhhldrzI/azZhPLxUhh9TPnmEIuGVEyLv+zIYxEDB2SKdydEoPmSk0guL2nZeyp4cRmR3d/trnCxddko7oeDVDkouyJlUoJ/HqpDTPk0XMgDsnPY2+xpHWi2oS09P2K6CF8zXAYV4ROwgVd3iUKm10A/5miSFLKTDCBdQOst5/IYoMMulZlF17pE1NamdzECpbNFI8LFaWGg0firz2+WG3Y7wiYQ3JnFGpxcwU7sUNrqeFMHm0HG5pXgij5GLW/Fq5YGrGIqArOho3vEumn8XMEiDp4gBwOQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(136003)(366004)(396003)(346002)(376002)(6486002)(6666004)(86362001)(52116002)(54906003)(66946007)(5660300002)(316002)(2906002)(66476007)(66556008)(1076003)(26005)(4326008)(36756003)(6512007)(8676002)(186003)(83380400001)(16526019)(6506007)(478600001)(44832011)(956004)(8936002)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: MzTk4h20Nd5tDZs/Wk6tiEVnvqSmbk0swG1QxJLb2HgTyrWXOH1e74B/fuy1S6eeoALkKYGMs9Pud+ovsZ/efCWgPrTgnazSCu+J8rBsTBh3kiA3DI6pThVqQ4NYBu8dx6SSvzSUDTZiFZ0iJP1Hi6dIo8yd8QSdkhyA5KbjyW8pCqGyOUf+VL/aCSpKbFM/gqj4GXYZwtgrhh2otzNoa1/R+2heax706+yA4cuJc1PnBXzh3/NWB5B6oW9c0xoAZyHjyRAa7tEgkvVTpzU8ZpIDW4UVleS3ECemxBUvqHclayggz3XhfdLkjYhOQsAZDeU0fXYzyvLL/gG1/OL/ubJe3h0o1LtNZa6yP8ZL/0+Me+1Zq+ewWggLEZ9yOAzx8m51Sa3E32buaM2NhvbdYZNoYLEXP3H8gBdQux2xqrUs4i9EX7oxl7nnkzmZnuFXgg/datyVIFE3uX9/cNm2wPOFfYq/ra5/uRVvwjzlQ2tutSpyng233wG3YKB5BKx+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a5e2536-17f7-436e-f0fc-08d81bd15e33 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2020 02:08:51.9120 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K4aZmAIe5NE+K9A3aWvRQNNvBSCUd+s+3kvxGXet6nHPvaFN2uQprwwd0KMGf+WUv3y1qbq3ZWhx/+tE8hwsRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3913 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean From: Sherry Sun 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 Signed-off-by: Sherry Sun Signed-off-by: Peng Fan --- 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 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[] = {