Message ID | 1532519491-19502-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 884E917FD for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 25 Jul 2018 11:52:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76C2429C76 for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 25 Jul 2018 11:52:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A91C29C81; Wed, 25 Jul 2018 11:52:37 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2815E29C7E for <patchwork-linux-usb@patchwork.kernel.org>; Wed, 25 Jul 2018 11:52:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729001AbeGYNDV (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Wed, 25 Jul 2018 09:03:21 -0400 Received: from mail-eopbgr690081.outbound.protection.outlook.com ([40.107.69.81]:36106 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728681AbeGYNDV (ORCPT <rfc822;linux-usb@vger.kernel.org>); Wed, 25 Jul 2018 09:03:21 -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=O7c+KM8Rb3tt0DxqChqzq/fiwlMuFBK8hK36bbHR6c4=; b=FFJtVSDJUXMuyJcrjeGbJfl0bE+wj6W8R8TgALyVXNkzqW/Zr/pKTVV8GD6tJsaT+Ql/bKIUULjXJodCowBao+S3gxQ8DsyEHtlyM9/X7LyyZCz9SNkFJvLLqOX+TWE4FoxQjcgQ/+uAtTfivovJqPTylAyku/97VTMcZ1aIqWE= Received: from CY4PR02CA0028.namprd02.prod.outlook.com (2603:10b6:903:117::14) by BN1PR02MB088.namprd02.prod.outlook.com (2a01:111:e400:40e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.973.21; Wed, 25 Jul 2018 11:51:58 +0000 Received: from BL2NAM02FT041.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by CY4PR02CA0028.outlook.office365.com (2603:10b6:903:117::14) 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:58 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) 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.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT041.mail.protection.outlook.com (10.152.77.122) 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:56 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:43926 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1fiIKh-0004QP-A2; Wed, 25 Jul 2018 04:51:55 -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 1fiIKc-0006dG-4q; Wed, 25 Jul 2018 04:51:50 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w6PBpgJT027074; Wed, 25 Jul 2018 04:51:42 -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 1fiIKU-0006a5-AV; Wed, 25 Jul 2018 04:51:42 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id E66C660505; Wed, 25 Jul 2018 17:21:41 +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 8/8] usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints Date: Wed, 25 Jul 2018 17:21:31 +0530 Message-ID: <1532519491-19502-9-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1532519491-19502-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1532519491-19502-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.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(376002)(136003)(346002)(396003)(39860400002)(2980300002)(438002)(199004)(189003)(4326008)(426003)(50226002)(356003)(336012)(446003)(90966002)(26005)(5660300001)(76176011)(36756003)(2616005)(51416003)(186003)(316002)(126002)(476003)(39060400002)(14444005)(486006)(11346002)(103686004)(478600001)(16586007)(52956003)(42186006)(54906003)(110136005)(217873002)(50466002)(63266004)(107886003)(36386004)(6266002)(2906002)(106002)(6666003)(8936002)(81166006)(305945005)(81156014)(47776003)(106466001)(8676002)(48376002)(107986001)(5001870100001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR02MB088;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT041;1:EMi9oA/F8ZM0tDfKiehOZG2esD+mGj+qJmhoFIcWYa7Dmg1fYAm/Wl+7Lr5GGYC2B/roqJJmKOz6E2WaeL8oEDW8QdpivbX92zJhW2W4ThLZvHRSgVPb8tccKsElnHrE MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36399040-20d6-4481-b83e-08d5f2250699 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600073)(711020)(4608076)(2017052603328)(7153060);SRVR:BN1PR02MB088; X-Microsoft-Exchange-Diagnostics: 1;BN1PR02MB088;3:8lNKFKCE21MQIHTWhUU3EhFbR7+gGUs4QQqcioJobOOHM0KePo1yymk+RGYhLpt30opam1Wyug/m67bjCXYr5AhSo3+LSj5OzZWIhe7jXAe6AHyNXyTvOTBcDnxTzi6lokc6nfnuK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Klm7s3//0+QwMjHiwdMtx3uFe27hH3Bz4oMXCsN2JUZ4juzbhC0XCIuqvxEtZU8wTt7yKelK4nwTZS5cyUWzyMDJrcuQPdNO9yJNHr61XjO4CMWS9DMn94uaw7zAP/3/G03PUVkcJfoAroFn9kD5V1xafRiKWuzFDGVn8rmzuhmEMv/aVSdtnF8BOtxiRlKmzH60j5MiMlCXP9oToEYLIcS8UdduNCT7pJ3bH8xV8yzN2nYBErsEnHLA9LKfVxQR0oaVsghKWxhbWvVg0ljC+JVlTfRJVnjsLMTpeIJPTfOKetghTYkdqKxI24 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <BN1PR02MB08865225A0AEC5EC03568CEA7540@BN1PR02MB088.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)(3231311)(944501410)(52105095)(93006095)(93004095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:BN1PR02MB088;BCL:0;PCL:0;RULEID:;SRVR:BN1PR02MB088; X-Microsoft-Exchange-Diagnostics: 1;BN1PR02MB088;4:bMEGfvoXwp+r2C/OTOoe+U89mPleD4GAo7v/p6XZ02w6+PzrZQKQ6qrsAfTdRooXyb70dpk9SO6H1GaxtxCaO18hVTVbjrIBnQCgyQjCyxkmoB3I9m2B59dpcMwL8DwhszgLpG8dt8vh6P+CUc6dBobMQsoi3V22FOt+RIbNqZcKneAviQNkEiw7GJH0vmbmiAx19/tIekGC3W0IB/qFg2zQp8Ob1nNmotyFX6XM2KfqufGp6voH7pnmr3omyr3XVGNSpj0/r3dgw49BePoDll08x06ppIWQOql9M1GyXo6hDc5/tGS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pus3yBNJerlkl2k3diR5SGPwnA4OvWZdPCDTobChwTQHypIrDmK52778u1iPp3+S7WWZAZPyuE5SY9R2Bt/rQy2raQTvJDen6UG49wQbSZ3+VNhHLAQ5yUo+fr24sbLJZ1ixzzly1mHCNlc0zgo44Jpx4Ty1oJBrwJKStL5IwO4WYQQ==;5:QAgKRa/PqscJXOd4+hatFKeF8hyE1bhv7oOaBUopkrt2A+j0ckQNGNhwh0mwjaRRJCmrnL9DfZxbND14nRhRPwOeZCiucL5KtPGWHYoFIRIKFFfIDtNd6NOKt9hPh17IxSqLGm4REYHBckd4iAl7tV7UWgY2GpmgD65EmtpqJDY=;7:ifcQLK8EWvaDh8w9PHFw+qBE6QXLPUQNhdvQyWWSpXQoYPgnRGYsKy2opErZgPW4Nh0gwyojIEbzUpd1XtHztDZcdDi8S6zK17njeH0QitGpNnjM3+2MVMB9fpEDdMHCUb4u8KR4bTXxRZdPrOBVxmVnW4TrjcXLlkjYNRe1bEXcrTXl2axoqPH1HuUWY/0w5vSpnBhgTmhn+nqn+0iqnSS9pAgdP4LHH13LPS2MJD9jSK8/ZpeC58ufvOiM8Xv9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 11:51:56.1866 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36399040-20d6-4481-b83e-08d5f2250699 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.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR02MB088 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 |
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 1e5cd4b..0293be2 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> --- drivers/usb/dwc3/gadget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)