Received: by 2002:a4a:3008:0:0:0:0:0 with SMTP id q8-v6csp3495658oof; Mon, 10 Sep 2018 15:51:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZpcBkO9u/cSoz4oo7JbdHxsYuZcYCX0G84zgGY2u4GIAq5HYnK4LLvgzq7qCfG3t2xawq4 X-Received: by 2002:a63:bc0a:: with SMTP id q10-v6mr24937781pge.60.1536619867609; Mon, 10 Sep 2018 15:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536619867; cv=none; d=google.com; s=arc-20160816; b=1JECiuBZUdPCHrwDArUl/mxxNvjoWXfSuv27+VT941BiFPlo2eWlIKkVnKIv53e9ZZ 4eaJbSeqrQnWxuRThVOUPL5PqFNuoH90wtFQ0eAa9YJPK68FeXHuN98NzhkuChWBrjTk DfOjlc369zDrEWiZPyLWy2rb+iidyqtCRBfkOxL76gNg+LjLsGZnspnUw4LhEp1wnoVs FZR01PznRMzBFnZ0uvY8JwUD9nV9aCXy90I6yvVd02Mx0QgcxqLQBvGfahMmwIDj1MrT qVPt4GFZHia4MOgkWQ2MKK8RyBjJFKdMoGGDfqHYIIexhHI9nLGiOBA3vyZctPdjGTin VggA== 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 :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=OCEx3pG1BfJL1tDx0TXLABtc6eVhMwTelgc5nviDKPY=; b=M91AkKXGlJFDYUepLTR440eMiODLkO5sPiq5jbKpqxbr0kHBlA11pefRMdnYX2cCTM kROX9TyoWKRDnMH/XOj9qmwLMwlcQJLs8mQaIyK/Vrz4IWtrVRn0coaEABY46AH33PA2 MVdoZxiO4kF5PNyEynPGlk3mZWA25oobhHogONTXRMWmzKDC7XVmapuC8EivuiicKzG0 mUENP7hoIAw8XTfhYykT+iLwR72+WaKJNOrj9YKiXzImaMXzLDNarrNnojWXqTbM5pG6 waxyoOFSu02jzTo/5yRFoGuKErNYQS0nwS/4eGMfKP5R2OZjnSOjhGVwI9asAenPP3mz LHTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TpYq5X0a; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si18020892pgi.690.2018.09.10.15.50.52; Mon, 10 Sep 2018 15:51:07 -0700 (PDT) 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=@synopsys.com header.s=mail header.b=TpYq5X0a; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726839AbeIKDrC (ORCPT + 99 others); Mon, 10 Sep 2018 23:47:02 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:48848 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbeIKDrC (ORCPT ); Mon, 10 Sep 2018 23:47:02 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 076F610C070F; Mon, 10 Sep 2018 15:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536619846; bh=MdyufGLD3UJz93s/CtmM1156/lwvgTXNgLUE+DxnQDQ=; h=From:To:CC:Subject:Date:References:From; b=TpYq5X0aCNan7f/Cqiu2aKlfD1X5fJesPjCJq/7P2Mhd6PcC/TLTkqyyBNdNKYIuS IB/JJ0Ks6SPn6NnalskyJ9X3DrWqklCUmd0u22Z7CFGPYXnewfVwFGFgRw5M0mEVls qtdVhejy4Z4Gtr7YP/0HokO4UOJocu760nYUB5QBPtUePxHciDxFfXXbQhfPi+e2IX UmUVazGg+xo9y+O3U2gmmaF9/RBNO5YZJOXMPWOTsl8gF1j3UXYNAHCbONOpRAhgnG TGx0Ffpc66OQ/+DaoVAZ0MLvDmw9MK6G1+L2TABwYRxnGLMkommZ/5lhwSF3MaVMBc j+7w9vOY7lX6A== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id BA5D637DF; Mon, 10 Sep 2018 15:50:45 -0700 (PDT) Received: from us01wembx1.internal.synopsys.com ([169.254.1.253]) by US01WEHTC3.internal.synopsys.com ([::1]) with mapi id 14.03.0361.001; Mon, 10 Sep 2018 15:50:45 -0700 From: Thinh Nguyen To: Anurag Kumar Vulisha , "balbi@kernel.org" , "gregkh@linuxfoundation.org" CC: "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Thinh.Nguyen@synopsys.com" , "v.anuragkumar@gmail.com" Subject: Re: [PATCH v4 6/8] usb: dwc3: check for requests in started list for stream capable endpoints Thread-Topic: [PATCH v4 6/8] usb: dwc3: check for requests in started list for stream capable endpoints Thread-Index: AQHUR4UYRgxFEofqUUKoe+A6FKwC1w== Date: Mon, 10 Sep 2018 22:50:44 +0000 Message-ID: <30102591E157244384E984126FC3CB4F544ADF4D@us01wembx1.internal.synopsys.com> References: <1536418986-16609-1-git-send-email-anurag.kumar.vulisha@xilinx.com> <1536418986-16609-7-git-send-email-anurag.kumar.vulisha@xilinx.com> <30102591E157244384E984126FC3CB4F544ADE8E@us01wembx1.internal.synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.184.20] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi,=0A= =0A= On 9/10/2018 1:13 PM, Thinh Nguyen wrote:=0A= > Hi Anurag,=0A= >=0A= > On 9/8/2018 8:03 AM, Anurag Kumar Vulisha wrote:=0A= >> For stream capable endpoints, uas layer can queue mulpile requests on=0A= >> single ep with different stream ids. So, there can be multiple pending= =0A= >> requests waiting to be transferred. This patch changes the code to check= =0A= >> for any pending requests waiting to be transferred on ep started_list an= d=0A= >> calls __dwc3_gadget_kick_transfer() if any.=0A= > Whenever a function driver queues a request, then=0A= > __dwc3_gadget_kick_transfer() will be called right? What case exactly is= =0A= > this for? Scatter gathering? If so, then we probably need further=0A= > explanation. (e.g. Why wait to call __dwc3_gadget_kick_transfer() on=0A= > XferComplete event rather than sending a START_TRANSFER command for=0A= > every prepared TRB whenever we do __dwc3_gadget_kick_transfer()?).=0A= =0A= Please ignore my question. We only do 1 transfer per stream id at a=0A= time. That's fine.=0A= =0A= Thanks,=0A= Thinh=0A=