From patchwork Sat Sep 8 15:03:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anurag Kumar Vulisha X-Patchwork-Id: 10593115 Return-Path: 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 D14FD14E0 for ; Sat, 8 Sep 2018 15:03:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C06292A775 for ; Sat, 8 Sep 2018 15:03:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B442C2A779; Sat, 8 Sep 2018 15:03:49 +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 4DD2E2A775 for ; Sat, 8 Sep 2018 15:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727818AbeIHTtx (ORCPT ); Sat, 8 Sep 2018 15:49:53 -0400 Received: from mail-cys01nam02on0047.outbound.protection.outlook.com ([104.47.37.47]:37011 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727607AbeIHTte (ORCPT ); Sat, 8 Sep 2018 15:49:34 -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=BEtq3yiuelDpEsnrtGaDUFtbl/A2Uu6Tp1oAaerMSSY=; b=fBXmkY8nbE7ylLnk9aU1cNjwIrChEtDUdL1u8a/0LXOJXruD7C92vnGFVabEWmtlA/mBHYjE6cYWlnKc1DnHoDPXhvt4JKmaG0D9nosdOuO38bv33TdR6y6oeu52OkwR8/Jym+Dx90JTiBdF4YyedsITGDuFtMpyHO5k17nTBsU= Received: from SN4PR0201CA0038.namprd02.prod.outlook.com (2603:10b6:803:2e::24) by CY4PR02MB2680.namprd02.prod.outlook.com (2603:10b6:903:11a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Sat, 8 Sep 2018 15:03:21 +0000 Received: from CY1NAM02FT020.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::200) by SN4PR0201CA0038.outlook.office365.com (2603:10b6:803:2e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.14 via Frontend Transport; Sat, 8 Sep 2018 15:03:21 +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 CY1NAM02FT020.mail.protection.outlook.com (10.152.75.191) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1122.15 via Frontend Transport; Sat, 8 Sep 2018 15:03:20 +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 1fyelc-0002cg-CB; Sat, 08 Sep 2018 08:03:20 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fyelX-0004pQ-6a; Sat, 08 Sep 2018 08:03:15 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w88F3AiX031616; Sat, 8 Sep 2018 08:03:10 -0700 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fyelR-0004oh-Qy; Sat, 08 Sep 2018 08:03:10 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 4A39360498; Sat, 8 Sep 2018 20:33:08 +0530 (IST) From: Anurag Kumar Vulisha To: , CC: , , , , Anurag Kumar Vulisha Subject: [PATCH v4 8/8] usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints Date: Sat, 8 Sep 2018 20:33:06 +0530 Message-ID: <1536418986-16609-9-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1536418986-16609-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1536418986-16609-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)(396003)(136003)(376002)(2980300002)(438002)(189003)(199004)(48376002)(106466001)(8676002)(5660300001)(90966002)(356003)(50466002)(36386004)(42186006)(8936002)(63266004)(305945005)(54906003)(110136005)(50226002)(316002)(486006)(336012)(106002)(103686004)(11346002)(217873002)(446003)(126002)(52956003)(4326008)(107886003)(478600001)(81156014)(16586007)(47776003)(39060400002)(476003)(426003)(51416003)(2616005)(81166006)(76176011)(6266002)(14444005)(36756003)(26005)(186003)(2906002)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR02MB2680;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;CY1NAM02FT020;1:3e6EBwYM6FhYTJ4depUDXWuxGT+XBwWpMWkcxxd8PHMqhpELTunzjDfQKD8d95/X4ciOpJ2vpTppMeOxHBydoPO0iyeyevFNmhOsOr6ueMUzdTwhz731K7i8pk5rwJog MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9e4bd90-54e2-40b2-2133-08d6159c37a3 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:CY4PR02MB2680; X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB2680;3:wsNh7MHLqcdOSSL5kbVWLBW6/w4p6huwerPsV2bM5fZ8LBJXIHpwsLGJ+NxGYCpU9fbPidXo9kpw/QQYPxrs2FCjHK3CPvSPdydHdlL354Pmc8WP59Da1Ce9u/2RN9goZeUkAcmoznBJQBsionEDWrt/o6L/gBiUZplLlO2yICIK3+45lKWWekCNW8nz2xX9ZeDLqzU+TBSggfv7+7nMVQi+kWLePKqT3Pghf7GiImWOUoePyn+aglKJjGTj9YlVxRZXh1KCL+c30psJqxx4F7ZR+NxOmD3TK2nMfmJHNf8TWCcoMAhikSOhtuLSGRnBhNGvJRDGSdUU3OxD92PaTsqhPlU6yFBeSe6PAc4GZo8=;25:dudt5+LCd8mNNzaUawcubYyB2OS2CPnDH/HwF3kexyh/QT6R3yawU+XxahXLsyJrOtNFLmz4H8SIOLVabC7LpmmAGnJSsZzifK55P9yOVHHPz+U2QmhmyazHzETCE6ZZPwvyFyM6t/0klAlun9epaeqh3z/iIddl34O24qUWpjQVojcNK0aXoIoSpEZmRoq5NbolPr2K++/6W30vZkytTsmDpcF9PzULUpZsed/Y88i8JnGas5EQWeTm0mJY2FsCLaU5pqh13g1rXXfRKfGdZxSRzWAxevzC65HHBylBrjNn7qP+AgzlEdxoTxJiDrQZnbM8g9H2BhfQY22R7JFCRg== X-MS-TrafficTypeDiagnostic: CY4PR02MB2680: X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB2680;31:Eplr49cI/CoslofKU9mrlblcXUCwgJGa3cNkxBSkonlby995F6FPdfbJI6CbsWZfkTvm1bcsCQsxNkDu7op7bq1i8Aue+VYFy40R22eKURPhk6ZpluGHwpLQ7QQnnEy8wceYd7JCc7N2cj2rySURxmAjGJ7MtETjp4Fg8+RCAfJm8gLtaRgmMMaDXtNuYvvzKACx91ZSKzH7/6DvOZk5sB57+bJdU/DD72WpvfmdwQU=;20:2DnFDu+Q8JIB2b7MmIaqKJKpTHhfPjqLiIjMu6iAlXFI1lrTy1Oywou+tElzSVuvoEHUmM/F+TxGbe0jYRhEFrseTSm9SbEutUZjMptFDH7tnkWJEgpQnUtgviyMGDkPgJcQje8oDP5xAJkK3+3UEcWwFRNKL0JUN7Kxw2Ap2hMpn/AN6E/kAJzCk2Ok8Ri864M64j9VwniN5DAX1z0zDqfbjWhMa9ZojkBWdkENiDhinHQzUQNkS2D/3QPxHN0JcED70dEa96CBATvFRZCFWdRr4ZoQsusUe2COhkQTdEhde3gJunNIbcNOztVBWIapzJHrjHqSzpsoohQgmL8blf9ghhftCtq1FODcCaouKzBNbOSc0mkhLZ0p+l2t8CQAWrLOBcEd6TaIgfQ+l8ptSEguzzJvByLbjRhzR6Q5kUC8OczZZp0UuC6vryPj7Ihx1+lOhrVyKcpb17eJKcZsxurqMD29KlKvC3JJZ/vWYPuZmhDWu2Yu0sdVgYIdXjwJ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: 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)(8121501046)(5005006)(3002001)(93006095)(93004095)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699050);SRVR:CY4PR02MB2680;BCL:0;PCL:0;RULEID:;SRVR:CY4PR02MB2680; X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB2680;4:RrZ+KT8+3njbQUP2mmeR+fWk0j3/0OFpvo7nFIvrl6uMbM8hOIYQ3bIXN5mzKCUBr1dYe0FMquVKYFTOLhm2sMd6L2zmBZRjdLP0AMQCdDQ61BOYGeXlCo76U7VJ07titCKgizPUp9FdqA4DGilIOdA5wJsKdeNOvxUSgzsfV/euRhiOMmGbqyq+wvQ8Q+LttBmeHGziMZlhIs2d/lMJ79NhBY70dh2bsvlxHuFhtk5rhqcw+IyZGgoIzrLDH75O9Z6Pb8vSEjGpJV1SafhYL2DHjLoUFHx8pMUHds4xTCrFDj1+aPABPx3iYwomcnh6 X-Forefront-PRVS: 07891BF289 X-Microsoft-Exchange-Diagnostics: 1;CY4PR02MB2680;23:k9tmzrtAtL6Lz4cRdCtRpWzRfO5kK6HjkEXlkyg/Gr2Q31E24pyQRd0XWODMSuzMmQV6xcoKVG3FpGNOagm5wHL2gCZkFBz5gPUxdhg9VmetIEN1GoQvCP+X8Ws9tCuxez/k8it/wCf6Pc95f1uexpFYqxG7ADr3lVS2wcEgknV93VqWW14folkTZir/jowxlk8seWE19tm1q1GJAwn4bVwTFujgEpxWoa4rlR4xFcmQnv2pbIC53k7gnmiA1Bh2clq0LkHlcrBBB7TSNyKexN8/wfN6iOb3B+muwbofrz/iNHioDaD3Gp1H+H5f3IUGWOPg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Tn4KGs96ebN5xcgnAIK7v/9B6aQVmoVdT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2018 15:03:20.8425 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c9e4bd90-54e2-40b2-2133-08d6159c37a3 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: CY4PR02MB2680 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When streaming is enabled on BULK endpoints and LST bit is set observed MISSED ISOC bit set in event->status for BULK ep. Since this bit is only valid for isocronous endpoints, changed the code to check for isocrnous endpoints when MISSED ISOC bit is set. Signed-off-by: Anurag Kumar Vulisha Reviewed-by: Thinh Nguyen --- Changes in v4: 1. None Changes in v3: 1. None Changes in v2: 1. None --- 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 6b6bdd2..2c9e3ab 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2422,7 +2422,8 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep, if (event->status & DEPEVT_STATUS_BUSERR) status = -ECONNRESET; - if (event->status & DEPEVT_STATUS_MISSED_ISOC) { + if ((event->status & DEPEVT_STATUS_MISSED_ISOC) && + usb_endpoint_xfer_isoc(dep->endpoint.desc)) { status = -EXDEV; if (list_empty(&dep->started_list))