Received: by 10.192.165.148 with SMTP id m20csp3553imm; Fri, 20 Apr 2018 01:53:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HNIS2BUfSyKyZiUkcGGt9XikZn1USlNE0Ie5PVcwKxyr3cYxbwZ62rbF3hwqV1mLdPHhN X-Received: by 10.98.86.204 with SMTP id h73mr7958031pfj.47.1524214425922; Fri, 20 Apr 2018 01:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524214425; cv=none; d=google.com; s=arc-20160816; b=IJyeu5LIDo2RNFgdGznGMn8brLQn/TBsFBV100+d+msjE8r6wPG6TmK7tpUwV+1TYx jvbgCpJo4isuLTZwkHIcTkzOrsu1YqjDZF4mpb51pSGq6vNwVX/suth+LkgtQvFtPhR0 S4sVP8dMU3WMr5dXEky+j9lAnQqHJcXLkD7Bfy8JFbfILK4BDPq9ZDgSZY2Li1J3n/Gd CjXVfzqExY7kZTGnoaM1+KapbTaLDh8L6paCL5RAUiy/HDxnOMev/2phvBmL7UBh065Q lwIGn83VmF8TTK/k2XZ2iCo0wGg6CjS2MTpSX4ZiL4Ksb6kYK8Rx8Vbk5ZoLWEIhKhKR 2Dtg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YTilLguxWXxBOJ5E8FXyfjNiUd1T7ApNI0blrQsfZZY=; b=C1v/QrluarumwEpGJoGWI+y+vOAIfuefNolq3oNYMc6MPkE2gUXnsbdO1SO9uMjssZ S2otUL6P02thudVimNOKaAC1tHwyygCZidhjnZSmrSLAJN3MQGd/wmziakFtFIHooudV SlH7f5Gy7ZvOtG4Yl9mO9FTdeTT4+O2aL9naNUvasHiycVWADKOqXu/81eiW7KBOglZO PoljiweyT8yMUngduMSOzDRKk8yADv6zWPpeKkwKAWq9UxqSqlq6XsaLc4WQoIqzu3OU 3x+UwhOrPD5PlkdkKGi+hyw8jrbjlyq6As5LXkY4u5LoV0svEogtdYP5hi+fG3Mpexyc XLww== ARC-Authentication-Results: i=1; mx.google.com; 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 n12si4692504pgf.497.2018.04.20.01.53.32; Fri, 20 Apr 2018 01:53:45 -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; 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 S1754207AbeDTIwX (ORCPT + 99 others); Fri, 20 Apr 2018 04:52:23 -0400 Received: from mout01.posteo.de ([185.67.36.141]:56886 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754074AbeDTIwJ (ORCPT ); Fri, 20 Apr 2018 04:52:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 457A5210DA for ; Fri, 20 Apr 2018 10:52:08 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 40S8jr6R93z9rxP; Fri, 20 Apr 2018 10:52:00 +0200 (CEST) From: Marc Dietrich To: Marcel Ziswiler Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, Marcel Ziswiler , Thierry Reding , Jonathan Hunter , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: tegra: fix ulpi regression on tegra20 Date: Fri, 20 Apr 2018 10:52:00 +0200 Message-ID: <6600596.BijQW1iq1K@ax5200p> In-Reply-To: <20180219151252.29289-1-marcel@ziswiler.com> References: <20180219151252.29289-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, Am Montag, 19. Februar 2018, 16:12:52 CEST schrieb Marcel Ziswiler: > From: Marcel Ziswiler > > 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. I booted 4.17-rc1 (which includes this fix) on an AC100 (T20 paz00 board) and the error above is still there. Surprisingly the error vanishes when I revert your patch. So this patch actually *causes* the problem above on my board. Could it be, that we need all four clocks? Dimitry mentioned on IRC that it could also be a problem in the clock init table. I don't have the technical background myself to fix it, but I still wonder what could be so different between TrimSlice and AC100. Marc > Signed-off-by: Marcel Ziswiler > > --- > > 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 864a95872b8d..e05b6bb2599f 100644 > --- a/arch/arm/boot/dts/tegra20.dtsi > +++ b/arch/arm/boot/dts/tegra20.dtsi > @@ -741,7 +741,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";