From patchwork Fri Aug 17 12:24:49 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: 10568701 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 C53F0109C for ; Fri, 17 Aug 2018 12:25:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B27962AFB5 for ; Fri, 17 Aug 2018 12:25:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5ABA2AFFA; Fri, 17 Aug 2018 12:25:11 +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 29CBF2AFB5 for ; Fri, 17 Aug 2018 12:25:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726896AbeHQP2X (ORCPT ); Fri, 17 Aug 2018 11:28:23 -0400 Received: from mail-eopbgr680080.outbound.protection.outlook.com ([40.107.68.80]:58496 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726436AbeHQP2X (ORCPT ); Fri, 17 Aug 2018 11:28:23 -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=bCG4c+MPOz6leC/slTpfhVWrPPFm3TM+1o9djtGHrr8=; b=loGz2hn/5p/n1TdmfZ2SMyjiKODaThVUlR/nB+vw93Je5xFUjivx39w68uMzsPVbAo3ea9HkSqjiVcVCLME6x+7clM/TXaksEhesmx+ZecwT7iVG0dDLbGfyBumLM0HDVfO08ipyHLUe31gCNFhwOQkV99nisXrGUJM1aqN6q28= Received: from SN4PR0201CA0038.namprd02.prod.outlook.com (2603:10b6:803:2e::24) by BL0PR02MB4449.namprd02.prod.outlook.com (2603:10b6:208:45::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.19; Fri, 17 Aug 2018 12:25:05 +0000 Received: from SN1NAM02FT036.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::207) by SN4PR0201CA0038.outlook.office365.com (2603:10b6:803:2e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1059.21 via Frontend Transport; Fri, 17 Aug 2018 12:25:05 +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 SN1NAM02FT036.mail.protection.outlook.com (10.152.72.149) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1059.14 via Frontend Transport; Fri, 17 Aug 2018 12:25:05 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:42334 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fqdoP-0008VK-4a; Fri, 17 Aug 2018 05:25:05 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fqdoK-0000U3-3h; Fri, 17 Aug 2018 05:25:00 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w7HCOvka024713; Fri, 17 Aug 2018 05:24:57 -0700 Received: from [172.23.64.8] (helo=xhdvnc108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fqdoH-0000TS-EH; Fri, 17 Aug 2018 05:24:57 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id 89B8C60509; Fri, 17 Aug 2018 17:54:56 +0530 (IST) From: Anurag Kumar Vulisha To: , CC: , , , Anurag Kumar Vulisha Subject: [PATCH v2 2/8] usb: dwc3: update stream id in depcmd Date: Fri, 17 Aug 2018 17:54:49 +0530 Message-ID: <1534508695-12642-3-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1534508695-12642-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1534508695-12642-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)(376002)(136003)(39850400004)(346002)(396003)(2980300002)(438002)(199004)(189003)(5660300001)(6666003)(52956003)(426003)(6266002)(186003)(476003)(2616005)(50466002)(336012)(48376002)(107886003)(126002)(36756003)(446003)(486006)(14444005)(103686004)(4326008)(11346002)(36386004)(51416003)(110136005)(42186006)(54906003)(47776003)(316002)(63266004)(2906002)(26005)(39060400002)(478600001)(16586007)(81156014)(8936002)(8676002)(15650500001)(50226002)(81166006)(90966002)(356003)(106466001)(305945005)(76176011)(106002)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB4449;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;SN1NAM02FT036;1:ux2pGezPFr6/HvaN4HPmJgi1VN5CAebcVJ0Y2Oc/F+lVzP0D6nj3HfOYxpDejQlJtMUY9fazjkI810yWkYwm5zc6J4PXog7FL9/esltNDidQnPBYYnw93T5hVY0QqF1i MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e5ad8b9-a232-47ac-6d72-08d6043c76e6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BL0PR02MB4449; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4449;3:IiC7SJ4PnWI41MQtrJx7vUb9bLwnrTrqsAECuAHJUhOQ8v9iV9KgJywOO7M3zjk8tCQlCn01haVpgl1O4yWfUub+BV22D1e4H+E8+Ly90mlYIUDUupPzvhE38bycAQvh1OATyDdFzeOebeDA8ctpsKNHXYQb/Xfg+2j8m+8wUgDSebGRHu/tXsbTty31/qikYM3uBByFy6vVGIjt2x6nUwet/i3gzxODShHJwdtUY4S4AT2tkFyrFOBBFcpwF6zAo1zbL7cu+02cp2cglYgKIiV3WMt6eGgrDMfmHgSOmE4t6kT9Rq+tUmjBmyGPqcrD7pI1Up5vN3m0ylNYbuc3KoNCCC1JN1Twro5/pDK6GUM=;25:vlNJDMFdxDYxb9PRQ+uEtDFDyJD/CBwrXU2fCtg3YweU80c9aGHRlzuCLtyklp+J4hH9V75OvekaDpcTL3eLZg3A/B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to-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)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BL0PR02MB4449;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4449; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4449;4:HswS9TdHnWO2MN65tj8eF0H6GC1AO3zWOdZZKAEy7jgsI8IXO99vkX3ozMA61KY6DvLAykCmT8gKhSDA5Zut66LCXkYVymFnWkmYB0MM134HfU3zxI1TXGrf2ecMH0J4z5GY4OI1FV2d5rXMkmYfVyBuQ1GVeAJ9yVGV4Xyd1E14DmsEvJ1oWOyy7TDVhYQhtnUunRk1Yt9SuXkAxbjlKRP/cZ64kwL98grFmHQ5/u0GKh57zxUw9sY0jwPLGPVAlc0XIlpQQ0+EaK1ycgaoCZUZh4mRbF0ikcsQELhrmaPF2vXIBvgm4exrUkJlOG3w X-Forefront-PRVS: 076777155F X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4449;23:PPJKUP35X0E8D9MHNjsuvg3H8KXokZbFcx4ObOmaVSanVu+6l4qKegUbjQqvg48G0NggdLBBCCGTFjhSIgb9nZ2sPk6WaFS1VD2aXPSCNWOjQet4R1bn//AWlCADPg+FBmUgaYPnadXQOGjoa9OauJa1KMfonem6Akf0ETiDacQbBzCdGMwpFXvKDUcTLeFfyDes83ArJObFT9mC5qK1KogftazbpglvBrOuDgYSLLDCoba4/kEP+8pntZyYwShw4dFHJZhhFJYqxVC+VQ3e9bkV2G1nImMAzxMyodparZ9rp9v+wx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vGfvhk/P0xltZAfCm89QNBmjduiRsKfedxczrOyf430YVBT+/YNjAygUubwpj3FB6XYTt5xW2S0GvawJlNVQwkj8GylCWipNL/qKoV/oZUU4MbiIb/IKWP6LA898SVwf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2018 12:25:05.6521 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2e5ad8b9-a232-47ac-6d72-08d6043c76e6 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: BL0PR02MB4449 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 --- Changes in v2: 1. None --- 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 {