Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6549462ybx; Mon, 11 Nov 2019 10:47:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxysqZDTHZJBM1Zu7cZk3BH3D9+xJALq7kJG2i15PDNk6vptzfS6Y29MCNX/3ABXrVkfiKT X-Received: by 2002:a50:9850:: with SMTP id h16mr28750242edb.193.1573498023134; Mon, 11 Nov 2019 10:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498023; cv=none; d=google.com; s=arc-20160816; b=OFZhsJERIOqcDOkRbCuD8BdtD7ntxmAlggfA4pvZw2mANp4b7vUhiES3knuS9Ns/2K oAhdcVzUtuKcvKbmK2yFs+GQYXhv2+AXe2g/aLUp5lBHPlxuopm22lyhU8U+N4ADABaL 9iFmJfppT/1JFEI4I5gDvnTI9C7NO2U4dKeEz1FCNQoaWChcBy6xQaIUhf6dvNThTGgy 7fEKFkXU5T/+utH47wwZ3XBsUuyeOE2vYLhgPE/KFjSyt0ueFYBFZRNz83s8Z+yFIHjw hiG6QXpWvGg1oTqBxVqlormxW9+ANI+Y3BkJE3m4xFPzjf0fk8GWyC5z0jcIrp2nW14b 6/Ng== 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=2nrCRKWqjhSReZze7ahtuCZJhzzVfytKAKZpTIPPXyQ=; b=XlhiwvM9Tb8C+W0irk7855i47XhL0/GMBDqWi8ZX4ine7r/WK6K8NjiYQRaYKR9USI 9m/Hoi8E586j/ABr48eN/CTa9uH+JeeFMiUCdqrwaTkGMDSZS301QGtSdwvF2hDjtu95 2asGH0O7OM7jzuuCsdi4HpL0kDGe9jS0WM+jLJDHMtCzRf+Resj+G5MNJC0IfXeGGwQL ns6FGPmFuV0jGJILvNBrLgYrjRwlUqpZk8YBRgzSaW2u4hWC6hHbNUU86IPigQbo+xk6 MCLIc/KR2vuZNEGO1PPgDuWDerby+mfSenSHylENgopGEJahxp9w2d2PfuBgJMlTRhfX zAfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HG7czOdl; 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 v2si11931391ede.61.2019.11.11.10.46.39; Mon, 11 Nov 2019 10:47:03 -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=HG7czOdl; 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 S1729176AbfKKSpN (ORCPT + 99 others); Mon, 11 Nov 2019 13:45:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:37152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729782AbfKKSpL (ORCPT ); Mon, 11 Nov 2019 13:45:11 -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 E9BF8204FD; Mon, 11 Nov 2019 18:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573497910; bh=SgrOoM6A5+kz3s7SG/YnqFYB1nGb7q9cFugrwjUOeqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HG7czOdlMPsAGtBk9vqWknGnvTLdyaYtciSGv5tPVm1T31MfzqJ+YBGnBbKlyCj07 WX+bc4gemR9g+xDPVlj9KJCBn2wbicmlw6+wBROEjluY1q5VacQmyQGtcsog1aSeBi GBUml/P5B0NbffksG6p844YB5X9QDR9fZ+xfEaGQ= 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 4.19 094/125] usb: dwc3: remove the call trace of USBx_GFLADJ Date: Mon, 11 Nov 2019 19:28:53 +0100 Message-Id: <20191111181452.414812119@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191111181438.945353076@linuxfoundation.org> References: <20191111181438.945353076@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 05b9ccff7447a..aca7e7fa5e47d 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -299,8 +299,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