From patchwork Tue Sep 1 14:02:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 52928 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id C91D92157D for ; Tue, 1 Sep 2015 14:03:10 +0000 (UTC) Received: by wiclp12 with SMTP id lp12sf11128767wic.0 for ; Tue, 01 Sep 2015 07:03:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=RKqitz1oE7xpW88XFaKMG6JeNAviW4c2PXhcKcjIe5I=; b=eTomSv/vEpprhzDrlFmHI8+8fwSE0kCWamipuy8+qI0QzWfATJ3jsXM3mNtrPCAjts jn4eVU/bhPaq5uVnbXUUQV6s0Z/5Ya38PuL5lfpmMoD0TCUhFiW0U5ZsUEXMQ94p8ute M1Q0PXv4c31b992Ln5gTa//rmgnJM8//WEy4wJqKqp9Cb//OkbERn2uWJSCmlU6v4JsN tEcM5mY4xIVLheNhd9KnUy/CoC930a4nmBMmnQyVQbMCz/P4DMzBZqD0B/8w5rhdMN5t FqLP5fyw32a0BcN2wTR35aXhcvEoFE6G5QLvthIeMgNFBGJsECyDHVzGwYU3aaGA7zpB nLPg== X-Gm-Message-State: ALoCoQnSib1Xb5PeF4ir7D0uLHt+iCMa+DQo+eOcY/5tfcdRwcTVWgVgXe62a5+UT62ffyBDby+5 X-Received: by 10.194.115.135 with SMTP id jo7mr7683974wjb.7.1441116190120; Tue, 01 Sep 2015 07:03:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.129 with SMTP id 1ls218876lau.58.gmail; Tue, 01 Sep 2015 07:03:09 -0700 (PDT) X-Received: by 10.112.54.132 with SMTP id j4mr13093150lbp.84.1441116189973; Tue, 01 Sep 2015 07:03:09 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id s2si16497754lbo.86.2015.09.01.07.03.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 07:03:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lamp12 with SMTP id p12so327415lam.0 for ; Tue, 01 Sep 2015 07:03:09 -0700 (PDT) X-Received: by 10.152.18.194 with SMTP id y2mr3897589lad.88.1441116189072; Tue, 01 Sep 2015 07:03:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp559429lbb; Tue, 1 Sep 2015 07:03:05 -0700 (PDT) X-Received: by 10.68.103.5 with SMTP id fs5mr47376938pbb.55.1441116185382; Tue, 01 Sep 2015 07:03:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id at5si2206270pbc.108.2015.09.01.07.03.04; Tue, 01 Sep 2015 07:03:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752335AbbIAODC (ORCPT + 4 others); Tue, 1 Sep 2015 10:03:02 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:55626 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752147AbbIAODB (ORCPT ); Tue, 1 Sep 2015 10:03:01 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id t81E30sr024838 for ; Tue, 1 Sep 2015 09:03:00 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t81E30UQ025385 for ; Tue, 1 Sep 2015 09:03:00 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Tue, 1 Sep 2015 09:03:00 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t81E30Gg019815; Tue, 1 Sep 2015 09:03:00 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Felipe Balbi Subject: [PATCH] usb: dwc3: gadget: move trace_dwc3_ep_queue() Date: Tue, 1 Sep 2015 09:02:59 -0500 Message-ID: <1441116179-2796-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , by moving trace_dwc3_ep_queue() from dwc3_gadget_ep_queue() to __dwc3_gadget_ep_queue() after usb_request is properly initialized, makes for a better output always showing a request with 0 actual and -115 (-EINPROGRESS) status. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 0c25704dcb6b..1ea565f307e4 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1050,6 +1050,8 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) req->direction = dep->direction; req->epnum = dep->number; + trace_dwc3_ep_queue(req); + /* * We only add to our list of requests now and * start consuming the list once we get XferNotReady @@ -1159,8 +1161,6 @@ static int dwc3_gadget_ep_queue(struct usb_ep *ep, struct usb_request *request, goto out; } - trace_dwc3_ep_queue(req); - ret = __dwc3_gadget_ep_queue(dep, req); out: