Message ID | 1537021801-23896-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 D021914D6 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0E1E2B7D0 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF0B42B842; Sat, 15 Sep 2018 14:31:06 +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 52C982B7E3 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728078AbeIOTtz (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Sat, 15 Sep 2018 15:49:55 -0400 Received: from mail-bl2nam02on0052.outbound.protection.outlook.com ([104.47.38.52]:2531 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727291AbeIOTty (ORCPT <rfc822;linux-usb@vger.kernel.org>); Sat, 15 Sep 2018 15:49:54 -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=+a6g0z3IhGz+hFHlwJszfJpzjxTMVuw8QXQm62YGiLU=; b=Xuh18fYxdiuDgGrprtCW7bY1n5Xq6DpR3nVpdmKji8YGRuIj9Sxw3fZfN6WqzMXPDz2/fph1KRcIRkC7wSlx6rE157Y0X4QsWSaJbWQXhfH2JA5QbO4KMB7J00t8pRci0JKLtGVas2SQFSrTs9PgAr872412lWNpHS8YifYri5M= Received: from DM6PR02CA0010.namprd02.prod.outlook.com (2603:10b6:5:1c::23) by DM6PR02MB4474.namprd02.prod.outlook.com (2603:10b6:5:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Sat, 15 Sep 2018 14:30:41 +0000 Received: from SN1NAM02FT024.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::209) by DM6PR02CA0010.outlook.office365.com (2603:10b6:5:1c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1143.14 via Frontend Transport; Sat, 15 Sep 2018 14:30:41 +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 SN1NAM02FT024.mail.protection.outlook.com (10.152.72.127) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Sat, 15 Sep 2018 14:30:41 +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 1g1Baq-0003U7-TM; Sat, 15 Sep 2018 07:30:40 -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 1g1Bal-0004sf-Pb; Sat, 15 Sep 2018 07:30:35 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8FEUOWV024958; Sat, 15 Sep 2018 07:30:24 -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 1g1BaZ-0004qO-NK; Sat, 15 Sep 2018 07:30:23 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id DE921604BD; Sat, 15 Sep 2018 20:00:22 +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>, <Thinh.Nguyen@synopsys.com>, <apandey@xilinx.com>, Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Subject: [PATCH v5 6/8] usb: dwc3: check for requests in started list for stream capable endpoints Date: Sat, 15 Sep 2018 19:59:59 +0530 Message-ID: <1537021801-23896-7-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1537021801-23896-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1537021801-23896-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)(376002)(346002)(39850400004)(136003)(396003)(2980300002)(438002)(199004)(189003)(2906002)(446003)(110136005)(16586007)(186003)(54906003)(90966002)(316002)(126002)(476003)(336012)(486006)(106002)(11346002)(426003)(2616005)(106466001)(63266004)(50466002)(5660300001)(26005)(6666003)(48376002)(42186006)(47776003)(39060400002)(305945005)(107886003)(76176011)(50226002)(81166006)(14444005)(81156014)(36386004)(6266002)(51416003)(8936002)(8676002)(36756003)(4326008)(52956003)(356003)(478600001)(103686004)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR02MB4474;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT024;1:q0U3HFt6dkIetY5UCsw09/tUfTARbOwPaHQQ2Hl4lswRypaN2kLYrgAKfwiBoqwSu37uniwkhqYLVGHP60O8QMBTfPFw6Tg+fia9NiG43lVe+p2GuzB7ZtPyJSdOeTTA MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd5651f2-0e99-43c1-c0f4-08d61b17d085 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM6PR02MB4474; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4474;3:Y2OyIpkW4buzcwtLKnukmssjPdvWG4zACBe1gX+2mAdpjzTURrMeRKh7jvFDYarg4qGvd7RLjoTj3K5kcno3/i0T9A849f6q2f3hKvj896yQiPfvkzYTaUgIiwt+fguV21AiiCHgpeNl53YXw6C8uoYuF6FWNeP8FmSmSc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sQXwt+yNwZMKI2la2utcFFM4ZviX35wiPzp8QdYkhx9nDUC5t6J2tZ9QLrOExqpNY+fxZ10TfUAMmFknQ6xgeTHb0dty0ZwzyhvTqxpWFUFjc0hrPcr+vzw6UXS/VSlNnH4IMRYOzyPwV33je+xrTyYmJIeD99ALblTN8yJYitrbniQeS7l4tV0lgb/goed53y9EYD1HTbIGBbdmSk8Y3zUiiQRebXyyGPvHQKGxwL2s35+ns5UHL8KdpPrWiVzyiKJxdsPwPQpaq2YoxFIjCUTlfpvmjBbepfmP X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <DM6PR02MB4474135586CD685F680C9E57A7180@DM6PR02MB4474.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)(10201501046)(93006095)(93004095)(3231355)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699050);SRVR:DM6PR02MB4474;BCL:0;PCL:0;RULEID:;SRVR:DM6PR02MB4474; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4474;4:QvuybYiHU0udOUSqBsGWeUSMAkBP/M0p7Ah2zVYRGmjMO7Kl33YEdZ+h9mrvDJie8KGiVgjdOX/xQ1MM5w7wmoXgFUhGrISzRlwHPVKNAYy/VCoBg20Hod/PXYm1hPtttvdvr+jLC0b62h868feg4Ee6Puax+vpHMgjzQQTeX0YhWiuGRd00liCOLXeBkZbZjEIjxZh+YjLDWNs5aT95sfAEDTTA17Tht0EdT8gf0gHOJ6NLcnb/nfywtY9d5Egj1IrcXsBaxKr8j2su9dQSXlTHpJmQu4wpphoBxwJTq1apmwUW2GoXS1FyjAaLlbTH X-Forefront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h3SrZjElU7Mg==;5:bF4D+Q8FiFjdrMM5sqixr8aQj8n/Va0GR+y/Z0OwD1XzqTH+crGXI10D3swuwvym98E4NsiIj0xZ7yM4rlN8QFdYV9JuNzxivaxQbZB6LOEdH1rfB0frs5rXSvjhpj/ZRnDj1ccchkC9AaJqW9FXIAH0ezNgJbiWCmI7Hlid8AM=;7:tf0npyW0liXrcCqY/95lg7BiEmuN0eQjKSyr4+jCnSewOIH3zNw7Bq93pRkdVjN850kjMoCCajrsvHmM+ItLFqGC9h4GMhGbm0OdjBOBRNEkfpz6Ay8qsjo6MwZBO6/yVS6zN1rYhKgpN49tAAFFw8bNctdt27na1Rly8nGEoeuOGYdmDvCrG74iE3aPIwj5rNRyAggz/va85sHONKP245g7GFv/rFNMug+rAMjUwVHSGuGsUhk3k0MZtF6tGHyd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2018 14:30:41.3295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd5651f2-0e99-43c1-c0f4-08d61b17d085 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: DM6PR02MB4474 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 b2d68f1..1cb7df9 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2433,6 +2433,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;