Message ID | 1543662811-5194-11-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 9D17613BF for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 1 Dec 2018 11:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C27A2E552 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 1 Dec 2018 11:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F8672E63D; Sat, 1 Dec 2018 11:13:59 +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 9A01B2E62D for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 1 Dec 2018 11:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbeLAW0L (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Sat, 1 Dec 2018 17:26:11 -0500 Received: from mail-eopbgr770045.outbound.protection.outlook.com ([40.107.77.45]:19088 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726736AbeLAW0K (ORCPT <rfc822;linux-usb@vger.kernel.org>); Sat, 1 Dec 2018 17:26:10 -0500 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=Rp77tRHbshE6gM70tc1rZJIZpkgzi9aInGfLWErF23A=; b=PI2GcbS4jmKyNBeH/kJw5oOt5TlApB/jN4PwN4ltukur4ToXo9E2urMX7LKraYXMlURbHo8P/BpmS5RNkf3NSZAEW8YUlW4v3xzq7WxkI1KGxphxmN/PBIxAZFlEI/+motCNZfpp0FsDAkgbnhO0qfU3BXui4T7bJCPI+qxS8FI= Received: from CY4PR02CA0005.namprd02.prod.outlook.com (2603:10b6:903:18::15) by DM6PR02MB4331.namprd02.prod.outlook.com (2603:10b6:5:2a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.21; Sat, 1 Dec 2018 11:13:45 +0000 Received: from BL2NAM02FT029.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::206) by CY4PR02CA0005.outlook.office365.com (2603:10b6:903:18::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18 via Frontend Transport; Sat, 1 Dec 2018 11:13:45 +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 BL2NAM02FT029.mail.protection.outlook.com (10.152.77.100) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1382.18 via Frontend Transport; Sat, 1 Dec 2018 11:13:45 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:46504 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1gT3DU-0005oH-E8; Sat, 01 Dec 2018 03:13:44 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1gT3DP-0001kp-Ah; Sat, 01 Dec 2018 03:13:39 -0800 Received: from xsj-pvapsmtp01 (mailman.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id wB1BDZU5003409; Sat, 1 Dec 2018 03:13:36 -0800 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <anuragku@xilinx.com>) id 1gT3DL-0001kG-IV; Sat, 01 Dec 2018 03:13:35 -0800 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id C0B8660504; Sat, 1 Dec 2018 16:43:34 +0530 (IST) From: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> To: Felipe Balbi <balbi@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Shuah Khan <shuah@kernel.org>, Alan Stern <stern@rowland.harvard.edu>, Johan Hovold <johan@kernel.org>, Jaejoong Kim <climbbb.kim@gmail.com>, Benjamin Herrenschmidt <benh@kernel.crashing.org>, Roger Quadros <rogerq@ti.com>, Manu Gautam <mgautam@codeaurora.org>, <martin.petersen@oracle.com>, Bart Van Assche <bvanassche@acm.org>, Mike Christie <mchristi@redhat.com>, Matthew Wilcox <willy@infradead.org>, Colin Ian King <colin.king@canonical.com> CC: <linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <v.anuragkumar@gmail.com>, Thinh Nguyen <thinhn@synopsys.com>, Tejas Joglekar <tejas.joglekar@synopsys.com>, Ajay Yugalkishore Pandey <APANDEY@xilinx.com>, Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Subject: [PATCH v7 10/10] usb: dwc3: Check MISSED ISOC bit only for ISOC endpoints Date: Sat, 1 Dec 2018 16:43:31 +0530 Message-ID: <1543662811-5194-11-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1543662811-5194-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1543662811-5194-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)(39860400002)(396003)(2980300002)(199004)(189003)(26005)(336012)(81166006)(186003)(81156014)(14444005)(36386004)(51416003)(76176011)(16586007)(110136005)(42186006)(316002)(356004)(106002)(54906003)(7416002)(478600001)(50466002)(39060400002)(4326008)(2171002)(6266002)(6666004)(48376002)(107886003)(36756003)(50226002)(106466001)(486006)(8936002)(426003)(11346002)(5660300001)(126002)(2616005)(476003)(63266004)(446003)(2906002)(52956003)(103686004)(90966002)(217873002)(47776003)(305945005)(8676002)(107986001)(921003)(2101003)(83996005)(1121003)(5001870100001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR02MB4331;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT029;1:Db++AxeXhQcH0cupZqho2HhaYAjR5/d0aghGK4BYxJhQFIHmLSmf0X+0jiE1PO7cLXUpfLI6mIHCP5yx/cW1a0raVzMoSenTdreQOdDXlkXri0RP967MhUfDL6N/fxcJ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4b00f2e-f29f-42c0-a6f3-08d6577e0f32 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4608076)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060);SRVR:DM6PR02MB4331; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4331;3:yazhDoI9qJsaGwnQmnYSljAknEfE2hihJ0EVaSEtOfyUDoAr/gMBRHYJyM74CPHbah72HXfUMu2dznwktbg15O/jzN5skkKpPvJ8+LQg+NyMjdaLdYl9YK2yS44rXW1YLGzBnGv+AX0Wp0kYPVoaazpd34+wPrFwTllM2C+34CLca6BBL3Y3SjWUZLLAfCCYsFpdXSCpTiYwh/b7Y4xILw+amw0LN8w8PPUvaWlNlrGF9uylwuwrBN1EpnwQ2byAs/9aNc39Uliiub1UW8C0EFOgeXQD8QutXkInfziF7FS/Bh53Qd7eVYu00OYKR57N+GbdZCIocVYmqTDU13U7RVbvJAdRyoW3GXwmW1qs/Pg=;25:wQvPxBkuWcbWm6AgpU+dH7iKrHEhjRxV2WmpEs6jpe/V3LDkHhKdUN7ZbIftsPvjKc9zTCG0Cv+iIoSrhg93Yz40Im+xEsN1AMVnPXQQZbRwj0lutp8b+oRkLO5nQo8uQKWiRjXZouATKN490ytm91neUucsxZGSw71RSCXFnXVXvzouUzsJgytqAfKFu5mMXXLtvpSXyOIOC/JxrN76pbENNZbIWwxGC4n/ac35mz9NIw1BuMU39whRzQAxitd6pTEYvSClkRWsl2maN+aM1iZUr+KBeNf3reZ96b9GRwGJ4rwQerfUtvkSpxWLld9Mu9UDfuQPQsqZWRe0wRYiWw== X-MS-TrafficTypeDiagnostic: DM6PR02MB4331: X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4331;31:gq6bnHcNuBVMU9XXW+FRw4Rr8S9ZcU3cyFcXtYo4M/XXiYw3WQyO3EwbmClp1U7oMAOopEDadKdarCSL5XPrQHYICrIrUSI2y/QV941l4IAtuEted3cCXA+3376B24i+MUiQP1D1e88bW2nvjJ0r36WTL/fjf7VjQ0OuEQoGZ+gjNdp4rLwU0tD3sJJDdVrBvuJNXG8/12DN3Jg+0utCmyQgDiEgSYCd9N8Y1pyiFBM=;20:xMANiCilit4rAoVQMHNX8wRr9DsQ35oh/uzfucAUkLOWRGHQrZJH4fpqbbu+VSdUQq7Ela0+cWw5XHwevAdbe8/AoUN1GYmmsHEupZPdy66lpSe6fwElSN5KFY6dzNkXiXRs6xeyOotKM5pMBs22OqEYUEgTZN1mbfzEA5SP7pyxEvGnFgKUCuGNosgJZeZqVp8SggweY8Oclt3OlUHl9wPLcyIHIVXFCC+iLZthrUuF0LSE1Yx/MNpOnJYigavoZSlbDyJtYTUR6D8zQJrzz/BUrDBPj/bfRKJr8m1l3yI260jqkc6N5XGHXlV7Ht3Sf1qP6adQr9s75Q8/HTJu7bEx/RAtT4MW/zueHPUYBAY4aRvNdZJSv/wYRpRcu85ddXynnFh0QwTYDQwnnpjK3TAc2DoymzyXdMflqbxXGh5UfPKpBaWz+O75BWGx+zUewyyD7z6/wUmQr28WB3zvdwT4naOIfZ7w81f8yXru6YP4j5zvub0Hvj4fik8RfOpP X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <DM6PR02MB433184FF0411786CA3850E3AA7AC0@DM6PR02MB4331.namprd02.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231454)(999002)(944501410)(52105112)(93006095)(93004095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:DM6PR02MB4331;BCL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ZsxxveNk4CaFZEBNg8ucwizD+ebAUbU7TQKH6tK6vjYn+EfOYC3i+KBTDHkTgIPoE751+14IQ0BCIw1fyQmt6fDLsts= X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4331;6:JJTbR6+M/iehgG9XQL65Y4WT9moWPEU5Twn8kGH/hS2Bv09xncUCGD8YY734CcUUhcF4VIrj8PGxrjdwo83UiUapHz+mjdmbuuo259oui/SZHBRxCpJbwgvrfWLvyXhdPRearLP5bVUagbLHqfbUHo4yYi2yBPeLzx4agCgcUPJt+WQYRx2a2uYNFyiTQN1LVo41SVznL1D0K58F5speJ9d6Rxe8xhOTs4grIlGKkzAGyfE6eNGbWAiVSFKleGsNkNz/xzR1wA7ebrQCT5MueQJ/iesFg2xcErXdtM1ctk6nGMtniAYxDk3tFWyx6yH7FnPFaVKttsihXFKJj0hQUke+TmmOQ1bd9b8sk117x1Kmb/Hm6+XFpFsn3pE/apPkmt/eMhHiUvoFttvssbgNTNeTeAQX+XurFczr7ut88nZwluWw9GGmM16Ajn3phCw9dQ0RQzHcQgkDNFis3IE0iQ==;5:lD3bBOQYQgFXff1AQch59CcxMhNJ0I9Ygl5z2Zey7FknihZ0LCPJSIK3fo8rNCKBOQWW78IwkjxLL7cLuwVuRTEy9qQuCLHfPyNbogdDrW+A8e8pEoWcEV3J8waN3ZyXgm3y2l2H1gO77lP/xH3/Ek3ZXntjQhKURXCCaFLnQ4Q=;7:Df1OSdnx4a8uFPwvXRtmj8ExuIMqndhG25ZBOB0GZTlC3yscpk8CQahP7wpyhI23QbjO4ACAyhM642bdNDFYYmFgO5oLdenfXxTp9Gn1JOo7KcPylI+aO76jLDIcN+YZvPI1ml8NZEzHPXtZN4mj4w== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2018 11:13:45.0258 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c4b00f2e-f29f-42c0-a6f3-08d6577e0f32 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: DM6PR02MB4331 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 216179e..5d5c572 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2409,7 +2409,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))