From patchwork Fri Oct 17 17:16:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 38988 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D51DA202DB for ; Fri, 17 Oct 2014 17:20:09 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id hi2sf801321wib.1 for ; Fri, 17 Oct 2014 10:20:09 -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 :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=uo9J6ENXsqbTNE38dRKfJF56d+6Gc0Igu346waPMh8k=; b=C5j/lFSD2GU8RjBybBXC2+ejk+F6I/tQwNH1OLPc8vekJxYekbGVenRh9TEMKt72k/ KbxwFJ/aHQwLOnAtUWvZp923XikC8TY1MVvKj5nuYl1XkQvey+7usjr99qwpAnao+c3D DmVL1AT86s3U6RNJB6NmG1ol3CGjqWSKuS2GHBhmSADSkIEx/r9H6xsNXq10lyTJbdmR wFQzAHoQ186JblsZ5qXSrl+SGDW+1VOphZKMrm7IAykaj73REBKW4nUZ6cvrJ4YqfP5G rc7iiOyrvBCZKKvX7iWNfNgEfNse58F2H+6DCrCq2f+HBlzfmyL2JUqXQLOJyiC6T3Lg GsxQ== X-Gm-Message-State: ALoCoQkp3TTvJgUAIFjKNaKM1+guSRXPenkYLaKBoZ97DvOMDvPCSsrF8CMoKYTqam0oWHfiCNwB X-Received: by 10.152.28.4 with SMTP id x4mr40749lag.7.1413566409085; Fri, 17 Oct 2014 10:20:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.130 with SMTP id z2ls279507laa.61.gmail; Fri, 17 Oct 2014 10:20:08 -0700 (PDT) X-Received: by 10.152.205.103 with SMTP id lf7mr10352843lac.2.1413566408945; Fri, 17 Oct 2014 10:20:08 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id pw1si3051310lbb.13.2014.10.17.10.20.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id l4so1040091lbv.38 for ; Fri, 17 Oct 2014 10:20:08 -0700 (PDT) X-Received: by 10.152.202.135 with SMTP id ki7mr10338061lac.40.1413566408534; Fri, 17 Oct 2014 10:20:08 -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.84.229 with SMTP id c5csp268429lbz; Fri, 17 Oct 2014 10:20:07 -0700 (PDT) X-Received: by 10.68.204.8 with SMTP id ku8mr9779116pbc.103.1413566407034; Fri, 17 Oct 2014 10:20:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gv6si1574384pac.208.2014.10.17.10.20.06 for ; Fri, 17 Oct 2014 10:20:07 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753413AbaJQRRv (ORCPT + 3 others); Fri, 17 Oct 2014 13:17:51 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:44308 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbaJQRRn (ORCPT ); Fri, 17 Oct 2014 13:17:43 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s9HHHYIx008026; Fri, 17 Oct 2014 12:17:34 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHYVD029228; Fri, 17 Oct 2014 12:17:34 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 17 Oct 2014 12:17:34 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s9HHHX0I030703; Fri, 17 Oct 2014 12:17:34 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Greg KH , , Paul Zimmerman , , , , , , , Felipe Balbi Subject: [PATCH 09/67] usb: dwc3: ep0: trace ep0 TRBs too Date: Fri, 17 Oct 2014 12:16:16 -0500 Message-ID: <1413566234-13537-10-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1413566234-13537-1-git-send-email-balbi@ti.com> References: <1413566234-13537-1-git-send-email-balbi@ti.com> 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.217.179 as permitted sender) smtp.mail=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: , Add TRB tracepoints for ep0 TRBs as that might help finding bugs with ep0 handling. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/ep0.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index ee216c6..4182210 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -86,6 +86,8 @@ static int dwc3_ep0_start_trans(struct dwc3 *dwc, u8 epnum, dma_addr_t buf_dma, params.param0 = upper_32_bits(dwc->ep0_trb_addr); params.param1 = lower_32_bits(dwc->ep0_trb_addr); + trace_dwc3_prepare_trb(dep, trb); + ret = dwc3_send_gadget_ep_cmd(dwc, dep->number, DWC3_DEPCMD_STARTTRANSFER, ¶ms); if (ret < 0) { @@ -791,6 +793,8 @@ static void dwc3_ep0_complete_data(struct dwc3 *dwc, trb = dwc->ep0_trb; + trace_dwc3_complete_trb(ep0, trb); + status = DWC3_TRB_SIZE_TRBSTS(trb->size); if (status == DWC3_TRBSTS_SETUP_PENDING) { dwc3_trace(trace_dwc3_ep0, "Setup Pending received"); @@ -854,6 +858,8 @@ static void dwc3_ep0_complete_status(struct dwc3 *dwc, dep = dwc->eps[0]; trb = dwc->ep0_trb; + trace_dwc3_complete_trb(dep, trb); + if (!list_empty(&dep->request_list)) { r = next_request(&dep->request_list);