Received: by 10.192.165.148 with SMTP id m20csp3582066imm; Mon, 30 Apr 2018 02:49:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoF4dfvGhXCOBPWfO2zXwixgC0uvLT7V5MLTUzzLJesVE9M1XSwzieLxUfYJAxN57Q8tVdl X-Received: by 2002:a65:5088:: with SMTP id r8-v6mr4366691pgp.80.1525081795123; Mon, 30 Apr 2018 02:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525081795; cv=none; d=google.com; s=arc-20160816; b=eNtvJMYZWV4pXGB/ZWxzZv1W6a2Bv50wiQP8fObbb8UuqylabJ1Wfm47b82YChzQn6 M3kVhBsr7cZxswiFjaaAIr3J6EfuDT2TR251DT7apVfAZ50FmhiTaQuCe+h1uLGN4e/u HCSntbewcgbr16FgXA40+x3x4QirwBQddyxfej2TOcZz4MWktyZJSjPjnC19UcuQ193E WukdeY6TSjVRjWG8b8X+XBnuUa/oO2o1/v+LcTZMf2Gpns7/p7dpui5LOX+f4kJnIM3r XQQWee3WCXaUbbLhABWk78u7ttqL57lh+ZQB3zBM9hVPUFsNsIQzTL8CB8yknQj+z1wM VpQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=6DVrfW/w1iad97qYUrVezuVCEbBhPN0+dY7Cg1V4TgI=; b=UGrPMmcMDUzVqmP6rhQIXmuvpyoIszsfB6TmjpccImZuZOSw1lDP3NV8FAgGkPO3Mb KPEQrdKEcgXZNnk+9PV8WbxFLXELQs2po17Ws7Q4Mw3p9GBT/qrwH+kIy29kcxulYV7q ODdhqkbBgVjx7WztZiKbSaO1RQXxap0GEncIqKmNzsbA8XpmRNTP5uf8F5ZY274HOo3E ZO21WIWRuC9Bi7mkXJNznvE+h0YGMy1iFYdWuwslNhxXlXqVmVlS1+xHdnBc7E85Gzvc 0ohp0LfUHi+2pbGf6V7NGypuBhU0tn5KXYwjMqsigvAxaWseqNSbhzpstg+QPqwCt8iq n7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XF58wcZx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si6046342pgo.289.2018.04.30.02.49.41; Mon, 30 Apr 2018 02:49: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=@gmail.com header.s=20161025 header.b=XF58wcZx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753036AbeD3Js1 (ORCPT + 99 others); Mon, 30 Apr 2018 05:48:27 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:42885 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeD3JsZ (ORCPT ); Mon, 30 Apr 2018 05:48:25 -0400 Received: by mail-wr0-f196.google.com with SMTP id v5-v6so7434577wrf.9; Mon, 30 Apr 2018 02:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6DVrfW/w1iad97qYUrVezuVCEbBhPN0+dY7Cg1V4TgI=; b=XF58wcZxYifijListUsTboB33vNH2jbuawss0/Q4sQjUAMEG/XiVcBWwiAB3iVAK5P fnP+Pq0MWVQR2rsz8M58b8upG4iqMIYoeMnLX5NPbUrgMyWU8xgLNSbVZ5GjkHjcjley WJj8/DS8sqkK5DJ39GfKIdHoecpLW5IaHQSHaqWU8Sr63gDWjoRsClrvBZIQuMDIDNMk doyDqWIXyBiuRJhvfvTK0IeNBzmn9oGiLPik/fryax3qUzPAkKioTmrVAkAcDrU84Dai 1IBZEGKNmRU0e9njkaexMCIx6klMNPSt/JdG03f/2h6PTx1FMt3YprcxGbGoaebwNZtF VyHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6DVrfW/w1iad97qYUrVezuVCEbBhPN0+dY7Cg1V4TgI=; b=YA1mb34Jp+m7rFxaiixu4zAGH5++BAx7OXnLhJAwUWiFpSlqV2PdP3x19nLtp7bXx7 uZE7JMnbiFsDTxf+BpFs1XqeLqOjRXe8jo9xO27JtxhXkeGNy+iAmGLt1B9eduXnYR1o cQyTuio8F6f0iMIWfrzvIUTgKn0EH+LluJkyoU9tNql2u9nlD9rGpTvMCMYHmJXtK8NN IiJNpToAuEc3H4IQIvFcrMRXvtcKJqrZoNhiqB7XZ4imHbCGOarGm0UxOllY9uRLogMs fkDkkGdSLO8bDDIu9oxn+0e1mfpQC3muVRpRJ2YGQIvLMRpiSIngm3TBG3DjQ/XZOc86 Guzg== X-Gm-Message-State: ALQs6tC8/IrShzdZYyZ7xT3ImGAOpmyfFofwWMn2rVlnVr048MhIR9EP Fue40fhm9/VEYPrIjkl53n4= X-Received: by 2002:adf:c88e:: with SMTP id k14-v6mr7851740wrh.135.1525081703420; Mon, 30 Apr 2018 02:48:23 -0700 (PDT) Received: from localhost (p200300E41F041C0032947E635CB49D15.dip0.t-ipconnect.de. [2003:e4:1f04:1c00:3294:7e63:5cb4:9d15]) by smtp.gmail.com with ESMTPSA id 131sm479307wms.34.2018.04.30.02.48.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 02:48:22 -0700 (PDT) Date: Mon, 30 Apr 2018 11:48:21 +0200 From: Thierry Reding To: Dmitry Osipenko , Stephen Boyd , Michael Turquette , Linus Walleij Cc: Jonathan Hunter , Peter De Schrijver , Prashant Gaikwad , Marcel Ziswiler , Marc Dietrich , 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 Message-ID: <20180430094821.GC2476@ulmo> References: <20180426235818.10018-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/e2eDi0V/xtL+Mc8" Content-Disposition: inline In-Reply-To: <20180426235818.10018-1-digetx@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 27, 2018 at 02:58:14AM +0300, Dmitry Osipenko wrote: > Hello, >=20 > 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 actual= ly > determined by the pinmuxing config of CDEV2 pingroup. This patchset fixes > the parent of CDEV2 clock by making Tegra's pinctrl driver a clock provid= er, > 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 CD= EV2 > (aka MCLK2) is the actual clock source for "ulpi-link". >=20 > 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" >=20 > 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(-) Stephen, Michael, Linus, as far as I can tell there aren't any build dependencies between the above, so technically these could all be merged through the individual trees. There's a runtime dependency from patch 2 on patch 1 and from patch 3 on patch 2, though I don't think they will cause any actual failures at runtime. But I can also pick this up into the Tegra tree and send out pull requests to you for v4.18 (at around v4.17-rc6), if that's what you prefer. Thierry --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlrm5mUACgkQ3SOs138+ s6HYZA/+Jd9SEUtBU37s8HSilhhRW0RMjH2s3kCNHRU7mK0Ub6nPk8VlHhdzn7z5 emLliMzIBxoLYlaf/msP04X2O6vtQaAlN2WBMmQxIRTHZLgSgMozxMRoimI4hAAB 7pNnWisHeukGD4lsmyCvObCy2vvYay8PljgTaGe9128WkQSJQxk29sqnzQ58vnb9 4c7dsmJ0ZXCfWAWhXnC5EJXdq0Ojhro44Vywh8XR1+TghIKwbrxjE5IzzGVD3Ydw iEhJe3IP5Hy3awb74nnpYUDyFTHcxBpBNIqQ7cedI9xDwfoGJ+etpit0YsMU2aVF AuhpeVUYSH3L0ZwdeMrh/KOgVuWkqP8BrPmDNxrtIBs+ZwSri6+01fv2f1MI0aCM UcLny3r0x/+plRyeLVcb0z22QQ/eYDYMrKODF/6pIP5nUls12M+RjE/GRfeQwCmY EvZ38fWMnCAmC9WqWaoB++kG7EZf1bCjL1lIGboBmb9MNLqWhG3EioLXKzgwl/Kj 0xZpf1dy070UJhovG4ZB83IU3UUBzo7NaLKGaQkDHwp+gJiCPlaGSfsa0ne8cOcG 7Yk3jzyRNrBE/OgeWG/9XuDYUL+6wuRG/Wgpxs6vURFXFJHxMTSeHSKe8iGgipij l0MvB6r3nGHV2tIi+494Sa5gd4cRqqx8nm9ywOOGHL3ThIdHOUo= =qn1g -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8--