Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9838888imu; Wed, 5 Dec 2018 11:07:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+fpEUtl1UwUuQZVuWZTOBX+zARLTCv7Oiqbm/H36RLVarcbTuhpXdxWg/QCo/l2fIRUAy X-Received: by 2002:a62:113:: with SMTP id 19mr25142817pfb.176.1544036850591; Wed, 05 Dec 2018 11:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544036850; cv=none; d=google.com; s=arc-20160816; b=Xu+T5yjEpx8O/bZ6OPFyxtWN70Af62q5elRmvdzuOZooPhIBHbRdhKTjvZkAWXu6Lz TATEE7i95NGVd1I9T2YytAICI819odQaNdTOLbbV0+xH+smtorWgFNYD/XFmhWCMtOAu J46in1ZcSDQiDt3NVAU4Z8nv+t82efY05IMJHSop5AKurudc1nR0y3YTZREvprbmnTK/ GfiEw24n1hrGe+lMP18+kDa/k3FlMh/yB40eCY2r25TrNhLun1v+bqLzZrOAC6ock7cf aHeSfmRctEtghGrm58Xees1hMEzpPyGd6UrWoyeBmPVPgPeIGaiY67cgx55sNiPIMD/K MlfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=HrdsTYcK1ASjCaGDNlDZPRvbBKr1wA0Q2MArxiYlIQg=; b=qYQisn7y7IUlcpUOUobwSuA/iaBOL+5afAEJo7gdUKDdJzJKFMk437w1Yh4q7N3/Mw 91G972kWARZC+cWbvoP+zkzYr1rhGzI07MiLvefJ8eY2qbFILoeCiQ5q/uJLjIzNVUoz WcHEUrdrQP83RSOgtyeAc011ZWxrvhtYokIBEEzqTdwWYyW4OHLj9pIK/dNciWHBTu6Z FJMBznbDqYv3Dt4qzap9CZxCj7n9KZtHUxoYoQSIJiqsbk+VojF6LBctMMgYnfUz16Ro O5Jw96jJ1W1o6M8pycNUc+8Y77IDK5zFpywsKLoDuYAHqRFhwA9NHoBCD96LG+2m3sfe OoTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=S+KBbCVL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15si18761368pgq.378.2018.12.05.11.07.14; Wed, 05 Dec 2018 11:07:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=S+KBbCVL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728156AbeLETFv (ORCPT + 99 others); Wed, 5 Dec 2018 14:05:51 -0500 Received: from mail-eopbgr720056.outbound.protection.outlook.com ([40.107.72.56]:33569 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728238AbeLETFv (ORCPT ); Wed, 5 Dec 2018 14:05:51 -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=HrdsTYcK1ASjCaGDNlDZPRvbBKr1wA0Q2MArxiYlIQg=; b=S+KBbCVLoCNbKDkmaGBtyXE0PegU965+k0JtsQTFHY67g8HemZzQas8PagMQputoB1xoQq3eU7LiF++WkGFaKp8/0UOmQ/yaZJ2yxtE0sImMEIC6strAb8tM1fPc09Al9DC9ndrA8R/bhJlGpIrlvfZVO9aXFMWlofJKyWwWTAA= Received: from BL0PR02MB5633.namprd02.prod.outlook.com (20.177.241.80) by BL0PR02MB4548.namprd02.prod.outlook.com (10.167.180.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.19; Wed, 5 Dec 2018 19:05:02 +0000 Received: from BL0PR02MB5633.namprd02.prod.outlook.com ([fe80::68ed:9ca9:c7da:d76d]) by BL0PR02MB5633.namprd02.prod.outlook.com ([fe80::68ed:9ca9:c7da:d76d%2]) with mapi id 15.20.1404.019; Wed, 5 Dec 2018 19:05:02 +0000 From: Anurag Kumar Vulisha To: Felipe Balbi , Greg Kroah-Hartman , Shuah Khan , Alan Stern , Johan Hovold , Jaejoong Kim , Benjamin Herrenschmidt , Roger Quadros , Manu Gautam , "martin.petersen@oracle.com" , Bart Van Assche , Mike Christie , Matthew Wilcox , Colin Ian King CC: "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "v.anuragkumar@gmail.com" , Thinh Nguyen , Tejas Joglekar , Ajay Yugalkishore Pandey Subject: RE: [PATCH v7 05/10] usb: dwc3: make controller clear transfer resources after complete Thread-Topic: [PATCH v7 05/10] usb: dwc3: make controller clear transfer resources after complete Thread-Index: AQHUiWbtSjqus2M3jkO9VscWv2prA6Vv33OAgACnyJA= Date: Wed, 5 Dec 2018 19:05:01 +0000 Message-ID: References: <1543662811-5194-1-git-send-email-anurag.kumar.vulisha@xilinx.com> <1543662811-5194-6-git-send-email-anurag.kumar.vulisha@xilinx.com> <878t142vpq.fsf@linux.intel.com> In-Reply-To: <878t142vpq.fsf@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anuragku@xilinx.com; x-originating-ip: [182.18.177.170] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR02MB4548;6:u+8moCXYKv0Dpzem0htgVctA3wsLFf4JR3ZzyCNV1vLJr0Msneljm8ZAnmhOGdK92WL01zekxlCJRUlcGI97VS862i32056gXbScB5YuKqwIlovGJrdNGYR78VBdL0RBwwVOodgmvrs/JyJMtErLYaoGOY5l1C7Zxu0Sa/sT/cc9fJVroY0cMnuVlwRpXRo0kt+xe0Ok0J177H3km5haKRCoR4BMaS0mPcrbiKB88/bx6vTNpwSkFa8GwPDCIpwSo7TqVsm5dP2m5sTRwLX0r9KCoyNsFTNkoWFB0T+9S0ZNmx1RcUlWNNXtR71Fk9vnBrwKCb+/hSRn8WVzXDdof8K/Rz8+klZ7HWZ6e8gIVt52MhSWnb65hjCPkr4TaZwcFYKOSqGrfbbIxLY8bVQB6GaCf8V0WAC5GbkTfZ3+l0yw5i3xZVaGUPndSZsUaFlSauPnTekiKWK4+7Z7Fe1cGQ==;5:iOuqKgsXrHqt579BzoKLg/22iiVMosNKMrw9CYBOtdjBslWUKJKH8jLIocRBmpabymYWJwYkzkdhV4Mtzy12QFtGse43wfcUU4N9bSrwua5HpNZ0EiXDO3fVLuVPGySTvlggS5G1BmhjmeR2iyaBjML1XJnFk6OM9xsV/Rgay6Q=;7:A7I1HMHJvmKKBe2Q9N5X6VQbFW8S0YoTEjHI63nW7N3XtWPfAhH1Fd5veL/1aCX/wJoEmUeDnqnSM4YOXJyT2AMoQvSG5zJmV7PMw4rA7FRDnvztj5J1Hh8nyYoeAJW5izmr6JN3VwKFA1KnB46kXA== x-ms-office365-filtering-correlation-id: 0dc6442c-8c28-44ad-5282-08d65ae48f4a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:BL0PR02MB4548; x-ms-traffictypediagnostic: BL0PR02MB4548: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:BL0PR02MB4548;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4548; x-forefront-prvs: 08770259B4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(136003)(39860400002)(366004)(346002)(396003)(376002)(13464003)(189003)(199004)(476003)(6116002)(33656002)(11346002)(53936002)(446003)(3846002)(2501003)(6246003)(39060400002)(105586002)(107886003)(106356001)(2171002)(7416002)(8936002)(81166006)(81156014)(229853002)(8676002)(186003)(74316002)(7736002)(305945005)(66066001)(6436002)(25786009)(76176011)(2906002)(7696005)(97736004)(26005)(99286004)(5660300001)(9686003)(68736007)(6506007)(102836004)(55016002)(316002)(86362001)(14454004)(54906003)(110136005)(486006)(71200400001)(256004)(71190400001)(4326008)(478600001)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB4548;H:BL0PR02MB5633.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bS8TIdps8UM1CKjpYsiWTThAf4zguxDJSL8i42Y3lSjOwqC6Bg+Ni35MksU/bW4wVS27mTZXShQQE9v1RSO4DNMJXS30ierb3eSFZNUw0Lehyy7XBIIb3ltDgaInf/tLWmJ8R9J8ZabfAfsjqW68P6IboQBWZbplPupYysgboGCppDDTmewyDusMhWyKAJJhtyoWTS1DNOp7Bwp+LyxgZHKK7heutGxoh9LpY2cvTeQc/q+pEt2PRBPJ4kQaHuAH5H+AulOSD+BaI2Q09GWn3gcrNEb9/Oi8catFJoFVPY3OEkxdMv0guku2Wp8sYB1pivAmCC5qrAj1V59ArixJ1SM09mK61RnFS+/bHc0QGNU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0dc6442c-8c28-44ad-5282-08d65ae48f4a X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2018 19:05:02.0058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4548 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI Felipe, >-----Original Message----- >From: Felipe Balbi [mailto:balbi@kernel.org] >Sent: Wednesday, December 05, 2018 2:32 PM >To: Anurag Kumar Vulisha ; Greg Kroah-Hartman >; Shuah Khan ; Alan Stern >; Johan Hovold ; Jaejoong Kim >; Benjamin Herrenschmidt = ; >Roger Quadros ; Manu Gautam ; >martin.petersen@oracle.com; Bart Van Assche ; Mike >Christie ; Matthew Wilcox ; Coli= n Ian >King >Cc: linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; >v.anuragkumar@gmail.com; Thinh Nguyen ; Tejas Jogleka= r >; Ajay Yugalkishore Pandey ; >Anurag Kumar Vulisha >Subject: Re: [PATCH v7 05/10] usb: dwc3: make controller clear transfer re= sources >after complete > > >Hi, > >Anurag Kumar Vulisha writes: >> @@ -2487,6 +2497,11 @@ static void dwc3_endpoint_interrupt(struct dwc3 *= dwc, >> } >> >> switch (event->endpoint_event) { >> + case DWC3_DEPEVT_XFERCOMPLETE: >> + if (!dep->stream_capable) >> + break; >> + dep->flags &=3D ~DWC3_EP_TRANSFER_STARTED; >> + /* Fall Through */ > >instead, let's add a proper handler for this: > >dwc3_gadget_endpoint_transfer_complete(dep, event); > >That handler should be "self-sufficient". IOW, we shouldn't have this >fall through here. This means that the other patch where you modify >dwc3_gadget_transfer_in_progress() shouldn't be necessary, since that >event shouldn't run for stream capable endpoints. > Thanks for your suggestion, will implement the changes as said and send the patches >While rewriting the patches, please rebase on my testing/next as I have >applied a few of the patches in this series.=20 Okay , will rebase on top of testing/next and send the patches Best Regards, Anurag Kumar Vulisha