Message ID | 1537021801-23896-6-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 77DED14BD for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6602E2B6BF for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 592A92B6FE; Sat, 15 Sep 2018 14:31:47 +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 8C5392B6D2 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 15 Sep 2018 14:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbeIOTuy (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Sat, 15 Sep 2018 15:50:54 -0400 Received: from mail-by2nam01on0062.outbound.protection.outlook.com ([104.47.34.62]:2379 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727162AbeIOTuy (ORCPT <rfc822;linux-usb@vger.kernel.org>); Sat, 15 Sep 2018 15:50:54 -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=YHKTFBCrGpeeBxkWvOvxpl4OX01ojhxm6czd0z3qOaI=; b=RAUCULYtNwr94fhZXYfgR1V8Lx+g2D1VM7KRwn6r4ZAGIaR5HErmMdgFdMJAKqJPGTDPJJCdIhtJGajbHmynnCDD89GkRU5X9gSLW01la9B6IQZlRx2pUvKuU0PG/6NaQ7hcBZhemo5yyDsOh8ZdMmZKORxRQUXB6heLX/bPF2s= Received: from MWHPR02CA0027.namprd02.prod.outlook.com (2603:10b6:301:60::16) by BL0PR02MB4466.namprd02.prod.outlook.com (2603:10b6:208:4a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Sat, 15 Sep 2018 14:30:31 +0000 Received: from SN1NAM02FT038.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::201) by MWHPR02CA0027.outlook.office365.com (2603:10b6:301:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1143.15 via Frontend Transport; Sat, 15 Sep 2018 14:30:30 +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 SN1NAM02FT038.mail.protection.outlook.com (10.152.72.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1143.14 via Frontend Transport; Sat, 15 Sep 2018 14:30:30 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:34650 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1g1Bag-0008C5-20; Sat, 15 Sep 2018 07:30:30 -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 1g1Baa-0004qu-VF; Sat, 15 Sep 2018 07:30:25 -0700 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8FEUNGL024950; Sat, 15 Sep 2018 07:30:23 -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 1g1BaZ-0004qJ-3g; Sat, 15 Sep 2018 07:30:23 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 49388604AD; Sat, 15 Sep 2018 20:00:22 +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>, <Thinh.Nguyen@synopsys.com>, <apandey@xilinx.com>, Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> Subject: [PATCH v5 5/8] usb: dwc3: don't issue no-op trb for stream capable endpoints Date: Sat, 15 Sep 2018 19:59:58 +0530 Message-ID: <1537021801-23896-6-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1537021801-23896-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1537021801-23896-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)(396003)(346002)(136003)(39860400002)(376002)(2980300002)(438002)(3923003)(199004)(189003)(486006)(336012)(2616005)(36756003)(476003)(36386004)(6666003)(54906003)(356003)(42186006)(52956003)(106466001)(126002)(11346002)(103686004)(446003)(50226002)(305945005)(90966002)(63266004)(81166006)(478600001)(48376002)(81156014)(8936002)(4326008)(2906002)(50466002)(106002)(107886003)(16586007)(316002)(6266002)(8676002)(76176011)(26005)(426003)(110136005)(51416003)(47776003)(14444005)(5660300001)(186003)(39060400002)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB4466;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;SN1NAM02FT038;1:hiSy7ipEDN8svjgDyU95jzOrWORaTSil0fExjl1B9pclK3udwdhvd1Q2XFVz1OqpPAvTh5GXZvCgQGaQ0gELGeGMw+AahwTakOsy/ndkgGs/gV0HBuQpEuwPWQWGYpax MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f069c12-286a-43c0-e3d2-08d61b17ca09 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BL0PR02MB4466; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4466;3:rr0jBb4jDnMjjEL1PA0I+x+9IVZ6LahGmn5Yd7kLVgd1LVSpOEQUhO5xOrNJw4jSwu43GAHD5yg1A9dmcDqIYILAk8mNOykscnzQRY5V7dH+I0FoHmbz4Kxtd4D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wI6n4LrQ+U3hpX0RWZ1YI3H5ptj9MM0BU7U2f1UbYkuKS5HOp0aAtbHu5TZ0rESmU8yHOGwKFaw5Z0QvTOdPelXEIp3G09KXLlmvcOWxxqMzVSs3rjSf2osige25CdGDBjlDQMG4T3PGDKqUMjftbFbhAaql79zGkadvlwl8P4q2iocD7dVCFgKluAosFkwqy8qIzqZM5XgqLMz/ZOTZZuDlqDiGbjTO8WVYJ+xE5fKh6HS6yhWnCcBoYCB1YwaC2q734MWk7QNpKsz767b6lbDkFQ4qnDzP7BKs03xdfVUxJTrCZOInrSwVb7Nd9UAGbxrldX/aYi X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <BL0PR02MB4466C8A06A69B9CFD1B1BF1FA7180@BL0PR02MB4466.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)(93006095)(93004095)(3231355)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699050);SRVR:BL0PR02MB4466;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4466; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4466;4:sjtwrWoeQsZzE/mEMgRDwg27jOSkR63T3uYTtUldx1wpiX3ekySGnJAklosuPTvmbaWtTlfUbii4V++k+z2aI6BK/erWKwgka6YGka8av8KEE4KJAboOaCrhRShXTR7MaF6KCqe8DDDUa0nk3hY3yd5gUqtRCqDx3AsC8Hd+JKHunwEm4wfCPyrT6eV6Br6Zw41HQcg64D1QVySdg0CaWM/opvqG86kySAJx0N3ZCpAnCbRR4zhSH1rLxPb8R4eHe7wT4UKzQHvnqLWL+FyDgz+FCgUM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YGfksXe5+wf1spGoA5RhM2Vpyte93G/On7YLeE2nr02VxwSTj5rnDCQn06R2HJa6ClKm6h/RZxK1+WWixkFd4EOJ4sqWhi0ZS5yoRw==;5:tpVQ9Cun7HmG5UHgyhQCn+m0Dovj+wAN0eqd55rJlJMfxKm3HcBkYHNl+RFzJ9/PYo+tULcorVDQDCi/v8dEEuvx+GjyglQR6VGGvO1E5cvKkIj/w0bUi3qDXFoqbhE3+odTkWx/7CyVBXAsqrQXlj/iBbHHyhyun8A7oJMs89M=;7:cdegy8eWK3ewG2GP4bA4cXnErWstRJI8OWovnKjQYfMhBgCykjNB7UyMjCOwBx7IL2bgboUaqKX27fLZ72jZ4ixVdrHBQgrF2k1Ysj6ZwZoblIjHf7NlkONzzUGOVyZzFX+SdcftHfhYnt3amlB4mHkEyhThzyb4kYj1OuHG+hUxlbBWMVm32NlKZGat4jKDORIHO1/EJZgCDx6rLkyGAgw+Clw0tErMSeQpLoTqZk66HvI6jF/2h1P49u5WhdAt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2018 14:30:30.4534 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f069c12-286a-43c0-e3d2-08d61b17ca09 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: BL0PR02MB4466 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 e18f9b9..b2d68f1 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -677,7 +677,7 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep *dep, unsigned int action) * Issue StartTransfer here with no-op TRB so we can always rely on No * Response Update Transfer command. */ - if (usb_endpoint_xfer_bulk(desc) || + if ((usb_endpoint_xfer_bulk(desc) && !dep->stream_capable) || usb_endpoint_xfer_int(desc)) { struct dwc3_gadget_ep_cmd_params params; struct dwc3_trb *trb;