Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp372541ybj; Wed, 6 May 2020 20:28:45 -0700 (PDT) X-Google-Smtp-Source: APiQypL8nZTrf/ImktP67vNxCYAQga9pM8tRPzxSnG5jTFe7IhRbh4lEnPpTDjMMWw71NYgIv3Zw X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr10337161eds.215.1588822125567; Wed, 06 May 2020 20:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588822125; cv=none; d=google.com; s=arc-20160816; b=MvwP8kyH6qMOVcUehVvAlw0bGZtLmHeHiHVNrQcjvihoS9ldMh/L+J/FgaILPV7qu4 DjsExPEAlNx18pY5rx6n92/ga2Rjc74Hu2YdxW7mvQg+QRL4tnJ0LfqBRkDMTSRsiTnX to6lzTRW313BkOuiyeA+9PIDYnYLUexaAT4tbxKWDL5KKhzot7T8DEt1rzliNsBaPQrK OlbeCeYd+BrzfmbO9vxYWLqdJXCAUa8yMIUFEKtQy/7gh/EVZfBwujvuw2kW88RylH8J OSkdiyKCqP9/+HGuWa5lABDgoe3gOPHT6kNUPI1oc3mvP/h1lWHkwosPAxQoawHNc16c 9iYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=b5KrgkS9IpHYVnkrIf1m2LB5pieWU4ZRsegpvq8ZuNM=; b=nMk5ZnW3lyuF2tB6ROtwoDIXtvQTJU2I64wgkwvCF7+gL0My8zaI3kEF+WM7oNAatN CGTdDWdANC/24mCwunSj8tpSG2xKEtlpoTIdTzAcqgSKCjRaOpzlt0/5XnnozTpQRd6P 84bforZHp5wYFYuibWw7nSFvlLIPi4UXAtWOlr/b0Fchywv0bxXn3KcLqnzCHmONj2c+ qhIgKqHEKg27dWGSEqIY0QFYubbxjGg9HvZefqfUxJ1pVLxRlihmFaaa92205vWFUOHj ZwAmK+4+owu0ECcpxOyRzjVggeuwdYRGJB4xayy09HRLuqBSjeIvSWL8e6twhT3knKSA FFEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQH6RfxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr24si2410575ejb.162.2020.05.06.20.28.22; Wed, 06 May 2020 20:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQH6RfxU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbgEGDIR (ORCPT + 99 others); Wed, 6 May 2020 23:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725879AbgEGDIQ (ORCPT ); Wed, 6 May 2020 23:08:16 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C17BC061A0F; Wed, 6 May 2020 20:08:16 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id b6so1346113uak.6; Wed, 06 May 2020 20:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=b5KrgkS9IpHYVnkrIf1m2LB5pieWU4ZRsegpvq8ZuNM=; b=nQH6RfxU7ceNQuXYXgG9OZlSHcATWEnjnhVkzSi1Bop+6sQlFdf2KboXe+5MRiTOPZ wXed/hWDipbbakcaTpb+kOKIbF7MLdB84XNqIhkkaPvWP3L2PD8d6D+Y6W+3gClHxG+H K8qib7WZguDpYxSbhB1djNjEJZks9oM9+/cMA+5mNycHbJfDzz+2S9eJ3vHO6jeQwId0 0+m05MEFgioXDWBnkBJ4z8D1JeUYmsRs3wYGcbtrU9O1SkQVJQkFFR6PVHEai0Tx5iK7 05Htbwrt6jmfcrguLgsyCehN71Ydh/PPSJsZoDLUibLmLwScZdvQU1ISgYZZKzOzc+4h AfJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=b5KrgkS9IpHYVnkrIf1m2LB5pieWU4ZRsegpvq8ZuNM=; b=re5YeSuedIfPEN5jqxu2c6gGTtNBVJrqTEeXsp3pCNxKanjqE6l99v+ioBEJ9kjs0M hLZ1oLfmNbs0tz8KJtO55PNuWD5e6hZoCBn7pkECFydliFJJgYvGBw5DtYDdC0HwxIU3 ndMY3BMfIyC8MSNlTUruowsZ2saGhRLDZzTnC5EJfrT138ZnANYoXaSqSjxZ/cZRrenS n/EcZw9YJpG2elSTJ6kVNb/hvYC+RUopsDr+yPE/z30faMBuuyEnPzAMVJ5mdMMzo+O4 ET3gNiTGuoJGiPekpZZllJDuSFq30QYi2hEMF7Jr7KQjInlkupKHqO0Xx/T3WC0ZohAT ezug== X-Gm-Message-State: AGi0PuYg2sQClTF1dkkeINThCeZWotKQ0UlVTcn+T3T3f2AMtFK8I4Uz pdJxx99gKeHwwGydY1mNQG8H6VrNpbqyEZanB/nxBknI X-Received: by 2002:ab0:375a:: with SMTP id i26mr9842013uat.120.1588820895622; Wed, 06 May 2020 20:08:15 -0700 (PDT) MIME-Version: 1.0 References: <20191028215919.83697-1-john.stultz@linaro.org> <20191028215919.83697-4-john.stultz@linaro.org> <87mudjj4rc.fsf@gmail.com> In-Reply-To: From: Jun Li Date: Thu, 7 May 2020 11:08:04 +0800 Message-ID: Subject: Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller To: John Stultz Cc: Felipe Balbi , lkml , Yu Chen , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Hans de Goede , Andy Shevchenko , Valentin Schneider , Jack Pham , Linux USB List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John Stultz =E4=BA=8E2020=E5=B9=B45=E6=9C=887=E6= =97=A5=E5=91=A8=E5=9B=9B =E4=B8=8A=E5=8D=886:27=E5=86=99=E9=81=93=EF=BC=9A > > On Wed, May 6, 2020 at 2:00 AM Jun Li wrote: > > John Stultz =E4=BA=8E2019=E5=B9=B410=E6=9C=883= 0=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8A=E5=8D=885:18=E5=86=99=E9=81=93=EF=BC= =9A > > > On Tue, Oct 29, 2019 at 2:11 AM Felipe Balbi wrote= : > > > > John Stultz writes: > > > > > From: Yu Chen > > > > > > > > > > It needs more time for the device controller to clear the CmdAct = of > > > > > DEPCMD on Hisilicon Kirin Soc. > > > > > > > > Why does it need more time? Why is it so that no other platform nee= ds > > > > more time, only this one? And which command, specifically, causes > > > > problem? > > > > Sorry for my back to this so late. > > > > This change is required on my dwc3 based HW too, I gave a check > > and the reason is suspend_clk is used in case the PIPE phy is at P3, > > this slow clock makes my EP command below timeout. > > > > dwc3_gadget_ep_cmd: ep0out: cmd 'Set Endpoint Configuration' [401] > > params 00001000 00000500 00000000 --> status: Timed Out > > > > Success case takes about 400us to complete, see below trace(44.286278 > > - 44.285897 =3D 0.000381): > > > > configfs_acm.sh-822 [000] d..1 44.285896: dwc3_writel: addr > > 000000006d59aae1 value 00000401 > > configfs_acm.sh-822 [000] d..1 44.285897: dwc3_readl: addr > > 000000006d59aae1 value 00000401 > > ... ... > > configfs_acm.sh-822 [000] d..1 44.286278: dwc3_readl: addr > > 000000006d59aae1 value 00000001 > > configfs_acm.sh-822 [000] d..1 44.286279: dwc3_gadget_ep_cmd: > > ep0out: cmd 'Set Endpoint Configuration' [401] params 00001000 > > 00000500 00000000 --> status: Successful > > > > Hi John, > > > > Do you still have this problem? if yes, What's the value of > > USBLNKST[21:18] when the timeout happens? > > Sorry. As I mentioned, I was working to upstream a patchset that I > hadn't created, so the context I had was limited. As I couldn't > reproduce an issue without the change on the device I had, I figured > it would be best to drop it. That was fine. > > However, as you have some analysis and rational for why such a change > would be needed, I don't have an objection to it. Do you want to > resubmit the patch with your explanation and detailed log above in the > commit message? Sure, I will resubmit the patch with my explanation added in commit message= . thanks Li Jun > > thanks > -john