Message ID | 1534508695-12642-9-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 03C1B109C for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E443D2B29B for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8C602B4E7; Fri, 17 Aug 2018 12:25:53 +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 641BC2B29B for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 17 Aug 2018 12:25:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727562AbeHQP3B (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Fri, 17 Aug 2018 11:29:01 -0400 Received: from mail-eopbgr730078.outbound.protection.outlook.com ([40.107.73.78]:37312 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726376AbeHQP2X (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=/70A7vEtcvWJF0usoMkKpzmi6ixFyA7R4CLqBIkp1L4=; b=KwwKwjfzt5fo7Kuao7+10cWGyMRONiXdIkA37IWNE2/4U11PO+H0/zgUjzFtX9wqrfPd52CXD4xKLpvQYQGtQ+YC3NZLuYuzDnGcFqnS+jAfP9i/gAnJcIVBbSO00qZnYExZMXM7JIitPLcW+Udt5SYMSszA8sa183mUMTHgDJo= Received: from SN6PR02CA0013.namprd02.prod.outlook.com (2603:10b6:805:a2::26) by DM5PR0201MB3510.namprd02.prod.outlook.com (2603:10b6:4:77::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.25; Fri, 17 Aug 2018 12:25:06 +0000 Received: from SN1NAM02FT059.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::204) by SN6PR02CA0013.outlook.office365.com (2603:10b6:805:a2::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1059.21 via Frontend Transport; Fri, 17 Aug 2018 12:25:05 +0000 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 SN1NAM02FT059.mail.protection.outlook.com (10.152.72.177) 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-00030u-7F; 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-5s; Fri, 17 Aug 2018 05:25:00 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w7HCOwdQ019103; Fri, 17 Aug 2018 05:24:59 -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-0000Th-IW; Fri, 17 Aug 2018 05:24:58 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id A35DA60508; 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 8/8] usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints Date: Fri, 17 Aug 2018 17:54:55 +0530 Message-ID: <1534508695-12642-9-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)(346002)(39850400004)(396003)(376002)(136003)(2980300002)(438002)(189003)(199004)(217873002)(36386004)(4326008)(52956003)(48376002)(36756003)(103686004)(186003)(26005)(14444005)(6346003)(5660300001)(336012)(8936002)(50226002)(47776003)(107886003)(6266002)(486006)(446003)(476003)(126002)(426003)(11346002)(2616005)(39060400002)(50466002)(106466001)(356003)(478600001)(90966002)(8676002)(81166006)(81156014)(305945005)(63266004)(2906002)(51416003)(76176011)(110136005)(106002)(54906003)(42186006)(316002)(16586007)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR0201MB3510;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT059;1:Rdiw3XiCpRjNdxSTipyVVbTPoS8u2yh+XwLTHzpHNP6LC4txVqEqrbJRtY8GSotvkrgb7Q11ROfOc4auRP7i0xKhlnMgRrIVaRUZW8njqRNGzKKAAt/vBxckclpAA3yE MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f2cdfc4a-1651-4d5a-32cd-08d6043c76d2 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM5PR0201MB3510; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0201MB3510;3:BzhiixSl1liDYeJxXYGPTKpWgLFGZFiRqJDPxmVDpBeQPZct8o8P44+6/4eSqcR/CVKSSOGRm3yjK68bEVJmUifg2LB9WtdcrApmP86vI+6CHCAIjjM75uZ7lY5tIxpGeQLill5m1OdrqiLediN2a4L+K+g18x534qbEuw53Tlos2P6tu7caKFdK44cnDke31fKyaY2XOfuM5c6f64BPQ6BXrCnB9RFgqLyYM2UEAl4HKF/zzcYC/iBPjg4eMY6AejOds4AA4dGE5ZyhIOjSWWT+l7/dwZsMFUYz7tP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ZwCAIwbmIvRIH4pmNkwEwglGM/1eyQ4lELr67XcW9tRe2muxq5Ly46HFeNkQ278P3hYVWyUWd/HKpdTFgwfU0dU1dgSWvURemnTjktZ1cxQKqr1oP5cYQ1Rqb/pBsFREDbapBrDqJrrr1DQAj4pAUnAkzYyXjFWb X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <DM5PR0201MB3510B1B5B53118897268FF6DA73D0@DM5PR0201MB3510.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)(93006095)(93004095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:DM5PR0201MB3510;BCL:0;PCL:0;RULEID:;SRVR:DM5PR0201MB3510; X-Microsoft-Exchange-Diagnostics: 1;DM5PR0201MB3510;4:xLjrNlmGiNT3xEcmW603Oe+Ng+gERkrsfPotgzt4IYeIjoq60M+efknrIy8GnPc6BEZpNNZ3UggvNwoSPiTn2tSmV35W5KUFDwjUWSGSZcUi1kkcWxbNScXhofVTjJjhoSQWUSYUZ1Uspa1tUrwWHO5sEP0zeLw+bkOqp5Nuo5/+DskeUO+/APaCUsdBJVqQy7Kg0mVG+DzgLvcjdq++8IvsC/q+65GmT7MkyWF77jYuNDzdheH3WdoA3uJLiNbQhJlFbBjeAZHRNge9siQcBAAK7pkaIapx+xPs/dOR+pqtOzy/P0X6MVNSBTuRa2N6 X-Forefront-PRVS: 076777155F X-Microsoft-Exchange-Diagnostics: 1;DM5PR0201MB3510;23:+sC9C4NGnzi+6mDI4GFuBc7nHeMik8PfPWoaE9kKUR2zxNI6FqaukgSlBfK+j6wGMROmomS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cSW0Y9VVCcJK6ZK2vkvIb2ydEaAv13KAzKD0WltxqK/zaI4/x3eWRWbwQNPJY6n2MAYc0I=;7:20mMS1ehaKK1a/A+jN6uzbIcO+TXoz7u6dkOL29SLCPbCH3xlrUe4soK8jKCaAv2FZeE9YQ8DwLe7Ksoc4x4x2qgxqOjPc0udK607Yixc2+rl9/8L/oktd26rg6gfrgC9GsrUVZLGVZndqynMAK33VymTbJ6udxcpVSQkB1KmRClF0+0iuTcfMGOiau1DaMkQWrnuq2g+IBrZNPetZlerfPWTtWhCyqgCWMkUAnnC8V0elm15D1WkSvl1rlWHJ4r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2018 12:25:05.5508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2cdfc4a-1651-4d5a-32cd-08d6043c76d2 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: DM5PR0201MB3510 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 1b1bc14..188b043 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2413,7 +2413,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))
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 <anurag.kumar.vulisha@xilinx.com> --- Changes in v2: 1. None --- drivers/usb/dwc3/gadget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)