Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp703777imm; Wed, 25 Jul 2018 04:54:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcGY3SVwURtE1gQI1qwiQr+p5NbrIHpIvhg2Wm1PoZ4cifOZlHyVChJw28FmU0CfCISbVcq X-Received: by 2002:a62:98d6:: with SMTP id d83-v6mr21985400pfk.186.1532519667197; Wed, 25 Jul 2018 04:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532519667; cv=none; d=google.com; s=arc-20160816; b=ieYdoqQa+kzRaXEj0lo1AvIJkfSaYAS0JGssbRf6ZcdV076VKMX6mIa5leIzvUsfBK 6KNgETnizW0oVP1HFkmPJzWI6VUACMYuWsDJXarAa6nxTDoRG5SnjUpUivDsB4tCvtrO 07gW6CONO0R9vGzMk5F67M2S4Vopfj6LEjC8/5it5e+qTs8TAg0NhckFUbdzwvLAXS4M 6BtP/MPXzzToYXZn37QNL1Mnj7xeHH7acZymfnGETfhnpAdi5BC7plm5jhmeRzJSb+CX UJIurnaZJaI5ddnbDkb9UCA2kgQHjrPz5eEzy1k9YWeZePsIXioGDAQDTjy4SPs4eFVd hKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=iBZcGEePYEegP+ehKsC5vM41JYPEmNjrPlIUsVLWxww=; b=qzPAFqVtg23PqMzYr3k/x1c4pENhpQAZ4rxFgV+epDaEGmG+pBj232xuZnM+pLH64+ x01pd1+B8CGB85ZoTunNJrik0hFbNFrNy76s74GLvnWfVk/sPJVyB9Ir/7T49wE0UOzL OMYrRmJBZS6+46FFldzHJ0weGihsKdSRjJ+2qi0hTzvdznC3DvXZjynH/57DLpZe8xEv aac2Bo2NzEialequC6R8idJUnQlEoLmeSOhsWIa1U9EDEjGTD9/y2eFzN26/oJxSWwaU SDqpmq0kL8KbmJWQlKl53GdTFwfLVn85sZsQAXJbDwP9mhg+UulIAzAJLB+4vuL332sV GcPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=q1X2hlVc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63-v6si347560plb.288.2018.07.25.04.54.12; Wed, 25 Jul 2018 04:54:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=q1X2hlVc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728949AbeGYNDK (ORCPT + 99 others); Wed, 25 Jul 2018 09:03:10 -0400 Received: from mail-cys01nam02on0082.outbound.protection.outlook.com ([104.47.37.82]:37132 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728681AbeGYNDJ (ORCPT ); Wed, 25 Jul 2018 09:03:09 -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=iBZcGEePYEegP+ehKsC5vM41JYPEmNjrPlIUsVLWxww=; b=q1X2hlVc6fEs6ztE2awP0jHYxgdWTCrucOuMCZ6nwkDXaGAvXOqgSRS1yiEpevCAskegsnRnR8MD5Ap4A3DX1AtLG++C1RbB2Z8TGnV3gfwdcboCQAuUmWJkT0SNoBMRLGxcvtgUeRda35EBuX16fuFfu5UNKtFJVSY8PJxaxQI= Received: from SN4PR0201CA0037.namprd02.prod.outlook.com (2603:10b6:803:2e::23) by BLUPR02MB083.namprd02.prod.outlook.com (2a01:111:e400:811::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.973.22; Wed, 25 Jul 2018 11:51:46 +0000 Received: from CY1NAM02FT043.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::208) by SN4PR0201CA0037.outlook.office365.com (2603:10b6:803:2e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.16 via Frontend Transport; Wed, 25 Jul 2018 11:51:46 +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 CY1NAM02FT043.mail.protection.outlook.com (10.152.74.182) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.995.12 via Frontend Transport; Wed, 25 Jul 2018 11:51:45 +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 ) id 1fiIKX-0007iB-0n; Wed, 25 Jul 2018 04:51:45 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fiIKR-0006Z7-RP; Wed, 25 Jul 2018 04:51:39 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w6PBpYu1027038; Wed, 25 Jul 2018 04:51:34 -0700 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fiIKM-0006YM-7S; Wed, 25 Jul 2018 04:51:34 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 58D6C60504; Wed, 25 Jul 2018 17:21:33 +0530 (IST) From: Anurag Kumar Vulisha To: , CC: , , , Anurag Kumar Vulisha Subject: [PATCH 0/8] fix broken BULK stream support to dwc3 gadget driver Date: Wed, 25 Jul 2018 17:21:23 +0530 Message-ID: <1532519491-19502-1-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 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)(136003)(39860400002)(346002)(396003)(2980300002)(438002)(199004)(189003)(36756003)(6666003)(90966002)(106002)(8936002)(54906003)(336012)(16586007)(42186006)(478600001)(2616005)(51416003)(81156014)(316002)(110136005)(106466001)(81166006)(26005)(50226002)(8676002)(50466002)(356003)(305945005)(48376002)(476003)(126002)(486006)(63266004)(426003)(103686004)(52956003)(14444005)(107886003)(4326008)(2906002)(5660300001)(39060400002)(36386004)(186003)(6266002)(47776003)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR02MB083;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT043;1:10M7WvaMecSnTOKoTntHpEaUmwRWr/P8GzM732qBxCjdrxKjQ9W7BKwCAr2V4NN6Cdr6ABf3EG57h44L33pznAELwsGjigZ3s53Y+VY7q29pOXDsGLiWc4+ZWgskwoGQ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5eca3537-7fd9-41cc-0294-08d5f224ff8d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BLUPR02MB083; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB083;3:RhfHe+mAjxEBZuErez4R2lGjBk+TiFOabvAq+C59ocpMtJQMjhWHkMZiK6vb1NXjkKLu/c+ybsItfoKTZR3Il2cT2al/wC3vUedmQ6WFmtqlk9vh2pMp1Fg/aGvFWkX2SM34VNGKu3F4kKwKn9i1P5UmbeESDb5IWcy/MzpYcW2o8KV+AxD1R0fFSxj7jAbPj5MISS3HK01qheywg1jL0DGBa+lZcB8SU33XwYXwPYq6wEmWl4g7vGk5vn56AaG0csgrhmnwc6IwzV2de5bebCx3aBhGN+uqAn4F0PHhuKTHEz6ZOheeMm1X3SHFs+Ax8/j+omyDVs31m1Btndozix7N4c6jMuL4kliTgmdzlnA=;25:Ts1BWhmrNhVJuaWCu5BrN1t5KRBRxZxB4rgi/N+MT8vYWd7/ZGTFUKFV+62lIRf5LPFEJU7Tyo0WG+DUj7M+93IoT9hj0P3twCuEeqoNQTECG8pBItMl/QgPmD+f6h8cx5q3poxNlZJQuv+tusmfdnz9RS7R8Cq04KNPGo6b8up6/+Xp4MDlSocu7HIRzuasSlmZYyOMAEk7xNSVBg4lWNBi9m3Uk2G7GUY0/tjyizWIVq1u9a7P9CRHRCCIV8/spDmKRrL4EzrbZXDil9UtFvngA765A0Tzkm/ezytCznPGTsE6LCqsJzey4lEEK0uEZwZibb9PiV7XqXc/w9HBZA== X-MS-TrafficTypeDiagnostic: BLUPR02MB083: X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB083;31:ZbXHAWmTLbWbuscHSXjzLhAiMNj8k/Kyoa4+CA9oAt5QndhBCo2Osi5F73fPjmoa8cRG4xMmlxsfCPCho+yY3IikL+wTVdXVAHF6SX+e+a4BCDI6UbHymsb60o7ffOgjbwIHb4ZXWtL/vfuLL3XvYh5g9oAf6JILHP2t8e7WC3x/YyM5s/O4SgWFIoDRHPrhJGlOz1NbNWZp1dByn2KPd5SCTX0qbZbG7zQZmTlDsD8=;20:TVU9O5dt3XOGUXznLE6RoDJFuMX9ssk8RRet3vRiov0cJvbkCU1cMQNYe+v6+hO3ITv8GG4bwc7BIvc+NrcMOZ+JUWs4jqzFmcbz6doKh0Thd0GHinKjAbzCemOxB62ar7Fc2jDgVSULodcnkAX32IOqMA5xVZP9AR2OtUEAH0gZog1aoIu8O43aVX8zBDtdrg8n0M1nVngteSTBbAU/3ucO+Kw7CMZTVLKF5ynO1KH2iKH7dyd/VHzIxqW9OFl6ecvGLp95r3OWuxa2YpWUecmFYrUFBB4qpEjK4s1rqzQRHEaCA0s1HjBqZho4B02w/TXzhe+F5VcqsnHocHI1PVRBtlFLdM2JhJl0zyD2+qzaQDS5bsod8Cuyx+wnVbI61wMiDU6cq7vqwBqd/4PFqrj/Y2uQMfQbmjhjaKUOKoBvv0Na5x4nqrOD8B/rWA0XCIXZBXCi1WE38Xg6PrtD4ZT8cvwil3OL+vqsmIQlDnv6qLA+utmtS1WjW18VDxhs X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93004095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BLUPR02MB083;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB083; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB083;4:F1bJ6pW8LgaRo4wVFE9KSOsr//6iFm01vuEOg2+iyJlKGXBG9vnA+wDJh13MUnbWdPwRGPmLV+unNCd1XgxxvFuABsbQYd2g5VPcuXWIpOGKPLewn8aBBMA/1uHV5UNbKWrdEKpG72grOudH4WGQamguO1XNoDe5Sr6OsSzN/6G6VWdsOFinLV0X1g007FD/N45HZYGHzD3A8zbPQNcXlCs62ZdXQAZKIEvovcQSoVUuYup4pdi2xGA6tW+u0zR18FBKc3mnH7vkYdjqiNnQhA== X-Forefront-PRVS: 0744CFB5E8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR02MB083;23:Zrpr225c8zsF8/NnM09NLgsxhLAk2IrJ5VnKZyj/7q?= =?us-ascii?Q?4Tm7753/0+e46Q3vgCQwMZRn40hsr+xVcua15l27ZVGW9iqtEmA9JN1StiNL?= =?us-ascii?Q?Oka/HP0L+QhkZfZkB20IBOet8AlHoq3EIlb7/Vhx4McZaeMAnMwR2OUOzF/6?= =?us-ascii?Q?v0D7RxwWmNos7lfiUU6rh5yMec1Brf4JGD5zIJVKyGovrXaxffCdm3NQHQML?= =?us-ascii?Q?+iqL6/z/gjF8sdYAc3DDgrnuQjThhmFxz9K3Q2QxXIfRrY1KCuj/puw8e9W+?= =?us-ascii?Q?36aKqn6rJymtHsmUGS6ExV6+PDW10iHGhH3kF6gq3l/7feJYuaCTu5AEncQx?= =?us-ascii?Q?O6AWcPQiV3g3sOf8AQhEA01qmeXccw0dQaFmiBT61+cztoCwjBSrkVPJPa9c?= =?us-ascii?Q?Uxsne+N5y61UUb7/U8ufgEzynxmjPNw+BcifqhqL5c2pb+mD1jM8rnpebGRV?= =?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u0BK0s9XAdvrYKCsP9kFb6O/7MT8dIueT7jX9qn7 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 11:51:45.7500 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5eca3537-7fd9-41cc-0294-08d5f224ff8d 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: BLUPR02MB083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patch series fixes the broken BULK streaming support in dwc3 gadget driver. Anurag Kumar Vulisha (8): usb: dwc3: Correct the logic for checking TRB full in __dwc3_prepare_one_trb() usb: dwc3: update stream id in depcmd usb: dwc3: make controller clear transfer resources after complete usb: dwc3: implement stream transfer timeout usb: dwc3: don't issue no-op trb for stream capable endpoints usb: dwc3: check for requests in started list for stream capable endpoints usb: dwc3: Check for IOC/LST bit in both event->status and TRB->ctrl fields usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints drivers/usb/dwc3/core.h | 7 +++++ drivers/usb/dwc3/gadget.c | 78 ++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 78 insertions(+), 7 deletions(-) -- 2.1.1