Message ID | 1534508695-12642-7-git-send-email-anurag.kumar.vulisha@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-usb-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A83714BD for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 888102B020 for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B2882B400; Fri, 17 Aug 2018 12:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DDDB2B020 for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbeHQP2X (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Fri, 17 Aug 2018 11:28:23 -0400 Received: from mail-sn1nam02on0076.outbound.protection.outlook.com ([104.47.36.76]:40480 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726685AbeHQP2X (ORCPT <rfc822;linux-usb@vger.kernel.org>); Fri, 17 Aug 2018 11:28:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=At+WIRAdFd5BdQ9QOsJTqlBefuOKmCOtiVL0faHCGmg=; b=CGXtPGwFWL2xQCipB/Alj8SsmhfW1pMCxLcK9rdqGAY/dVWrkRTeUK+Y6DiuedFGfylQSR9L2k0M27TsdfnqhlUZCUGOnElp7+oX2D9XcYbyUrHzSUmkVd2m6vBkMrCkYZOS7S4PMh+vtEmvued5S9JG1LBWU9YQLn3ibzrappU= Received: from BN7PR02CA0022.namprd02.prod.outlook.com (2603:10b6:408:20::35) by DM6PR02MB4459.namprd02.prod.outlook.com (2603:10b6:5:29::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.21; Fri, 17 Aug 2018 12:25:06 +0000 Received: from BL2NAM02FT017.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::206) by BN7PR02CA0022.outlook.office365.com (2603:10b6:408:20::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1059.20 via Frontend Transport; Fri, 17 Aug 2018 12:25:06 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT017.mail.protection.outlook.com (10.152.77.174) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1059.14 via Frontend Transport; Fri, 17 Aug 2018 12:25:05 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1fqdoP-00030v-AF; Fri, 17 Aug 2018 05:25:05 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1fqdoK-0000U3-8s; Fri, 17 Aug 2018 05:25:00 -0700 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w7HCOw2v019099; Fri, 17 Aug 2018 05:24:58 -0700 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <anuragku@xilinx.com>) id 1fqdoI-0000Tb-7J; Fri, 17 Aug 2018 05:24:58 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 4B2A06050D; Fri, 17 Aug 2018 17:54:57 +0530 (IST) From: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> To: <balbi@kernel.org>, <gregkh@linuxfoundation.org> CC: <v.anuragkumar@gmail.com>, <linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Subject: [PATCH v2 6/8] usb: dwc3: check for requests in started list for stream capable endpoints Date: Fri, 17 Aug 2018 17:54:53 +0530 Message-ID: <1534508695-12642-7-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1534508695-12642-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1534508695-12642-1-git-send-email-anurag.kumar.vulisha@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(346002)(136003)(396003)(376002)(2980300002)(438002)(189003)(199004)(14444005)(356003)(8676002)(51416003)(305945005)(76176011)(81166006)(42186006)(47776003)(36386004)(36756003)(446003)(16586007)(106002)(110136005)(52956003)(426003)(81156014)(54906003)(316002)(107886003)(126002)(50226002)(8936002)(90966002)(103686004)(6266002)(11346002)(336012)(2616005)(486006)(476003)(4326008)(39060400002)(5660300001)(478600001)(6666003)(26005)(186003)(106466001)(63266004)(48376002)(50466002)(2906002)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR02MB4459;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT017;1:4ke7zDdFWiybjRbcfjvZDSCDZgzM68+3v0RomgERACrVkH8r156LZKblTEYSoZcUpNVKYTZd6hTLsr5zSdnHs96iY283xRucMookMqdKry9CJNgIGmbpeevpEbjWHO3j MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1cf6636a-b0cc-40a2-1d11-08d6043c7705 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM6PR02MB4459; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4459;3:2GUrBKfKO5mB3HRCXt5r80UVEDjXjWb0XxEM3KVCkcVs588FkRuxO2YRyDmCHjVq5a3LrDBEkBdbDd9x1CREN+T5r9QIQNmJNHbGwMRgsLcislBr/7K1ik61/D5vWcNIgyQqVkHXGxktg4PldZ45uUTBgW3Bfl4o7OF+wlUHcnIpFaXiIca6zAOdXhNzjnlszxlJLaCzps39Pl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dUeM1DDYxUjFuH/nFcoJPNmuD0pKdF8PHlXq7FSuUGwwkD/0M7JJRbPWqURsiyUIHuD+qJrFHNiuDyHsViyIK2se+tYU8tgVErGN7ZIKaus04PKWB2fm2og3UaGAqqHcngvUVfv2MtBeVtLB61rwvO0raKscwykT3YpsQSaIorxMtLjoe2U3cJ/W+MqjTXxgwcyeXeqw8zEpRLrYRwcN7sfO6CzQGZ3jsADHMlXgO6rF/peA+EEzKg7W X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <DM6PR02MB4459B5DD9AA9714644401199A73D0@DM6PR02MB4459.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(10201501046)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016);SRVR:DM6PR02MB4459;BCL:0;PCL:0;RULEID:;SRVR:DM6PR02MB4459; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4459;4:Fpf7kbVF0CKluAd59iHFGRkfch3fsoXbmlPK1eYfnibI324zVcGFVZ2W9cS/wda5WfKytk/lHM8c61UewSkH/wMxzPw+7/7EfkuWfB6NwTjSBROjaXx5NG/X4+pWwD5tAlUz/QwNCnCsHxyqg83o4C3fAQHHQgatlEujaUQD3T2mhjhI/Bkj5jFsXhpXTIsZ+Q+NnB+pdxACfcXSC4mBqCMhkTMXVT/5WIKYGq1Vi3nJyxATGPf4bQWJA1FcXdX9/CK0rVxWcabrvEN9kHnwJgUh3RG2YPeHjSjh68P2bhKjI1IJQ2XB4zd9u8jigb+K X-Forefront-PRVS: 076777155F X-Microsoft-Exchange-Diagnostics: 1;DM6P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v6Vtj4LUoHPbI0ifyldyQMXFCnSwrnVWhe4Rsw1alGyDEp+UWDtP+N8FgbopU77pW2CUrbIQZvyy1m14Vvooy1hH4oKqRaLQ8dJosGsqgoHpSV9Wkgo68FZtXT/p8wYbMzevVI=;7:YJbXG1gMVLZWRsJID0qReLOC7dELuV0Q+1M+3ILXW3o2kRyJZQ6v8bYM+JTeJqqp+ou3KbIMgZRUTNhTc88iWfSEE5m6Qe1fxGX+o/Y4Fc67sgthNCkaNDDG0ksoD5MiLkS1x3vQN8grrUwWKsSD6garJnvrH4jxvuHXQ3/B6oy+4if0rbiia7OTu9K8DMGvkErizMiZ073fPSNIGFvS/tXJxR6EOwWI5HAe3ociRprf9e0iAYmW5BkfXpxnpPII SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2018 12:25:05.9001 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1cf6636a-b0cc-40a2-1d11-08d6043c7705 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4459 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
usb: dwc3: Fix broken BULK stream support to dwc3 gadget driver
|
expand
|
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 260f10f..3af55f8 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2424,6 +2424,9 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep, dwc3_gadget_ep_cleanup_completed_requests(dep, event, status); + if (dep->stream_capable && !list_empty(&dep->started_list)) + __dwc3_gadget_kick_transfer(dep); + if (stop) { dwc3_stop_active_transfer(dep, true); dep->flags = DWC3_EP_ENABLED;
For stream capable endpoints, uas layer can queue mulpile requests on single ep with different stream ids. So, there can be multiple pending requests waiting to be transferred. This patch changes the code to check for any pending requests waiting to be transferred on ep started_list and calls __dwc3_gadget_kick_transfer() if any. Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> --- Changes in v2: 1. None --- drivers/usb/dwc3/gadget.c | 3 +++ 1 file changed, 3 insertions(+)