Received: by 10.192.165.148 with SMTP id m20csp3668355imm; Mon, 30 Apr 2018 04:28:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZri77Hb5IVXVnnfPXJpP84/XQ4DiLgv+bpXAxeCBU+NGJtCGM5Cq331eKr6nFwC6sllgIIt X-Received: by 2002:a17:902:6887:: with SMTP id i7-v6mr12033830plk.269.1525087715483; Mon, 30 Apr 2018 04:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525087715; cv=none; d=google.com; s=arc-20160816; b=aMhzQY+AS1TrSRvEOEsswgsDvBjU0E8e8itsTK6DQxeMEKdRph8Z6e3tuy6rTQez7S UsTSWQfdQYbG4tnVBccPkI19yh8T0ftrmWspg4/xi6XByyf+SiMaiXiqRKTWYaZAhLga hs2d3W/D7HYApwlrH4w3gXPxFWo7BOtJ78PXZglLKFzoFOhD/WEW/Av4zhjMxjkUa+Ci pevNy9+Q7P9qbvd9c3+ViGmh4BSW/hoOFdkCaB8T0qZIjFu6wH+qC3Wg8ie3jms7UwKN 4+Vw58de1g/n+aOaZBOIO2/7tZjXSvU9m4Rg6U1tyHV/2pXhQ3ZEVoW0Ly0YMRCIKoF8 1rNw== 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=qQ/adouN4FW2dv4/NqWi4duLHNI7wAlMi+2NAvMcHA8=; b=x+fAw02LXQnKroOUdKc8tpefg4+ahRk7cMUTqnvxj8uiKvNp0VGtSwpX2xNAyRWmHE tUFRAzn8LK6FBcDTQJ9B+SJIRFnFta0ymRhs7jIN5fRrxMreZF1a9TdR0ZSKsmTu0rx2 HecaAzhd7bxChysgBvZXfyetNsQ/Ikhyid+Q7mbNhcF38Zv9c6B+8S5sW8Zr9F1tpA8h ArXZ1CsZhwGe94i5w2tXpRWhq4foD+7ZiyPkiph7p+WydSsp9vwiTj0FkEFREMOjSaCf Lw3O1Huief5++CKWJK1HBF04tZuBYD31Ji1Ps8jzjc8yz1yiwbWBLxSk2Iua9Lwf/N57 bfMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sYnfdupI; 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 t126si7508221pfd.55.2018.04.30.04.28.20; Mon, 30 Apr 2018 04:28:35 -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=sYnfdupI; 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 S1753155AbeD3L2K (ORCPT + 99 others); Mon, 30 Apr 2018 07:28:10 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54583 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751813AbeD3L2H (ORCPT ); Mon, 30 Apr 2018 07:28:07 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so12544521wmc.4; Mon, 30 Apr 2018 04:28:06 -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=qQ/adouN4FW2dv4/NqWi4duLHNI7wAlMi+2NAvMcHA8=; b=sYnfdupIxbowLUTd0gTwHeQ8RkvPqrIk6VMaUuS/qLlRSgfl42kkpNg46dKH9LEUYS MPxKolqPnkyGPR3sRxpuCCNwxPeKPrrq5WjV8C9rSXNnPbrTVUEp8xPd5G9AUvmUKkdY FzdzkJq8kyPUuXWP619w5j6BBIL4RjQby8/MKKxi6aiN6CYVNhwrkJmpcbmQHPHKoex6 7ZCxyd1s2t+tzI/Cn6v96gQ1qXuvD28kmjEE12m/YAjmOy8y5hmSuFCqKEZhZQ3ihCsO hpk/76i3vEGi5aiHNFQCsuP7nuNE2GF6J/jfVNvImNrdRSet+t0sK7ZhEoeqhVzM4KWc rlNA== 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=qQ/adouN4FW2dv4/NqWi4duLHNI7wAlMi+2NAvMcHA8=; b=Wgs0WDEdt9N6CwxwYEdsaOQwN7VmYHLlybxVmFmihNRPmlNSbxeT/9W01yd4jJKnS6 EoxLTNRay8C8rqlONyfLsGo3hl+b27KrlCvosOSEoFXusDBEW2vm26Erdiw0+xrAquVp ba0OuAWwMFJPWcJkDPLgmfepqiZuZHboIpbf9HmuR0wZAFL77ViPw3YZiqfq8PQ+93AJ HsmfqUGBKq+Qyxzlaso7cD+EqdmTAn2xchpE8c9622HriWUyk7PyM8gABpdsxAZt4ElY I8eUGN91ekui9U7BdSwvepFUXGGReCMHySPh1XzQmM09OSKb4OWgGGFJv4p27IU2hPlT HKUQ== X-Gm-Message-State: ALQs6tBKNlxjdHInHFC1EMFYajVy0MnEgdLvBGIF+KV8Ero4PJYKT7Fc qBywVjado2Qu03ZvcEvW7vk= X-Received: by 10.28.138.69 with SMTP id m66mr8031230wmd.117.1525087685972; Mon, 30 Apr 2018 04:28:05 -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 a13-v6sm6913997wrc.19.2018.04.30.04.28.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 04:28:05 -0700 (PDT) Date: Mon, 30 Apr 2018 13:28:04 +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: <20180430112804.GA5770@ulmo> References: <20180426235818.10018-1-digetx@gmail.com> <20180430094821.GC2476@ulmo> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20180430094821.GC2476@ulmo> 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 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 30, 2018 at 11:48:21AM +0200, Thierry Reding wrote: > 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 bootloade= r. > > 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 actu= ally > > determined by the pinmuxing config of CDEV2 pingroup. This patchset fix= es > > the parent of CDEV2 clock by making Tegra's pinctrl driver a clock prov= ider, > > providing CDEV1/2 clock muxes (thanks to Peter De Schrijver for the > > suggestion), and then setting these clock muxes as parents for the CDEV= 1/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". > >=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(-) >=20 > Stephen, Michael, Linus, >=20 > 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. >=20 > 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. Marc just pointed out to me on IRC that this fixes a regression that was introduced in v4.17-rc1. Can you guys pick this up into your -fixes branches? Again, I volunteer to collect these into a separate branch and submit via ARM SoC (the DTS patch is crucial in enabling the fix) with your Acked-bys if that's the preferred option. Thierry --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlrm/cEACgkQ3SOs138+ s6GwGhAAsBYMU6OfkVDBMYaVoDuMn0nzGwKlLnJ4idXGkoSPlVevGYqVM+mmBpoQ Ep57Ctbq5cbs5i+4uS1dUI1pZfv7cHUsxABicSPSsvj86lh9fXepI5o9NMDJLIt+ C+xQ8IQnwCKWrn5sDQ6yhFKrA41lIkXEyoYZgGhotyxMZx9f+YA6xv/a/0Bp7nA+ EHEfu5wF+0hyQI1KDEkWpBxE9C/ptgz0c9Uc1joD5CTXdoZRmbyycDwfgBvL6vJY WQv/y1iNsNNbSCynHnbhx9RvWBSEV61lfaZohjoI6Je5YOgj7I17ujbVSR7tHGAd JRQ5jY1yi88t/SGaot+1ZzyjBhAHlCCm6SPZRwGnKe2BNyvVr3CW1pFDgJa+M9dn 6gjz0qxJV4eZvauHIBoqlpVKTN4UFYyjVRkyvi57iJiX9Vn5eEX+I3HnbMUTbHvD DBJJJODc9maE8Sr0kMn4PSabYi6HLyJEKSqYSGgDT852Sc9S2vq9428eGVDJEgx7 DUnG3xgxRjmSFVr25zLQhUE5du2hNce9ZDSYQQ+g2fqa4wcFN2C0eVdkmD9cqbVh juoPUkoXb32338MH+E46rfwT8J1jhCLb0IT7Cdis6dI57JzMVgAZMH25viUwygc9 2bG6mEfUVi9nF35raMTGadHb2AyABkousQcgOjdcs6VAfAKPk18= =LwJ4 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--