Received: by 10.223.185.116 with SMTP id b49csp3703669wrg; Mon, 26 Feb 2018 04:45:11 -0800 (PST) X-Google-Smtp-Source: AH8x2251JGKYBAQV2dimtd58P9lJzEY9gKYuVr5X/oyAwk8fSLHeupwhRqNnHenOZ8M+3zR3RukR X-Received: by 10.99.43.73 with SMTP id r70mr8554929pgr.316.1519649111501; Mon, 26 Feb 2018 04:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519649111; cv=none; d=google.com; s=arc-20160816; b=Fl47apiVP56ywgV0UUcMWXAOTJ2wC00eJ86aHuCkbwT1ud5S4vtWZAKnngYnDzlE8x TMtE6sHPmDb08Au7ZC4/9ASiyQm3w/dSBIPfldFDMbDVnkqxFDKSkeBdFN1w7JQ0A+B3 HqM899H/llLbnw80wAJduW1dw0wozPXBKJ+JRsVgbkCdunwnK1D8OWQYlo0ptyubY4IO 9UUlzZkgB72fTkGx4UlIlkreh1mFVlCEBmyuMNqObRxJqTzBV5uZWbjhf9TbahbzGD3z aywAkozA7k9iig1QLClNtearGpEdO3ZQ52jFYXRTBnl6Fw6lMj17SyuliLWh2DirlAW2 +iFw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Zj2QlkTyx9DmAcGk4RfpBXOV/zp19TYzyqE+PNi3nEc=; b=nz4kZJ5qSGV/GZDSXAL97Dlv6h1G3kImpaA8MzLIMSbg9Qc5Y2Q9xkbGJN8xq2scpp CL+ze0ajwlUGb1U5RJHeDk1X7GwSD5sr+0/yCoiqRyKBDq/kHHOOJ+qr+YlC9dQ5ty3u JFmNA+js5V0E73dI8ZpEawkwCoakV9FuNVGrk2EGJfs0cMFm9H2xitT0tIBh2ZcYlFiS 5qacMyt1qqo9VUHOUgrIjJg34LI/Tq7mzvikLTrUx87PO3xXL/y/JXFKcEG6csHdEb3Q s6BMzlRcpVhwE917zSt14pMrL1mgutZH6ShQ+SkJev11p+nS8mH3YYsdhvGp5GV9FtFf tYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M6LIrFU8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si5292897pld.591.2018.02.26.04.44.56; Mon, 26 Feb 2018 04:45:11 -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=@gmail.com header.s=20161025 header.b=M6LIrFU8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753007AbeBZMmx (ORCPT + 99 others); Mon, 26 Feb 2018 07:42:53 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:38964 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752552AbeBZMmt (ORCPT ); Mon, 26 Feb 2018 07:42:49 -0500 Received: by mail-lf0-f66.google.com with SMTP id f75so16966587lfg.6; Mon, 26 Feb 2018 04:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Zj2QlkTyx9DmAcGk4RfpBXOV/zp19TYzyqE+PNi3nEc=; b=M6LIrFU8DV6avEXXTUfuceFVgj5hqPiBX2Py52EdLhtIW5zCAK+6dZv6jMEQfN3ha0 zQX/fkptb97Soyz7OcRnnSUuEVox50xv686DPSVty7TLMGHu9hF2yDBdNSXEAzoGjLQr gSFL4anMyF8I4iUZDn9Wrb5ItLHgs72uOby2NUaqekQk9tTvfk77QkL4nyciBr/jDmgy QlIyDxUZcJqF8X5KEaHr89DsgPb8EhSLd2sbo6I+Ly2Fu9nCs9Fi2iKyuawIw0DJra4V 8rRumOJblqXRnNRud3FrB/klXZroAGyW9JiZgwHk4/PX1hrl+5J89ypj3xWwYv5LADib /uoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Zj2QlkTyx9DmAcGk4RfpBXOV/zp19TYzyqE+PNi3nEc=; b=p4fmv55ffuDHJpTfokntu8+yPri0joKgxXKtbYgFH/r1V5rMx/jLsaHie7/Z+Np90J XxUfgcL2mQnZOP6RfEvaNWemqHefaU2bLkEF1M3OlPQekdmzx4bn6tl/2k4uO9rmaiYv gyDpv/JQDaEY9GAonZQArR+O6E6/cBHL8b2q6s7+Mvlf64O1RUUIL2qpz+CCGs9u8Wwe KdQlaRkVmjI/SOrLuGA7XiZ2YlO+bxx0WIF3Z5LtZ+tukQiU4e8M2wWxBaXhU4NivonH VHYir35JwTIjeJvYdc+3jvZmVPS6OKDmcP4Zl8dMvnu8zc+xlKYaeSk64xM60ELRGskP 0U5g== X-Gm-Message-State: APf1xPDRM+wexR0d4/uUoi7E98M52NzMFResqyidapBcOL6kWKmpPQd6 jnVA+JWG32GeWHOlD9fRFYp/75VD X-Received: by 10.46.16.74 with SMTP id j71mr7055249lje.139.1519648967257; Mon, 26 Feb 2018 04:42:47 -0800 (PST) Received: from [192.168.1.145] (ppp109-252-55-234.pppoe.spdop.ru. [109.252.55.234]) by smtp.googlemail.com with ESMTPSA id s9sm1961571lfe.48.2018.02.26.04.42.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 04:42:45 -0800 (PST) Subject: Re: [PATCH] clk: tegra: fix pllu rate configuration To: Marcel Ziswiler , linux-tegra@vger.kernel.org Cc: Marcel Ziswiler , Thierry Reding , Stephen Boyd , linux-kernel@vger.kernel.org, Prashant Gaikwad , Peter De Schrijver , Jonathan Hunter , Michael Turquette , linux-clk@vger.kernel.org References: <20180222230451.15515-1-marcel@ziswiler.com> From: Dmitry Osipenko Message-ID: <31f039e8-9afc-22d1-d478-a7f41db0dace@gmail.com> Date: Mon, 26 Feb 2018 15:42:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180222230451.15515-1-marcel@ziswiler.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.02.2018 02:04, Marcel Ziswiler wrote: > Turns out latest upstream U-Boot does not configure/enable pllu 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 > > --- > > drivers/clk/tegra/clk-pll.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c > index 7c369e21c91c..830d1c87fa7c 100644 > --- a/drivers/clk/tegra/clk-pll.c > +++ b/drivers/clk/tegra/clk-pll.c > @@ -1151,6 +1151,8 @@ static const struct clk_ops tegra_clk_pllu_ops = { > .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, > Tegra's USB PHY driver only enables clock and clk driver doesn't specify the clock rate in the init table. Could you please clarify where in the kernels code PLL_U rate is getting set?