Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbdGRNWR (ORCPT ); Tue, 18 Jul 2017 09:22:17 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:37982 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbdGRNWP (ORCPT ); Tue, 18 Jul 2017 09:22:15 -0400 Date: Tue, 18 Jul 2017 14:21:47 +0100 From: Mark Brown To: Maxime Ripard Cc: Thierry Reding , Laurent Pinchart , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Mark Rutland , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Boris Brezillon , Thomas Petazzoni Message-ID: <20170718132147.uzexelksygjeasmw@sirena.org.uk> References: <02f409ad80afed68e02660f161fc26d588a86fa7.1499955058.git-series.maxime.ripard@free-electrons.com> <20170713160142.2buaie6ebqbxunin@sirena.org.uk> <20170717090107.cpjxoxfqcc3qwabh@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dorp7qp2jdppfcih" Content-Disposition: inline In-Reply-To: <20170717090107.cpjxoxfqcc3qwabh@flea> X-Cookie: ASHes to ASHes, DOS to DOS. User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 01/18] regmap: mmio: Add function to attach a clock X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1542 Lines: 41 --dorp7qp2jdppfcih Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 17, 2017 at 11:01:07AM +0200, Maxime Ripard wrote: > On Thu, Jul 13, 2017 at 05:01:42PM +0100, Mark Brown wrote: > > > This might be problematic if the clock to enable is stored in another node. > > > Let's add a function that allows to attach a clock that has already been > > > retrieved to a regmap in order to fix this. > > What is the use case for this? > This is useful when the clock you want to be handled by the regmap is > not described in the device node that probed the driver, but one of > its subnode, or an another node entirely. > We're in the latter case, where we have two controllers in the DT, but > are driven by the same driver. We'll create two regmaps, but one will > not have the proper of_node used to retrieve the clock. I'm sorry but I'm still not seeing why you're doing this. Can you be more concrete please? --dorp7qp2jdppfcih Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlluC2oACgkQJNaLcl1U h9AgGwf/U7/VjZReTRqFVAih0pK/0nqz3xriFh8b/MlZQZxYThBJgFDOXcXWafKn aPfGa2GAU0QJaFIM9f0X+WjKF1du+v7Qkmbdc6FnyZD/VcWSkoOmtzS7yXSllS+B +mn/TCI002pdWBsnf9HztudcqIGlPKhctc1IGCf6Uk4qJNl9aWrtIXIbl0lhz17R iel7q6m7T25e2zv9efMejrTrtWS1lWk07hCMCGARZ0uug/SL4kcvPPq4v0eWq33d HQIpNSpZCj/ibhEshqBMVI5DdNqITyXswHE2/IcHIkc5l/zmJONIwngdiqAvB+Ry MxGaSZCmDnAD8TN8JFlh5+T1faAR9A== =C3bf -----END PGP SIGNATURE----- --dorp7qp2jdppfcih--