Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6559314ybx; Mon, 11 Nov 2019 10:57:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzN/irRJKmGQyJjmSz4kBUTFeldlimwih8kUQ6mwO0KPz/hOuEaEBIfBV2YjNcw5uDh8ZPc X-Received: by 2002:aa7:d496:: with SMTP id b22mr28150311edr.122.1573498645916; Mon, 11 Nov 2019 10:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498645; cv=none; d=google.com; s=arc-20160816; b=gAvxHTXn3trUDwNR99CQCmpf7YGGVjUEvl0P8kF2zbVe6PCY10KKu169kg7Fx01sik NdwLXMHK02rW37Km19zczC4rhEYM6cpsLs/w6T6kk2UHvf5j+2fY3dVi0Xn5Apz90kaJ LUpAM77bAi3al/cv+HB1zkwX15RW6uaFDmfKG+wakq9tWSO78g7R3H41+Uhl5aDQnvB9 9DMnX38wPhuThnPVTKgULoX6dbNebltxkrscrVkpQ6QfsmIKOkuYQYUbSzSX+s49HERf rL60FKMO/jZaed4taW5IQjbwurfLDybnBm4cnpSgw3iVnEbQ7HJTTJdvARfIPL/D7Cd5 qhoA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cjFUFCSyzxTb02jf/CRwPJBjbmr6HYjccMvCy+GyAKo=; b=zPBBFwaVdo5Xp7q7g+yXbFZlfAhO4/294O3bzmOX+OFLCJJqjpW6pOaBQax+Z3UBRo LSX72YzBnXsxQUfd5+Wf8eWeif+SjgJutlCD45AFbqtevaTWtnHIunOTmNTmezK2nixZ ziune03oamx7abaKWlcu/juydqebhqVj8mti8CP1QA2CrKk3Hx+siHx6Ug5BoOt3EdV/ DRJFSj/dOzAoF6gujaWOdbxwTi+935T5ay5/ZWAZ33v2xfzIA63HfVua6eneZgREjGwc wy/EgFwf9sVA2QkL6uK+yAalxe3+GvooLnrVgc3KuAs66ZB57CE9lXOV2cYYKg6Ox+7Q t5EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZwxYtUWa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si1237495ejj.367.2019.11.11.10.57.01; Mon, 11 Nov 2019 10:57:25 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ZwxYtUWa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730622AbfKKSz3 (ORCPT + 99 others); Mon, 11 Nov 2019 13:55:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:52386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728884AbfKKSzZ (ORCPT ); Mon, 11 Nov 2019 13:55:25 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B74222184C; Mon, 11 Nov 2019 18:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573498524; bh=BduA33MkIdluInFlIHsgu2waxvWG4psYvG4WtC4YEs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZwxYtUWaNRjHb7XXqjiKkJGYIWM7kH9olMxvbdEZVMHHp0v0ESBJb3779Lb245mbD VCJ76FAddmO278APVTglv19ixsbcyJp7D6DsSosmwWKKf9zF/mPkTJCAZ8YnujYboE VwqAnNsNrQ/7N6lsQ1X1rU3oYNl1Pau3hBCR+rVk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yinbo Zhu , Felipe Balbi , Sasha Levin Subject: [PATCH 5.3 143/193] usb: dwc3: remove the call trace of USBx_GFLADJ Date: Mon, 11 Nov 2019 19:28:45 +0100 Message-Id: <20191111181511.706941895@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191111181459.850623879@linuxfoundation.org> References: <20191111181459.850623879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yinbo Zhu [ Upstream commit a7d9874c6f3fbc8d25cd9ceba35b6822612c4ebf ] 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 Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- 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 c9bb93a2c81e2..06d7e8612dfed 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.20.1