From patchwork Wed Apr 20 18:33:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Vacura X-Patchwork-Id: 12820687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30848C433EF for ; Wed, 20 Apr 2022 18:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354525AbiDTShH (ORCPT ); Wed, 20 Apr 2022 14:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346657AbiDTShF (ORCPT ); Wed, 20 Apr 2022 14:37:05 -0400 Received: from mail1.bemta31.messagelabs.com (mail1.bemta31.messagelabs.com [67.219.246.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB25129; Wed, 20 Apr 2022 11:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motorola.com; s=Selector; t=1650479657; i=@motorola.com; bh=3P37IxzWVK0w9ZSre3qUDtbzzByBCjaQG/eZQCGHfpg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding; b=GtDsQ7/GlJ9DgXMA/L3hF2pttO8t4aMrTzlJC7r3+kMRhn147xf6FaMsDwrWSdwCl rIVvBe27ccQG4ptpi2J1AhQxD3wK70l3XJlFOZpXGNOYWeD7ySp+h1zJwsh1V5dBGy JIJh51smW/P34magU2DuXPEbadjN+4bFj13jExF15YTuZGCy3TTNsk7iG6xLOrzjS9 s6jhHsNctIwK1FNUd94s8avJx/uZNpa6paXxPEHupdYTJSged5q3LJtw2w0S5l1oRw kjAxwiMCjYpVq3nCOXtldLOQdlJM7LJU6F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U4I9FQi7moOBEAElDTCUsDAAA= X-Env-Sender: w36195@motorola.com X-Msg-Ref: server-10.tower-686.messagelabs.com!1650479655!16369!1 X-Originating-IP: [104.232.228.21] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.85.8; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27052 invoked from network); 20 Apr 2022 18:34:15 -0000 Received: from unknown (HELO va32lpfpp01.lenovo.com) (104.232.228.21) by server-10.tower-686.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 20 Apr 2022 18:34:15 -0000 Received: from va32lmmrp01.lenovo.com (va32lmmrp01.mot.com [10.62.177.113]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by va32lpfpp01.lenovo.com (Postfix) with ESMTPS id 4Kk8TM4sCQzgNVW; Wed, 20 Apr 2022 18:34:15 +0000 (UTC) Received: from p1g3.. (unknown [10.45.5.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: w36195) by va32lmmrp01.lenovo.com (Postfix) with ESMTPSA id 4Kk8TM2n3Mzf6f9; Wed, 20 Apr 2022 18:34:15 +0000 (UTC) From: Dan Vacura To: linux-usb@vger.kernel.org Cc: Wesley Cheng , Thinh Nguyen , Dan Vacura , Felipe Balbi , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] usb: dwc3: gadget: increase tx fifo size for ss isoc endpoints Date: Wed, 20 Apr 2022 13:33:38 -0500 Message-Id: <20220420183338.445622-1-w36195@motorola.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Improve performance of isoc transfers in superspeed by increasing the number of possible endpoints available, matching that of what was configured for bulk transfers. Signed-off-by: Dan Vacura --- drivers/usb/dwc3/gadget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index ab725d2262d6..faffa4f4050c 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -783,7 +783,8 @@ static int dwc3_gadget_resize_tx_fifos(struct dwc3_ep *dep) num_fifos = 3; if (dep->endpoint.maxburst > 6 && - usb_endpoint_xfer_bulk(dep->endpoint.desc) && DWC3_IP_IS(DWC31)) + (usb_endpoint_xfer_bulk(dep->endpoint.desc) || + usb_endpoint_xfer_isoc(dep->endpoint.desc)) && DWC3_IP_IS(DWC31)) num_fifos = dwc->tx_fifo_resize_max_num; /* FIFO size for a single buffer */