Message ID | 1539436498-24892-5-git-send-email-anurag.kumar.vulisha@xilinx.com (mailing list archive) |
---|---|
State | Superseded |
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 5D7B5933 for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 13 Oct 2018 13:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 498632AF4D for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 13 Oct 2018 13:16:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39F682AF52; Sat, 13 Oct 2018 13:16:26 +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 BE3622AF4D for <patchwork-linux-usb@patchwork.kernel.org>; Sat, 13 Oct 2018 13:16:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbeJMUxX (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Sat, 13 Oct 2018 16:53:23 -0400 Received: from mail-cys01nam02on0069.outbound.protection.outlook.com ([104.47.37.69]:5499 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726163AbeJMUwg (ORCPT <rfc822;linux-usb@vger.kernel.org>); Sat, 13 Oct 2018 16:52:36 -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=gUia5U3ROtz4lzd//jjoLkJi7nK2C1vC2RyizlVreSQ=; b=orOV7ADZgRyCArwhHQK/hmPTvxh0D7YAqb64PshpaXFj4MlS94w8qCuvXQdkjMn6ZzgoFDG//m+QNq2cvirkJ4IsJBDkgb2bN1ltaxENDILKDs3lo+2piYLG102USjoQB6nkrzNpx0/t+M6rZLgH2zbsIv1XXHsXlvYEdW0mcDM= Received: from SN4PR0201CA0044.namprd02.prod.outlook.com (2603:10b6:803:2e::30) by SN4PR0201MB3520.namprd02.prod.outlook.com (2603:10b6:803:44::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Sat, 13 Oct 2018 13:15:20 +0000 Received: from BL2NAM02FT025.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by SN4PR0201CA0044.outlook.office365.com (2603:10b6:803:2e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1228.23 via Frontend Transport; Sat, 13 Oct 2018 13:15:20 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) 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.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT025.mail.protection.outlook.com (10.152.77.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1250.11 via Frontend Transport; Sat, 13 Oct 2018 13:15:20 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <anurag.kumar.vulisha@xilinx.com>) id 1gBJlH-00068i-Ic; Sat, 13 Oct 2018 06:15:19 -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 1gBJlC-0007wb-D9; Sat, 13 Oct 2018 06:15:14 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w9DDF6WH019364; Sat, 13 Oct 2018 06:15:06 -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 1gBJl3-0007pN-RJ; Sat, 13 Oct 2018 06:15:06 -0700 Received: by xhdvnc108.xilinx.com (Postfix, from userid 15427) id C5F3660504; Sat, 13 Oct 2018 18:45:04 +0530 (IST) From: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com> To: Felipe Balbi <balbi@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.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> 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 V6 04/10] usb: dwc3: update stream id in depcmd Date: Sat, 13 Oct 2018 18:44:51 +0530 Message-ID: <1539436498-24892-5-git-send-email-anurag.kumar.vulisha@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1539436498-24892-1-git-send-email-anurag.kumar.vulisha@xilinx.com> References: <1539436498-24892-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.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(39860400002)(136003)(2980300002)(438002)(199004)(189003)(106466001)(47776003)(52956003)(90966002)(2171002)(6266002)(54906003)(486006)(126002)(110136005)(186003)(356004)(26005)(476003)(14444005)(2616005)(6666004)(15650500001)(76176011)(446003)(51416003)(107886003)(11346002)(103686004)(8676002)(39060400002)(81166006)(2906002)(81156014)(42186006)(63266004)(478600001)(336012)(36756003)(36386004)(316002)(106002)(305945005)(4326008)(7416002)(50226002)(50466002)(16586007)(5660300001)(48376002)(8936002)(426003)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN4PR0201MB3520;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT025;1:GDASXcRUZFjPYbdTd8E6D4tM6CETGDwcdU6i6G/h+gwIC/c/RUBm/7IY0C6gXNPr8Rtdss7KS5pMU33p/k0MMEzOZdpZjAvfRRAcpUIci9oZoeDbz1H9cR4cZsTig3Ac MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c1af2d9-3baa-401c-7684-08d6310ded2c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:SN4PR0201MB3520; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0201MB3520;3:rM5SQ46k1LqgNxeo61qKkr6lje3tOxwjYkrFhu5muOQSdYWdwgonlLyxOq6pnwb/ihxCFj/xsYpsbT6AbYd0r/PQanBkv9J5/YiKdmYZe38plTnpr2IEPcCja0S7gmd5FtVH/W8DyeL4pcHk1hqx3b4bZvTP2qJka1bRmeqQo+CS5i3L1lVGzLPoO/QXtbghCUIlXMBEfJJkGnnnx/fErjcXlBbFXofaUaBkc6YDFx3WIQurW4mDmPWFB9hNyNOkT8jhqgwRnychknqxENypXXDy4QD0Pmg1ATJVvWeKUUcyUOkphr922jJwg7tVagtH3HfZNE5uYJibNAR7DyUC3uTqFu932YcERwWsNFBmkBA=;25:thH6bWFX+vSjgXv+BJjPn7kcl4It+qcX9vgSmNuQyItKGdcsf/S4Yh/tql6wTqz6UrNIGEZfcrBK5HbTOHG076lXO5ckj8kjgPogf8Hj9LHdApWqqDchdT5EYKbMGw1sEu+BTARxf072dvq4Rb26VWXS343ujubXUrcRfOCotZzXAdyajpyLZ+a3hgIRAKZGB16I42nBszF9thXLb+9Vfi+RS42fBrGX8nWbmyDK7OMp90dRZG83BT0ff2U0ephh84HNnWv+9jdt9okV7c2J1h1L+GhRIIjiRgVT/+8ABUFO+mptd92COa1BKovZ1Rc744h2suQ2kh8y0NIu5AsqOg== X-MS-TrafficTypeDiagnostic: SN4PR0201MB3520: X-Microsoft-Exchange-Diagnostics: 1;SN4PR0201MB3520;31:Mhg5LmrP2m6AV+vsmXBDQvZA4Cm/6TMkg0ItwV3hkwOGlNYjmO4dKHTMqH4cCsJ1dqGO41mox7Jx2LNUuVYLKFZL6NIemAixVU2EZWbewvkB+HkIDaUrV+kd7Tor3Yy96Uhn1M07AX+iNpORAn9TGIcVg0yyG1NB//oukhxY8HdD00STQRItaVqRANjacWJZ9RGsmZNuxnFHQKWC8xC0GBUh9g1NyYHACjzwSdEupQA=;20:Z9hl45UWG9XEi3BE53mBqhy+wkR0kY5B1Sim4qVJurOK51ElQFt3Lgm4dMFYl47z3vW7A0zOrxpaWNpxtfWx7wkOU/Zj+xG+VufszcqWh7UmC0snjZ1I2y00wzPk6j8HhokZcQQD/62Te0AHmA7921SdgDlTCqAt7rXrqma1mnA04TeJSe68Q8yYhLffDe7jxcaQfqfEUkAlFmOl88d881eXffl/7Mq+UlN+w+4dI4TyoxZcrpFPGoaKp5HJSf/l7cBs02xjI55J4T/htRBpHFR8Jepeij0EdZaEKVFCv1tSMCmBTNY2hHQPSYlbI5yY36DT2L6qIsP9bmoxpqq3zm859SqZ8y40WpLuXefjIkBSLYLp/Rm1/LRTrOy6/psrDQyRTwnDBh6SDsnmt10nlKJNSFYnbOTe9OMIiymZdvjQeH2BP2R2+PrvPPaqju0/LZ4g/scbPSCdjlboicVgoOOpmurKlsII/ppUJrVjFeWS3PiTsuZL34EM2xsgxSRz X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <SN4PR0201MB352009265E861B3B79FDDC05A7E30@SN4PR0201MB3520.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)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067);SRVR:SN4PR0201MB3520;BCL:0;PCL:0;RULEID:;SRVR:SN4PR0201MB3520; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0201MB3520;4:2PyySzZssR2RpfbDvp5HP/6vIOOMQYtBIbxBC1RGiNURK8RteWFVeD7MsjNAJaNK6YabMbRyQFK5nDOspr//dNdOjOa1aDWUOcPzEpUh/Ksbr/ppGx2yA1bNjkdPv4UrYukHX6my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URY4t0X8TABMfzqcf0hIA4MWOWV3V/ekaajZFeQcVIsCkqFB+JLbmfpjxX2bpSXqv/Wl+Jsg+Cz7qkHmFOVUscq5AbBi5rB8r8YpCdCbdQvC1FA3MavP9ZN3HB8RpZ2hTv5rdqOm+A3PrVmqyShvamslgpFtJd4H4Zt/ZDS1dLkQOkyWnLtAtoCEI0z0e4++29S6jA5F2S5kuBcSLpKZ85hYZVmBN/JZPyWWGKy6k1JY8fU+MuiOx/4l0cF2O6qBWw==;5:VCTQfwz379mpZkoN3OTr6TlM5gMtgM8URFFRnEHG0fKxEcuVYFqy/xFWlZmgXCIrqOvexWU6cqvsg6sq/UrgGcNoXAtICpHO4N4UD5GJ5dkS68qYhtXAVYvPE5uqy4ukhOI2EoiyH6YiOdfJbl0shW+bH8IkswJCTDw6k0xIm1k=;7:kUHX3g30vUeq+9jMV6o3I1L8wjkaAkHfDTno7eWkPSbhIJWCSmxfMs0cwUkRtLcbocUJVkAxiWQA+mmyhP6p0kouYlTcvSwPGOXxBX3EFGS1q3MsGieHkktGfTFTgK++l2TkP8UGsO+fLi8srUHrNGd5HpHElSKZqv+LWru7BSwDmfT3Mp6qUq6nSrvmqT2IjighUs0HW5EFy0E/bS+NeYvRXoV9A+UHkNvtgGsE5da4IllA00RrU2xATxEvRdHA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2018 13:15:20.1078 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c1af2d9-3baa-401c-7684-08d6310ded2c 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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0201MB3520 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 ac752d4..862ec5a 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1225,6 +1225,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->endpoint.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 {
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 <anurag.kumar.vulisha@xilinx.com> --- Changes in v6: 1. Used dep->endpoint.stream_capable instead of dep->stream_capable flag Changes in v5: 1. None Changes in v4: 1. None Changes in v3: 1. None Changes in v2: 1. None --- drivers/usb/dwc3/gadget.c | 3 +++ 1 file changed, 3 insertions(+)