From patchwork Wed Jul 25 11:51:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anurag Kumar Vulisha X-Patchwork-Id: 10543889 Return-Path: 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 D39D217FD for ; Wed, 25 Jul 2018 11:52:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C295729C76 for ; Wed, 25 Jul 2018 11:52:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B686D29CD0; Wed, 25 Jul 2018 11:52:00 +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 3693F29CA2 for ; Wed, 25 Jul 2018 11:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728955AbeGYNDL (ORCPT ); Wed, 25 Jul 2018 09:03:11 -0400 Received: from mail-by2nam01on0078.outbound.protection.outlook.com ([104.47.34.78]:19904 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728897AbeGYNDL (ORCPT ); Wed, 25 Jul 2018 09:03:11 -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=GQrwVGz/AepZlNdSAI1uzcWSU9rJmtUHLICsfAKt9bc=; b=PJ/dGsNG5qdrqeaCwrS2wV60X1t8IRQxTQgqd+0uE4gsuPirHLzsnQ3bEwuPFeKLUt7WwIJ+EhpUwGM7catq5IQc3GcZvfd2pUJgcqk33JBRrHthKk54uVlJYGdVkkuyGhJTR9GMGjv0Nn1h3iKlj0ah48Y325HTg8u326QNg/o= Received: from MWHPR02CA0035.namprd02.prod.outlook.com (2603:10b6:301:60::24) by CO1PR02MB093.namprd02.prod.outlook.com (2a01:111:e400:101a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.973.16; Wed, 25 Jul 2018 11:51:48 +0000 Received: from BL2NAM02FT046.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by MWHPR02CA0035.outlook.office365.com (2603:10b6:301:60::24) 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:47 +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 BL2NAM02FT046.mail.protection.outlook.com (10.152.76.118) 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:45 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:43600 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fiIKW-0004Q1-Hu; Wed, 25 Jul 2018 04:51:44 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fiIKR-0006Z7-EA; Wed, 25 Jul 2018 04:51:39 -0700 Received: from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w6PBpb5X027046; Wed, 25 Jul 2018 04:51:37 -0700 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fiIKP-0006Yl-4w; Wed, 25 Jul 2018 04:51:37 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 49FE060505; Wed, 25 Jul 2018 17:21:36 +0530 (IST) From: Anurag Kumar Vulisha To: , CC: , , , Anurag Kumar Vulisha Subject: [PATCH 2/8] usb: dwc3: update stream id in depcmd Date: Wed, 25 Jul 2018 17:21:25 +0530 Message-ID: <1532519491-19502-3-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)(346002)(136003)(376002)(396003)(39860400002)(2980300002)(438002)(189003)(199004)(6666003)(126002)(106466001)(5660300001)(446003)(51416003)(14444005)(15650500001)(11346002)(356003)(36386004)(50226002)(426003)(107886003)(110136005)(39060400002)(2906002)(103686004)(106002)(90966002)(63266004)(16586007)(52956003)(76176011)(4326008)(54906003)(42186006)(316002)(6266002)(48376002)(26005)(186003)(305945005)(47776003)(478600001)(336012)(8676002)(486006)(50466002)(8936002)(476003)(2616005)(81156014)(36756003)(81166006)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO1PR02MB093;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT046;1:91rBV1TRXs2ko71btvTXP/lS7Q9SzqjKFh+d6iMQUEZ77Oae7DpbJRR2Yp7/v0wOWIdOaFAsABKLH4phe9szvFufGM37l6hdTbqK83aX59++E4Vp5ovBT/uT0sbiGppc MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 447d1ee5-ff6d-4399-b9f6-08d5f2250039 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:CO1PR02MB093; X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB093;3:gA4YmViYxIvYOTZjjpUCQTrZbxH1eFSV685WYuzpw3Ml7LGEV9lrX9ZpYciurgbnKQ5lbG5IcvkDqs1XAkwpxM8tx2Crl61XBz3FnvLTsHoZX/KmYeoAm44TSygzQOKFpJzlkS0Z3nfAO587kIm4s2a1U+xvYyCMSsYytkQkyzAEWDDRilNc6PvruJaHfpb4VWBwfciOUM3sY15+6ns64x8Xx67W+WZhoOs2tjThcHNV4HL+ZM3bBU6xRaAxnTM8cmvAzfzJsJYUJ9uNsDbG0kJ6PO7r9OEV2k9qIjMXYKH2zRdu09J+ZhL9UadEu2zvhyddHXv6nBN7Ia9g0HJ4E7ENq3K823i2J3vuDl5psWQ=;25:FVd38T2lQ3h4r5bgtAXGW98aLpwKBEgvCBeAwj7VnxSd29RV8D9qBmFPPP+Xg8qUX3FWQtQir8oQ2L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Xgkt9K6R1EmSQH4nuqoE4sdJIl4 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: 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)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:CO1PR02MB093;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB093; X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB093;4:BLLg9Un/iJnOWbzep5Vtjf2kSm9I6Lb/VAHlmlFNiRnVnpOLXRMUIUwjcjvoZrcYyey5ZHDgQ1dLAqckEcibf1MnGDL6IovRYNcu4cvEkvjWoS2zjZ1m5i41ffparaQRKWPvkr0pVC7BS58EN6pXabt7IJF1LJzY3VlxrWR5APr59FSN1D/EDIxtDnLU1aTMXxYdCTFPisveFoPidVBeDMs5CXavUtKTLesuTFCcGHhZLgytyDljME4x8itPxJc1yHmRcb8aFvPi4uafF8+qdVcHocQSoMJ0MhBMrSyBfIH7cH58KLsM65JH6kaB+Ji1 X-Forefront-PRVS: 0744CFB5E8 X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB093;23:4ooET55ODukZkCMzldlm2/Bs7k8O40DiVPWhAjlJOeyKAgMDNDqsrHTx4FNFz8n9JP5pZubrrbydaCW+rsRYxybC7U9g+LhiM1v4xSE3pzy3JDrFzK4TYM2WaczbQvtF8NQ1hZK0FC4/3Li5tvc7aRLOCLVpu9Xqjq2QIPphGxWLt/T5f/hNz5Osy33ByFZIysaxL4uBeY4bt3VJhbgzDVqSVdsLqctcqoi7eXe3h2Aza54pARX1dc7WdQCfOVbaruhYbxQ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sR8W3Nt4XbQ79dYq98bQhGzMKoI8AGk16Yg6hUIF/WCgtH81QqJ20a40PiYB34kCUcSKCkEMC/mgYGejFtf179GUJjjbMNuOmExmirZu0p3PVmcsEf/HNpSMmRLYLzIo5XS8/kvcdU6gYz7KytI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 11:51:45.4912 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 447d1ee5-ff6d-4399-b9f6-08d5f2250039 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: CO1PR02MB093 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For stream capable endpoints, stream id related information needs to be updated into DEPCMD while issuing START TRANSFER. This patch does the same. Signed-off-by: Anurag Kumar Vulisha --- drivers/usb/dwc3/gadget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index f73d219..efc6e13 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1224,6 +1224,9 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep) params.param1 = lower_32_bits(req->trb_dma); cmd = DWC3_DEPCMD_STARTTRANSFER; + if (dep->stream_capable) + cmd |= DWC3_DEPCMD_PARAM(req->request.stream_id); + if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) cmd |= DWC3_DEPCMD_PARAM(dep->frame_number); } else {