Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1976136imm; Thu, 24 May 2018 03:54:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryNAPU2Un7AfWwdSoRWgok3EInqDqw8vta522Wx8SmB/zwwUZf9ldWtynLApgfB3exbXEd X-Received: by 2002:a63:8a4a:: with SMTP id y71-v6mr5298284pgd.291.1527159266323; Thu, 24 May 2018 03:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159266; cv=none; d=google.com; s=arc-20160816; b=vR0PoAn2sKoJe03fuq79iy53Kc+QUSva1CGkpIBdPeLGkdnItKiseFtOF6Tsqgc+pt 2j5DWromty4+yqXhKYVIYrpdPUO0H5SzF5h0qM5CG1kAzcIc3mbgzNetp6LTzfH/ZSlN qnriefobW8sehxcn4R8MeJKbJM0XsN+531Q+jtUGu+65XTCINxA0dMTC81M5YVOXvf5U Q4MrjRTkrqc/ErmJdOElFlBRmsgVgY3B98V0+4662bD+QomaQ38mu8uJbQ+QGDuT+AO3 NHlzVt1WfNnys2yYNXz3rGcwaxzDWhqKZughY56uc4bK72Q9kUujh+CZtYcw1GPGKUYL OYnw== 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=1+0+lcgk7m4NwPEZxmU1aqXFsayxGYNoFU1mVk0QsJY=; b=FL3vVdohQ3qco7wDvLPk8Qu5ZVCz/wTxYhyd7bLCM05Omypl/San/AyN98+/tRgE5b MGV77xjn4tARQ4ueK1EJtKgUTjgHaw0/fwxIpoM9GCT7rWh0zPuzsmZPo59y4Qv6Rojx U6yPUyc2K4f0SB53W8ySVWJEmbYiSTgZY3U7f9kO/yki3+hfulK8aeCgdsj15TfpVAt5 gFP7uUPReJomxsYf+8yyANTI7w/bzbS4Uarc6EnV+bAxXdIDEbqZoXjUfXEvuBdk7MUB B9zBhkNO6NodliZegtBUHPeFG4k+Lhmi+ixw0IpfKrKBb0NgISRjYiYoc5P9+uJHCDRP SVeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EG9R4Xt/; 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 g7-v6si16075828pgq.372.2018.05.24.03.54.11; Thu, 24 May 2018 03:54:26 -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=EG9R4Xt/; 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 S1030409AbeEXJ5J (ORCPT + 99 others); Thu, 24 May 2018 05:57:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:36832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030366AbeEXJ5A (ORCPT ); Thu, 24 May 2018 05:57: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 1DF1A20893; Thu, 24 May 2018 09:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155819; bh=KaxdKTllr7VicgmwAAwYPX0NCqt6Cq6EL1Bkphl8YOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EG9R4Xt/gXEdGb+CSh4iMFuhxQQZ60WNrCYXZOd4bIxI8r/1cT5hXxQuHYSGok5eJ 5rwyEv9cMHBygTj4uXgW7OABK0Hh0hpcIgclHej6BfbsmBSqS7NbOcOcAxJ1y8aUMH y0UH+xrIElTnTfK+8oZw8qoNwWua+HNaFqBg7lyA= 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.14 129/165] clk: tegra: Fix pll_u rate configuration Date: Thu, 24 May 2018 11:38:55 +0200 Message-Id: <20180524093627.222721421@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-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 @@ -1151,6 +1151,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,