Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3044580ybi; Sun, 28 Jul 2019 23:46:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJlxadbFHnNBVq8e6+1UX9esm1GQXRaKx6RczDL9iHO+8FYvC07cagU8WCrHXHsdC9jAsN X-Received: by 2002:a17:902:694a:: with SMTP id k10mr107472959plt.255.1564382788123; Sun, 28 Jul 2019 23:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564382788; cv=none; d=google.com; s=arc-20160816; b=W6YP6hTd1jGEKrP27nNvbrt8IaD87iafP8SEiLXrwYVHsQsjmxkZtOV6qApt6usr4K ljOGtNuyu8nB17PbJKnjKQNHw8mofctjPgPxs2WdW2/MRxOmvXmOqMxrZUM3A+0V6UkJ TPC+HLdbxoAHGZPNjmm7Xpxo5OArpt/LcWDMLmPIPtJFPFLgIuhhc/mRUTtahaR0GMYW GNxL1PiMMnNpeAouo5g3XbZK54oWiD4PQfmr7PSUgcr+g1KVcdGxl1Va5i1VZ+ynnpFj mvLmuhrH9TcIrfMJ8NDFRPgfqbKiG+i/8xp2PzUGB+8NaJTyqrjmBjvfvcxXl1KZJnyC b/QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=cdfqAJe25bk3P+2dUcu3rrIeeFD3UHAg5ijxiKrYM1E=; b=LN1XShIEEYmz2IWEsU8I0K962D6Zz16HaxBfGg+JdvdRq5sy5I9ij71BqQcCLEjNpg QR4HWKoGzU64aGsivxDMDQJgUyYINQswqycyyEYp8COpsAULDIHNU4X9NYsx3whJF2/y WrtJvhhcVkHpkfx0JdzILSfkGWRxswvms63jGkIyktLlJk1Zwz/lAe+zjIjzUS5HuRvi +/1vDNNnEhyR2Y0cfRM+53D/VFSkwPLmq1aS/kx+BIK36p/rCuMY4LFmwS4T4LvIUAHQ P0E5vvtEH044OEMnNDoBisq5vK003rW+d7+/HbhTw7aZdKqrnA6BadVeNBxK26vf6kxJ 9Evw== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si29233665pfn.280.2019.07.28.23.46.12; Sun, 28 Jul 2019 23:46:28 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbfG2GnN (ORCPT + 99 others); Mon, 29 Jul 2019 02:43:13 -0400 Received: from inva020.nxp.com ([92.121.34.13]:36904 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfG2GnM (ORCPT ); Mon, 29 Jul 2019 02:43:12 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0BBBD1A00ED; Mon, 29 Jul 2019 08:43:11 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9DE3F1A13EB; Mon, 29 Jul 2019 08:43:06 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EDFDC402F1; Mon, 29 Jul 2019 14:43:00 +0800 (SGT) From: Yinbo Zhu To: Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org (open list) Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ran Wang Subject: [PATCH v1] usb: dwc3: remove the call trace of USBx_GFLADJ Date: Mon, 29 Jul 2019 14:46:07 +0800 Message-Id: <20190729064607.8131-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { reg &= ~DWC3_GFLADJ_30MHZ_MASK; reg |= DWC3_GFLADJ_30MHZ_SDBND_SEL | dwc->fladj; dwc3_writel(dwc->regs, DWC3_GFLADJ, reg); -- 2.17.1