Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2019692imm; Thu, 24 May 2018 04:37:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4YbthUcwzelU1IxKbpKAfugcsm2zUlxd9uk+jMdOiiCKNltq/AO75Q978i14d9Nmko0k0 X-Received: by 2002:a62:4708:: with SMTP id u8-v6mr6943425pfa.89.1527161862142; Thu, 24 May 2018 04:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161862; cv=none; d=google.com; s=arc-20160816; b=j0rd5LLyFrjGURFF5YPPQ9ZDB17o/KTSyEShJOaxxQe/Ns5wxPwDb/lzpF1zdEb+uZ 6XY/fxRlujaKeDjWHB6tR/9A9cLf+xHmj8X6YLIItp3FlRpbXFGiV9mY409t2kZ/N23X +PPcqEip6rqOOl5Olzif01MGtNr3ytTxjjb7occtvA3KPXX+4DofPjNHwVj+RX5mxjPN 9stBZ8tfLqJB7GDcnZUuIz7/zAvbDO/V6lwW7mQ2ycLoqwlQqo1qi2eP4E1hMvYOXLQg NXsLO2pFpCvvfLtT+UyPjg76Gi04Uip5iivnZ6HsxcCA9QZJXwXrS9q7Bviqpn6tBqNw RTlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=HCUMxLnUgbPLN2Oe4ynvwpr4oiZA5G3rR3k9/kcczWg=; b=iuLyr2Wsx2hxHEm7N6ENilw313xMJ78p9RMM34RAX30fHMpMSC95R5PiPO7hn/YLBC xivhYncN0dtqqUjuVzzeBj9JxEOSao1HcdZyy+4om/sfH22RCd80ZXIpWk6jSn5KNBMf RyeEdeqhSWKSImAsexWStu+cLr/H50W8Ui1sn/GsvAEH4Es1Q4DayGyh7pcUsPG/J4a+ 7Sjvrv2FlHc8qUs+EVTbGIuHtDZl2p6KDApyUeDRxjMoW4D6cMEfQbYE3C1QtNtn+pnl tTI1kWLWyzngdRyGRW9xqxLlf69oYVK2KA9o4bq23c80YhQplooDacb/uAyU46Qlie9K 6OdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BRrXvavM; 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 a6-v6si823901plz.351.2018.05.24.04.37.27; Thu, 24 May 2018 04:37:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=BRrXvavM; 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 S1033170AbeEXLf4 (ORCPT + 99 others); Thu, 24 May 2018 07:35:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:40048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967508AbeEXJuA (ORCPT ); Thu, 24 May 2018 05:50:00 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 20B4D20870; Thu, 24 May 2018 09:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155399; bh=+kb9Y8JuV7AFE6dFuawd1WCga1Ngt6p0s7X8o549vdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BRrXvavMEE/AuI3+yKH/G7x3bgMJcjaVDWWXBSW36syeVTs7BsuPf90uGVPRMonkx /CzqmVWu1RQxvis4V338Gvfgs1wM9vMccXlt5yJis3/Uk+5l+grA47xrZwv0hsgOg3 Ap6l5gd2WbaOkJ1qDD+ifqJr8XwqdxvL6BHwQzHQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marcel Ziswiler , Jon Hunter , Thierry Reding , Sasha Levin Subject: [PATCH 4.9 72/96] clk: tegra: Fix pll_u rate configuration Date: Thu, 24 May 2018 11:38:55 +0200 Message-Id: <20180524093609.518663249@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marcel Ziswiler [ Upstream commit c35b518f9ba06c9de79fb3ff62eed7462d804995 ] Turns out latest upstream U-Boot does not configure/enable pll_u which leaves it at some default rate of 500 kHz: root@apalis-t30:~# cat /sys/kernel/debug/clk/clk_summary | grep pll_u pll_u 3 3 0 500000 0 Of course this won't quite work leading to the following messages: [ 6.559593] usb 2-1: new full-speed USB device number 2 using tegra- ehci [ 11.759173] usb 2-1: device descriptor read/64, error -110 [ 27.119453] usb 2-1: device descriptor read/64, error -110 [ 27.389217] usb 2-1: new full-speed USB device number 3 using tegra- ehci [ 32.559454] usb 2-1: device descriptor read/64, error -110 [ 47.929777] usb 2-1: device descriptor read/64, error -110 [ 48.049658] usb usb2-port1: attempt power cycle [ 48.759475] usb 2-1: new full-speed USB device number 4 using tegra- ehci [ 59.349457] usb 2-1: device not accepting address 4, error -110 [ 59.509449] usb 2-1: new full-speed USB device number 5 using tegra- ehci [ 70.069457] usb 2-1: device not accepting address 5, error -110 [ 70.079721] usb usb2-port1: unable to enumerate USB device Fix this by actually allowing the rate also being set from within the Linux kernel. Signed-off-by: Marcel Ziswiler Tested-by: Jon Hunter Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/clk/tegra/clk-pll.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/clk/tegra/clk-pll.c +++ b/drivers/clk/tegra/clk-pll.c @@ -1145,6 +1145,8 @@ static const struct clk_ops tegra_clk_pl .enable = clk_pllu_enable, .disable = clk_pll_disable, .recalc_rate = clk_pll_recalc_rate, + .round_rate = clk_pll_round_rate, + .set_rate = clk_pll_set_rate, }; static int _pll_fixed_mdiv(struct tegra_clk_pll_params *pll_params,