Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1935773ima; Thu, 25 Oct 2018 07:15:48 -0700 (PDT) X-Google-Smtp-Source: AJdET5cAsx7zuOYzfyYGwbPvHwdg8tSTzgIzuVlmhlep/uGGZwns/zxHSKWcsxj4Ye38wildqXkY X-Received: by 2002:a62:3911:: with SMTP id g17-v6mr1817279pfa.170.1540476948600; Thu, 25 Oct 2018 07:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540476948; cv=none; d=google.com; s=arc-20160816; b=qopviMx4Tnhlb0vNTGalxPfG7lWOI637GQPZtf/euuHUiLGvTzVt+uolBgkKLXOANT zbfCiXAOSngETLPZQJnpBI3Vcy2s2SXHcy+IeOofz/ec/Vxh00c7z+YQ/hRIPTM22/Jf O9FgNfdIuNMMSX4VCk1fJCdIblxJGUkUZt9O39fWSSb7v2d+sEm85yRsvpPgHqQDchqT al0X6ZURjR+U4xyW29eTP/FxMQgQpcyCHUmwrXvvuN+lu/5kBaH6r5GNmAk8qhmeJk6E zSDyEtQJwiSHYMQ+IG5Qk3e+hO+rPy5MzFzHlm90yKP1uZxQBjTrwE/aC6QB3uaG1cqm suHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Cw9I4kSJldOx7u10Ef+HfZb69pbyeFHQHaDjrBjyjrQ=; b=eFa+GNNS7K+NbteMg2FsEO0ZL7CBtpVgLaozXL0K65SVSc1x1GLs0GvEuKPLZsrp+8 DKjS8lwObHuRNdY0n2BaRJ08QcBzj6JFF6xDxkqPJLNeqgmW3b9fFCDQogTmMgtBsN05 AyZd++6l99XSJfbiYNOe1GMm5WBnIADRXVmeOHkZUN9gvW4kW7zq98c87r/YtWhdjBUH 5ikH+AE1hZJeSyZeOUclf/WqQv0Nq9bFMYy2Bxf9dyMfyMWYoNd1GbYog8lm/6qm/qrk jQgxKn8eJSC2sYihA2awTfM/bt3yGXFfFcxOGXZHI5ifpF9rnLe0TKzv28u+bCG77RqA q8fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fEhDA2+F; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si5249803plk.55.2018.10.25.07.15.28; Thu, 25 Oct 2018 07:15:48 -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=fEhDA2+F; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbeJYWoT (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:52964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbeJYWoS (ORCPT ); Thu, 25 Oct 2018 18:44:18 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F2532084A; Thu, 25 Oct 2018 14:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476683; bh=kX8/gkrXiZxe2ZSaR2fLerdMun7swquSo3OluOxfya0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fEhDA2+FCALrQEw7SIwvryPQVsGIWGOETYvQMU9g681nki3uyC7HQw8tbnbSH9RAx c93an3jqMXXfnAt0nXvoojmuQuOqh6BWpL4gX5Oe/nIflaiQPjtdVJziP6ly3ogfPP VbATSo3gwteIiRRL5ijxUhorwKHSJXgHkvrrr/yI= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcel Ziswiler , Thierry Reding , Sasha Levin Subject: [PATCH AUTOSEL 4.14 20/46] ARM: tegra: Fix ULPI regression on Tegra20 Date: Thu, 25 Oct 2018 10:10:27 -0400 Message-Id: <20181025141053.213330-20-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler [ Upstream commit 4c9a27a6c66d4427f3cba4019d4ba738fe99fa87 ] Since commit f8f8f1d04494 ("clk: Don't touch hardware when reparenting during registration") ULPI has been broken on Tegra20 leading to the following error message during boot: [ 1.974698] ulpi_phy_power_on: ulpi write failed [ 1.979384] tegra-ehci c5004000.usb: Failed to power on the phy [ 1.985434] tegra-ehci: probe of c5004000.usb failed with error -110 Debugging through the changes and finally also consulting the TRM revealed that rather than the CDEV2 clock off OSC requiring such pin muxing actually the PLL_P_OUT4 clock is in use. It looks like so far it just worked by chance of that one having been enabled which Stephen's commit now changed when reparenting sclk away from pll_p_out4 leaving that one disabled. Fix this by properly assigning the PLL_P_OUT4 clock as the ULPI PHY clock. Signed-off-by: Marcel Ziswiler Reviewed-by: Dmitry Osipenko Reviewed-by: Rob Herring Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- arch/arm/boot/dts/tegra20.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 914f59166a99..2780e68a853b 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -706,7 +706,7 @@ phy_type = "ulpi"; clocks = <&tegra_car TEGRA20_CLK_USB2>, <&tegra_car TEGRA20_CLK_PLL_U>, - <&tegra_car TEGRA20_CLK_CDEV2>; + <&tegra_car TEGRA20_CLK_PLL_P_OUT4>; clock-names = "reg", "pll_u", "ulpi-link"; resets = <&tegra_car 58>, <&tegra_car 22>; reset-names = "usb", "utmi-pads"; -- 2.17.1