Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3304034imm; Fri, 25 May 2018 03:26:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZruWSUc6yJdsyOX0FcCwclj96cQSjiS16Y1zz/YduD1x94B3e6ln1nugJFhl5JzHMKHUBA3 X-Received: by 2002:a62:883:: with SMTP id 3-v6mr1988328pfi.154.1527244008480; Fri, 25 May 2018 03:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244008; cv=none; d=google.com; s=arc-20160816; b=UwE+UNhusFml78fQl5zOtOlqV6YU3RghyjhHaTu2ajlguILq0V3utMGpmORtazY7XL S0SPKKLED3MkNR8sKjuMDkH6Vap3WW6EVAaexuyOipsHsA/sr6iwPhiq5S9v7RhropH3 jIuxYYaq32b/RknWJEZMUqoRF9TuhiCyMrpYmY5EnyeTmMk6vbQC536NZRMjHQp4CxJC f7kFffxsfA9eElGyCuibVpsMv4Y5q85///TaqD4dhTKLzSdHPMf0MmPEGnWzOsY67FdK Y6aGlGTU2fWlxvqyyyXJl6O+QNHdE0LrQzGGlw2Givdn3hFRlUoxY3kb1PQd/8IAUXGs qGtw== 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=LNMmyI7OsujiHbNf8cWr/Cqrp7o8b6LANzD6XFIMf8c=; b=GUhlAlQK3hY7Gfis08HAZpETXy988Ti93ZhBiABFjMthIWF7Vw3vzIYA6UF0hZ9o89 hEHtcHBfMbiI2FPN/eLnuK6c42w0skT92sNteGyiXOyQ6aHj6Cx6FdWaZup4rGwFRrpy AE8nGSzbZoy4U7ep6SrlXGp6qRcDnxuqOCKkvCcYpZGSPfbZXHRSUyKE/W/nUFQmVoQv a/YdbsmRdKdEaNBemN+CPjhwBnax7Sowf8WtQ3zmLtoF8W012ni7PHm6VMac/yn/cSre OYuC6bdjdHSQ562/qa5lTTm0pdhoAvba7Vbed6eo7aZJFAASXO3PKd4QlCdfiPRFSeeu Kstw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bdKJcGau; 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=fail (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 d10-v6si19068663pgu.626.2018.05.25.03.26.33; Fri, 25 May 2018 03:26:48 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bdKJcGau; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965709AbeEYKZF (ORCPT + 99 others); Fri, 25 May 2018 06:25:05 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60126 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965102AbeEYKZD (ORCPT ); Fri, 25 May 2018 06:25:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LNMmyI7OsujiHbNf8cWr/Cqrp7o8b6LANzD6XFIMf8c=; b=bdKJcGauCGaTNLHC4dPoiate7 SkWfYg9x7oUFjhrnDqVGceMpinld4bexgGMsS0crJcdX3O/2dWvujFYagijtTrWriuqQY1IZXzsuM krk722K+1Z9wJf2WUi5gTlVZ11ZjsOAt7kgeLcYSbMSssAkcd7iE/7Owsn6LpJQ/Z4rV0=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fM9u7-0007Rr-Eq; Fri, 25 May 2018 10:24:59 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fM9u6-0006p0-TV; Fri, 25 May 2018 11:24:58 +0100 Date: Fri, 25 May 2018 11:24:58 +0100 From: Mark Brown To: Matti Vaittinen Cc: "Vaittinen, Matti" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Mutanen, Mikko" , "Haikola, Heikki" Subject: Re: [PATCH 4/9] regulator: bd71837: Devicetree bindings for BD71837 regulators Message-ID: <20180525102458.GJ4828@sirena.org.uk> References: <20180524055752.GE4249@localhost.localdomain> <20180524140118.GS4828@sirena.org.uk> <042F8805D2046347BB8420BEAE397A4016C06B47@WILL-MAIL002.REu.RohmEu.com> <20180524175721.GB4828@sirena.org.uk> <20180525055430.GB16888@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jmkJtp15SxLq1SbD" Content-Disposition: inline In-Reply-To: <20180525055430.GB16888@localhost.localdomain> X-Cookie: Excellent day to have a rotten day. 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 --jmkJtp15SxLq1SbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 25, 2018 at 08:54:30AM +0300, Matti Vaittinen wrote: > On Thu, May 24, 2018 at 06:57:21PM +0100, Mark Brown wrote: > > You can look at the regulators node within the parent device, you know > > that in Linux the parent device will be the MFD. > So I should parse the device-tree in MFD my driver in order to locate > the regulators node? Isn't that somewhat like code dublication? If we > rely on compatibles we can avoid device-tree parsing in MFD driver, No, there's no need to do this - the child can just look at the of_node of the parent since it can never be instantiated otherwise. > right? An in-tree example of this is: There are some bad examples (and some where the same regulators can get used with multiple different parents) but that's no reason not to follow good practice. --jmkJtp15SxLq1SbD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlsH5HoACgkQJNaLcl1U h9Drrwf9H6otj10qIc8vXKx60U0IrSi0dtXfTKSeJMWeuElp1J7E6COsbouwImXE uh+FgmF2eC5HgXWrkELT7Sc+9FfzxOHmievxmnB+cz5oL3Q64FkLO1W3vV6embAk VF3Su3R+RPF+0jAFJm1cqOOVXWYKc1q9Dd8VTx3qCNXF93rCA9Q7V1XEBgIGlQqp wRWI6/1gWaVatWtwGYqOXD9YWxHwMGSZu9QbyxYGY607df0pohuTQH5kHGXAGaVC cNwyAH20E2i0YJuWhV4y7LDB9wi8+2dtQ57WlB+AT1A/jEQ41vrgMEt3YoubcCJf KVuH0O+wzznJSPbgEvlcV2+nMIhZOQ== =Ma5W -----END PGP SIGNATURE----- --jmkJtp15SxLq1SbD--