Message ID | 1536418986-16609-8-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 8CE2A6CB for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 8 Sep 2018 15:03:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EB4C2A776 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 8 Sep 2018 15:03:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71FEA2A779; Sat, 8 Sep 2018 15:03:56 +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 D4C7D2A775 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 8 Sep 2018 15:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbeIHTtx (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Sat, 8 Sep 2018 15:49:53 -0400 Received: from mail-eopbgr730076.outbound.protection.outlook.com ([40.107.73.76]:19045 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727608AbeIHTtf (ORCPT <rfc822;linux-usb@vger.kernel.org>); Sat, 8 Sep 2018 15:49:35 -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=Qz3na9iWZchYjpyX2mh0Owz4vmHzUIGY5zRph6sdHhY=; b=Ml9BC6eMpYYomC5K16sQnDUKEgkOSnCCML9f8m+4jJfq7pkGgHjyW3S8GwI2JKq5GEtt9gXdndrUk5Bl4DjEUyjX6Ww8pMTfZBlquqfyI2qwuJh/MwvLmRpSBUwKQ3d9+iFIXBxJiu0JNDTTPbMqTda89HjUmHYxrzCtmb5TI+Q= Received: from BYAPR02CA0058.namprd02.prod.outlook.com (2603:10b6:a03:54::35) by DM2PR02MB510.namprd02.prod.outlook.com (2a01:111:e400:2422::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Sat, 8 Sep 2018 15:03:22 +0000 Received: from SN1NAM02FT025.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::204) by BYAPR02CA0058.outlook.office365.com (2603:10b6:a03:54::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.14 via Frontend Transport; Sat, 8 Sep 2018 15:03:21 +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 SN1NAM02FT025.mail.protection.outlook.com (10.152.72.87) 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:21 +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 1fyelc-0002ch-MF; 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 <anurag.kumar.vulisha@xilinx.com>) id 1fyelX-0004pQ-Ij; Sat, 08 Sep 2018 08:03:15 -0700 Received: from xsj-pvapsmtp01 (smtp2.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w88F39JW031608; Sat, 8 Sep 2018 08:03:09 -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 1fyelR-0004of-04; Sat, 08 Sep 2018 08:03:09 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 2A75A60493; Sat, 8 Sep 2018 20:33:08 +0530 (IST) From: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> To: <balbi@kernel.org>, <gregkh@linuxfoundation.org> CC: <linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <Thinh.Nguyen@synopsys.com>, <v.anuragkumar@gmail.com>, Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Subject: [PATCH v4 7/8] usb: dwc3: Check for IOC/LST bit in both event->status and TRB->ctrl fields Date: Sat, 8 Sep 2018 20:33:05 +0530 Message-ID: <1536418986-16609-8-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)(396003)(376002)(346002)(136003)(39860400002)(2980300002)(438002)(199004)(189003)(305945005)(336012)(76176011)(106466001)(6346003)(356003)(26005)(2616005)(36756003)(51416003)(50466002)(63266004)(48376002)(478600001)(81156014)(81166006)(36386004)(426003)(6266002)(42186006)(16586007)(11346002)(316002)(103686004)(50226002)(47776003)(52956003)(446003)(110136005)(54906003)(107886003)(106002)(4326008)(476003)(486006)(14444005)(126002)(5660300001)(2906002)(90966002)(39060400002)(8676002)(6666003)(186003)(8936002)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR02MB510;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT025;1:kx0FgZlXOiRzKd4R7BpPbAHZrtiE5qBeSS0iVmQJq4gJfUEFlmSjb5vTqYYIe+lNJhZA3Q5RunSHBoiU6LK3Yv/2D+63HVYkQDa/lfYcvI20XOI395C93GtkBO0H7QcZ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3bc7bee1-06ed-4551-08c9-08d6159c37b7 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM2PR02MB510; X-Microsoft-Exchange-Diagnostics: 1;DM2PR02MB510;3:s+IQst9e8zclytvgaN79ld5JCiuKrAnxuom2VVF98AEqg4CsZCPkIU5rYABv9kTJDOSXmaSkXZ7iFO/kbGYvePX3aDGtylMs6Awn29A6hr5JCvCR77Pgik2rwUpnHue7iGIahrlc6J8oo6vQYrPpZvyiENfoWLuhPQK4/+iuQ+dFv2j8Z2Ka1tX7zIkdso5XWETyEQRXLoGQ6eGBg4lzy2g7adHPPruwDNZnmQdp3GZmmKTGrO+LaLWLgoelW88sfpyzmCa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aH57qDo+qQXHoG8BZcjeb2BDnPWClX1Q7vbs2yf6GC0j4BKzNqy+SoMhsnqwQrbM/iVmk7QQMtIOEqplk70UChrEQ7F1wuh8n+9ynPklHOE3bjo6SK1OWRybcb4rlfyRzYw/v7Pi05Qvw/HoaA9tPqgJ4Uj38twEMQvaKM6WIt6/geVe869p X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <DM2PR02MB510B749A32934A5C6CE0662A7070@DM2PR02MB510.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)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(3231344)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699050);SRVR:DM2PR02MB510;BCL:0;PCL:0;RULEID:;SRVR:DM2PR02MB510; X-Microsoft-Exchange-Diagnostics: 1;DM2PR02MB510;4:o/M1ofztGQjWK0wLvB1nq8eZad+mxbi589Bh450509LhNE6wrcFWljlUJ0eLx/oIEDt15VJIFbQLfy+Hv2y4sO3aZBxSDeXNVlPafBLp8dgEYFWbn1MepJkYrtTY7RbW4JXHK5obLRx9zgywjG84LgYuVbLyi9QC6Spp6gdDajvxnSXKJ6jZWD+YB3c1QGL3a4NRflrkYy8JPDurApJvKfkGD0u93sNLJqWSppHBOx32c9OHKi7tgvn7QlA5LuuFBx2S/NUJKJ/4opKWfSkXMXo6c19b8KGKdI3v9tJV3F/XJSKlI7OXnfPh5omj7IvQ X-Forefront-PRVS: 07891BF289 X-Microsoft-Exchange-Diagnostics: 1;DM2PR02MB510;23:31p9q8/pPjGG/cDhKm79dP278CsY3ASst15iVPRcUM5JX9Kl9X0qhIR53k2lkX3I0Yk6Tb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cNnVB0wWgh0vcwdpudJq5UzwadAGYAThCi246WKCN0wtI0aekzLHMnYkK03UKDEE8 X-Microsoft-Antispam-Message-Info: d+7pBimbv+UAv6byzl0H/m9OWxJoM0i2lbS96GjrbCMuaeJ/4+KwYegbm35GQMnQGzaSmG3jai0gjUdFgbFRqU+kkPCULPMe4xvCsXbze7XI8zz0TP8OQzLZfse/6UGhBrxZMKheYLSZvmnSrapVLVXN99fcArsjl8gYhmReQCtMv4dPHyqhE7DwE0bXGoFfSeJwzNou9Ch0cRmSzv75ZY3yf2nRROYYNDsL2hulrtbiSefeySjhlxnwAisO8ROsy1tHHnyaUALlbCe0hPrRQ+Kv1vId9zpfvvZMbZlH2EtVPaPYteQF1EbtLCM54LsZtZC3apgoBxVEnQ03znp3pS9mfCvEztNldxtjdYgPoyM= X-Microsoft-Exchange-Diagnostics: 1;DM2PR02MB510;6:vAW+I80CQl9y2jcQV0kLx7A5Xdn/X6L+/bqGVMGqE98cs/ORcRCD6rSXG9EqZ05jvlCEa7zLWl5FiKbRhxEStDEezvZtZg/99vY4pQS1dAfjM6o15FyPY8TTS1FPw1aa87BMapZuQl3LtrYMGUWgT0LEgpI8XROLc+A1KQSCY+b5jBurXva4ijBoCc3uw+eFNnsHNVf7//ketMc7xqAeKdrT79dIut7r559OxQMFdsbo6umGG6ugKNOn6KV4hy68J0nbPwKffDvMKI6NGwVUPVnB6UB2dYsUnKkOXMsNjNTVzXdHfOWQGlIW8yubLRPixkg4a6vfjklepprIDbv7Q28tGFzp2pIf1UrcZKEpO7BYJF5RZYm9f26VNSecI6eborQ1IMVJFvcr7pe8Gu9rz8QJkc+KK65GwSqXlLFZ/McRgIZzyLvL8saGpeYd+ToZmAO2wqmFGstbZM5AzKeuxw==;5:UoQesP2L5OstM97/tQ7dioRgQ/DoXaTrokXUmaj+X41bnZbQukMdPm/pLs0zRgkHudtai6n01734MCKvtgOwTt2jL20zOTZr/wBxMoWke9eWjpGUN6W84crBkxJwk8GInPL7aNjB505DcI5lON8N6B1QtVbbOUjBWXgTmZP7XdA=;7:jQj2Db9NsO+pip5hDulrN6Dg0YjAiSCvC4w3VH9gQhYyYrRsLeLh9Yh6+/EU+f8JOC0Y1SGT9HVQf6b/o7PB31QxMfD/DO1P+o/0XPQqe/Y7LSUen+/i63quKkGZKvt4tV4rwpClpc71f/XrPp9VJtoAuq0CtNfS0sDrlIH6NyJ/wpo7XNcHGty2Nx/0a2F4k9BLSnObRqx0ls8hgy6k2gmicpGN22SE8/qb4Yn90ir76QXSd2I7kNs6X4dAZs10 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2018 15:03:21.0515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bc7bee1-06ed-4551-08c9-08d6159c37b7 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: DM2PR02MB510 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 c50cad8..6b6bdd2 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2299,7 +2299,12 @@ static int dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep, if (event->status & DEPEVT_STATUS_SHORT && !chain) return 1; - if (event->status & (DEPEVT_STATUS_IOC | DEPEVT_STATUS_LST)) + if ((event->status & DEPEVT_STATUS_IOC) && + (trb->ctrl & DWC3_TRB_CTRL_IOC)) + return 1; + + if ((event->status & DEPEVT_STATUS_LST) && + (trb->ctrl & DWC3_TRB_CTRL_LST)) return 1; return 0;