From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbcD0PuU (ORCPT ); Wed, 27 Apr 2016 11:50:20 -0400 Received: from down.free-electrons.com ([37.187.137.238]:33391 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752270AbcD0PuR (ORCPT ); Wed, 27 Apr 2016 11:50:17 -0400 Date: Wed, 27 Apr 2016 17:50:09 +0200 From: Maxime Ripard To: Mark Brown Cc: Hans de Goede , Liam Girdwood , Chen-Yu Tsai , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes Message-ID: <20160427155009.GB17159@lukather> References: <1461765825-15915-1-git-send-email-hdegoede@redhat.com> <1461765825-15915-2-git-send-email-hdegoede@redhat.com> <20160427142432.GR3217@sirena.org.uk> <20160427143711.GT3217@sirena.org.uk> <20160427150108.GU3217@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <20160427150108.GU3217@sirena.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Mark, On Wed, Apr 27, 2016 at 04:01:08PM +0100, Mark Brown wrote: > On Wed, Apr 27, 2016 at 04:40:05PM +0200, Hans de Goede wrote: >=20 > > Or, since regulator_of_get_init_data uses for_each_available_child_of_n= ode > > which checks the "status" value we can actually already use > > "status=3Ddisabled" cool. So this simply already works :) >=20 > To repeat you really shouldn't have *any* DT nodes for regulators that > aren't in use, there should be nothing to put in their nodes. If > there's anything there that's a sign that your DT has problems. How should we deal with regulators that are on by default but are not used in the system then? Thanks, Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXIN+xAAoJEBx+YmzsjxAgeZgQAIBr3qBe5h4NDKOqPhkjud6k 2tAHowt5/85OgDn585xMt1NFW0TAEyTdhfmWCZbe8Y7NWUI85K32HPvVIznqa98A UqPsO+vUuKCFrgFe4yAom2U2x/O6Gj9ZOeQIgjv/M8unJYhAxKfqmqkvIHk7+shc EG4Pg4GoZs69kyr+GznQ9g1NGOktxBNO1gSz9BhapvkfRpX2lqwb1OYIDKA5Wx3B n7xOCSY3J0E5/x6QgIJQ94PFt7WuIMrRwQ4a1Kq0uV7J5hS6GjwKCkZ2l4C9uYJf joKVyzZw/hzz7WxCHi0NgR375ePqC6LP7hLxaCCJjVLzOMZ6sAwAvuVfYAizh09i SnzheN/PzS/4GFtZIAhSIKqF28WqdMc4XHZnbopBGzDenW078uzH7xQ0aou8DEwl HESfYnf5LBUC9LZmv0PD4JU9W+5RjvKTqCqfxwHdA21ToFD1mlQ3BMPFCqQMUoPT hMt+BZbFy7jMcPUxAijw3AGXcpxDPeYpIsoJnvIQBgS2/PNtFydopbp8XHzmetEg frExldbDuk9dvQn/8OehEZ27XPFGXDTzaNyXtGN3G3OpC/rKugrgPg7AWYe2hgZt A/8meTmcEmNn8EfnjgFXMfOak+642t5bmQOrZiNv3oZlSEPuM3d5reXz5WYxzQwD tl2gSbgdtakwLddXwCsV =q8LS -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--