Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6339290ybh; Wed, 7 Aug 2019 22:15:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu4Ya3g3+iEOU8LPpUlnzohS1wMzbBd48MGMRKOU4FZDR5Ntwi2NUl9mRFM8IsaqD7x4Hv X-Received: by 2002:a17:902:4681:: with SMTP id p1mr11725030pld.256.1565241340002; Wed, 07 Aug 2019 22:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565241339; cv=none; d=google.com; s=arc-20160816; b=AtEF6JK5kBTSj9RiUPTUOw3W2G4r4EijyFdMmfwYRuFcMFJ+gH9UH0Ct6zZvi3XviK rn+3z0HEaBd5O9UxsCCKReDwOYyS6H7saPbTS8kfb1BaLLrqHIdbyN0dXLtL4UEZ3+KB xDW5H/wBo4ytm1FwcSRL6e2tbiLv4CjEMNY2m9CNE3O0ASfv/flZFoktaABUJJKeWQdy Vf2h3Xhh64vVijUDCbLVcDr2nswhxkH6yugow3ASTw+Gyzh+5qoO+aotIz8oW7vlf5eN lrlmDR5zhiOJTGdQjZJdY4Ckvp4kIEgcj3pyQziWSRMY119y1Ub3dX3JGpUkYuzY1BME YxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=UPPfyPH/ZQhWliGtqRqyyMwSjGcGu4wVkrsqXqdIj/M=; b=QyhlpL/1RerHUzfLjB5HgOTKXEq/5BFMA5GDJgtimoRgNEzsRNEdlb+R3If/1Sdccv UjFVtTThNpSpwafNHcsciKQK7XrvQr5HfKoBEcixCD5N/QpY4VGHc8rZqtgs87h3YxIL OrVSGC3FD0+WgpRyLkdM6jeIZJgbyGm+GHNC3DeZVDoat3IQfPwC98IokLfZe1xYvZjw SC/tYSh9M3KWgoP/rKLS2uXpIc6LPJK9kpJ5io45HT3hKTlS6bB/dNqHeAvIlJtGV1Gj LIgYzeyhYWpeEndOoY8zZtPjtOQmGEqIv//Z5nb2MeGrCAaOrPpTTt6l9YZ3VbQ6A0Bn +oDw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si50167216pgj.71.2019.08.07.22.15.24; Wed, 07 Aug 2019 22:15:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730887AbfHHFHS (ORCPT + 99 others); Thu, 8 Aug 2019 01:07:18 -0400 Received: from mga05.intel.com ([192.55.52.43]:28742 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfHHFHS (ORCPT ); Thu, 8 Aug 2019 01:07:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 22:07:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,360,1559545200"; d="scan'208";a="174736649" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga008.fm.intel.com with ESMTP; 07 Aug 2019 22:07:15 -0700 From: Felipe Balbi To: Yinbo Zhu , Greg Kroah-Hartman , linux-usb@vger.kernel.org, open list Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ran Wang Subject: Re: [PATCH v1] usb: dwc3: remove the call trace of USBx_GFLADJ In-Reply-To: <20190729064607.8131-1-yinbo.zhu@nxp.com> References: <20190729064607.8131-1-yinbo.zhu@nxp.com> Date: Thu, 08 Aug 2019 08:07:14 +0300 Message-ID: <875zn8nt31.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Yinbo Zhu writes: > layerscape board sometimes reported some usb call trace, that is due to > kernel sent LPM tokerns automatically when it has no pending transfers > and think that the link is idle enough to enter L1, which procedure will > ask usb register has a recovery,then kernel will compare USBx_GFLADJ and > set GFLADJ_30MHZ, GFLADJ_30MHZ_REG until GFLADJ_30MHZ is equal 0x20, if > the conditions were met then issue occur, but whatever the conditions > whether were met that usb is all need keep GFLADJ_30MHZ of value is 0x20 > (xhci spec ask use GFLADJ_30MHZ to adjust any offset from clock source > that generates the clock that drives the SOF counter, 0x20 is default > value of it)That is normal logic, so need remove the call trace. > > Signed-off-by: Yinbo Zhu > --- > drivers/usb/dwc3/core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index 98bce85c29d0..a133d8490322 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -300,8 +300,7 @@ static void dwc3_frame_length_adjustment(struct dwc3 *dwc) > > reg = dwc3_readl(dwc->regs, DWC3_GFLADJ); > dft = reg & DWC3_GFLADJ_30MHZ_MASK; > - if (!dev_WARN_ONCE(dwc->dev, dft == dwc->fladj, > - "request value same as default, ignoring\n")) { > + if (dft != dwc->fladj) { if the value isn't different, why do you want to change it? -- balbi