Received: by 10.192.165.148 with SMTP id m20csp659344imm; Fri, 27 Apr 2018 05:32:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWNKZPT4NXbOeo2ISaEAOyFxIoRwhcGH0ArT6MnIjoEheI8UtMjOlFqA73AxKKvRO0SE3g X-Received: by 2002:a63:6f0c:: with SMTP id k12-v6mr2032569pgc.380.1524832369920; Fri, 27 Apr 2018 05:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524832369; cv=none; d=google.com; s=arc-20160816; b=r2zdfb03D19fSSF2s4h/JbyCIzh2F9/5DWzHzX050UB0xIvPqlvKiBeodRVbecBiwx hy9j7ATCNhNiQZbeLyZwsOz98JlPWeOoaJ3BH6gekhdaKRa+3p68s/wjVry7UlIj/QJ/ TZW5+XlIj3UfBHv7Zb0yOaEy5zuPbVXAVB7zXpzb3gG5WrHSbEcVQ0T1xfa7ogXUzX8P 7arn3S9N2sPBzOv9fha2FwgioaaNR+0YU6dFwLnyRjTksZ0BCYhjsUTj4F+BSDmKpuEY NfcXu2yTweT15GoXKfkalVvdaS9uTP5dWeGRCgihgk1kckwuLSikGXRbD1MUauEJlSy+ yweQ== 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=/f3eYBvpC/rCUuaSa7aawlXc69GsQEto5r1dtP26LlA=; b=JSZIxZNc946QriMTjRP1lRKBwrajPPchpQ1MX+Q0kika7g+Z0M2yFwkrjn2B6DH9HS /7VtlDcdZl1dnpumLSard1crY5gl9oCLSec8aOT6gROxUHvhWCxQLS0Ulb7Bq2iOX3ck JO2BPjaxRHjyiK9LrD8WaLYw/bZuryCBwSz1RzwnI9VNdg+1p7H/laminU1/i8ez7UkJ iVNqP1FnHAs3qtxChEQNclEa0rrCwGdAqRvIxRAMy8bGkc7dsx7LgOrOYsFztEX1Ru6z GwB3Aq5Pl0dxJJnhC1vk5Zbiw3FwkQA3Dg5RZenDz2J/P55S7iJzOihYasVY8CE1p2yn wzFw== 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 u193-v6si1180831pgc.186.2018.04.27.05.32.35; Fri, 27 Apr 2018 05:32:49 -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 S932369AbeD0Mav (ORCPT + 99 others); Fri, 27 Apr 2018 08:30:51 -0400 Received: from mout01.posteo.de ([185.67.36.141]:40106 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757846AbeD0Mas (ORCPT ); Fri, 27 Apr 2018 08:30:48 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B320A21719 for ; Fri, 27 Apr 2018 14:30:46 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 40XYDy1v7tz9rxN; Fri, 27 Apr 2018 14:30:42 +0200 (CEST) From: Marc Dietrich To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Stephen Boyd , Michael Turquette , Linus Walleij , Marcel Ziswiler , linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/4] Restore ULPI USB on Tegra20 Date: Fri, 27 Apr 2018 14:30:41 +0200 Message-ID: <4032338.O1BXeabcRj@ax5200p> In-Reply-To: <20180426235818.10018-1-digetx@gmail.com> References: <20180426235818.10018-1-digetx@gmail.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 Dmitry, Am Freitag, 27. April 2018, 01:58:14 CEST schrieb Dmitry Osipenko: > Hello, > > This series of patches fixes ULPI USB on Tegra20. The original problem > was reported by Marcel Ziswiler, he found that "ulpi-link" clock was > incorrectly set to CDEV2 instead of PLL_P_OUT4. Marcel made a patch > that changed the "ulpi-link" clock to PLL_P_OUT4 and that fixed issue > with the USB for the devices that have CDEV2 being enabled by bootloader. > The patch got into the kernel and later Marc Dietrich found that USB > stopped working on the "paz00" Tegra20 board. After a bit of discussion > was revealed that PLL_P_OUT4 is the parent clock of the CDEV2 and clock > driver was setting CDEV2's parent incorrectly. The parent clock is actually > determined by the pinmuxing config of CDEV2 pingroup. This patchset fixes > the parent of CDEV2 clock by making Tegra's pinctrl driver a clock provider, > providing CDEV1/2 clock muxes (thanks to Peter De Schrijver for the > suggestion), and then setting these clock muxes as parents for the CDEV1/2 > clocks. In the end Marcel's CDEV2->PLL_P_OUT4 change is reverted since > CDEV2 (aka MCLK2) is the actual clock source for "ulpi-link". > > Dmitry Osipenko (4): > clk: tegra20: Add DEV1/DEV2 OSC dividers > pinctrl: tegra20: Provide CDEV1/2 clock muxes > clk: tegra20: Set correct parents for CDEV1/2 clocks > ARM: dts: tegra20: Revert "Fix ULPI regression on Tegra20" > > arch/arm/boot/dts/tegra20.dtsi | 2 +- > drivers/clk/tegra/clk-tegra20.c | 18 +++++++++++---- > drivers/pinctrl/tegra/pinctrl-tegra.c | 11 --------- > drivers/pinctrl/tegra/pinctrl-tegra.h | 11 +++++++++ > drivers/pinctrl/tegra/pinctrl-tegra20.c | 30 ++++++++++++++++++++++++- > 5 files changed, 55 insertions(+), 17 deletions(-) Thanks for taking a look at this! Series is: Tested-by: Marc Dietrich Marc