Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1964503ima; Thu, 25 Oct 2018 07:39:55 -0700 (PDT) X-Google-Smtp-Source: AJdET5ecZAlvMal+n6tUbtznYvFEs+nMCkUxjsymfO2cYrX5agYdnOMOCGb6q9gqKeoCt1I9HZP3 X-Received: by 2002:a65:6249:: with SMTP id q9-v6mr1718704pgv.392.1540478395328; Thu, 25 Oct 2018 07:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540478395; cv=none; d=google.com; s=arc-20160816; b=XANsUPr9L2hrlvaMfHg26rZ3ngOY8UgNgPopJcgPuBKJE0prWH1WbOyB562tQy+jPz VqiVcF6r/w+A/Bl/zUi1d0qN0fc/pX4OA+DD0j9uJM2hNuI1JSE8USsYoJPcOWqX1qMd b5TUcc6M3R44xfRmXC1UecSy617pVuTVefZJEmQvV3KjsaszghjZED5udD+Lv91wpe6n UAYr7dwP5Lpx3hcDlq1quNmMrygXBbS4wHRVCM4G7pBV4sZ8Mz1zYrSy/9XOLCpC7IFl iofBbY/UQzVGedf0ueqSCSa85vSCp0lynuEiEtFcwXAJUUF3FPF2eflK2JzVU7M79jMN Yqbw== 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=hL1Mv+hYE2SnrcIVksGbXLrJ0emNEULpapZNLc/mfvM=; b=vcPKw+00yBchqAzFJc87MJ0FRHSY8AJu7BARhgUDzqUMPkWng+xfU+dnx0LWIyxKjk QlIQG0BGZcxpTz9tXugV0PthQAsFjrZzzVt2TrbsUnMItwXFnJteuyeOCceqFj7M+Tta Qhi9B2R9ljdz/dCJ3fyqzO1nvGHL8aaYFUQvbkKDH746jBYeTyeO3FRsoUM+ABLgO4wS XCFmmTvPIFrPMb9dcqzUHaTT782ZRfCvyjMj0d8MgXi0I0LkQkS2x+wwaJkq7N1To8TV phOjKSvp8eXdPzp+1ziQJWrVvEAvsss3zCAUMUOvy9k+3U1eWB1lEzPVadFf1wSwVGiT Py8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="sZQOUq/q"; 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 h15-v6si7960202plr.12.2018.10.25.07.39.36; Thu, 25 Oct 2018 07:39:55 -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="sZQOUq/q"; 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 S1727600AbeJYXLL (ORCPT + 99 others); Thu, 25 Oct 2018 19:11:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:58220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728154AbeJYWtM (ORCPT ); Thu, 25 Oct 2018 18:49:12 -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 A47872085B; Thu, 25 Oct 2018 14:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476975; bh=c/P49+aBeuaYdXdlxZLwN7MYiPT4HkIwdTXSQ0DmUaA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sZQOUq/qoh8VjBy8EeyOjGfSWJnO6nmunJ40bndQmBDxxz9dMUS5UnsXe1pECap/H iEOuZQ7tW44i6VXf1EolKzmG/6ZjTULRRmmO5vdf5tFFLwfzgkxjuH+TDHqTj7KaKN gpIKHxN+gpV07IcgFgO4WVf6tEv87BBWnMouRVPA= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcel Ziswiler , Thierry Reding , Sasha Levin Subject: [PATCH AUTOSEL 4.9 76/98] ARM: tegra: Fix ULPI regression on Tegra20 Date: Thu, 25 Oct 2018 10:14:01 -0400 Message-Id: <20181025141423.213774-76-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-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 2207c08e3fa3..d771f24f6a26 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -690,7 +690,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