From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752778AbcD0OYp (ORCPT ); Wed, 27 Apr 2016 10:24:45 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:49532 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbcD0OYo (ORCPT ); Wed, 27 Apr 2016 10:24:44 -0400 Date: Wed, 27 Apr 2016 15:24:32 +0100 From: Mark Brown To: Hans de Goede Cc: Liam Girdwood , Maxime Ripard , Chen-Yu Tsai , Linux Kernel Mailing List Message-ID: <20160427142432.GR3217@sirena.org.uk> References: <1461765825-15915-1-git-send-email-hdegoede@redhat.com> <1461765825-15915-2-git-send-email-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cO/GqTdnHauCmbNY" Content-Disposition: inline In-Reply-To: <1461765825-15915-2-git-send-email-hdegoede@redhat.com> X-Cookie: Tomorrow, you can be anywhere. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in regulator dts nodes X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cO/GqTdnHauCmbNY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2016 at 04:03:44PM +0200, Hans de Goede wrote: > So if we want to use these pins as gpio pins we must not register > a regulator for these pins at all, otherwise any gpio use (switching > to input, or writing a value) gets undone when the regulator subsys > disables unused regulators at the end of kernel-init. The regulator API should not touch any regulators that it doesn't have permission to change the state for. All other regulators are strictly read only. =20 > This commits allows the use of "status =3D disabled" in regulator dts > nodes and makes regulator_register return ENODEV when this is set. If the regulator can't be changed why is it in the DT in the first place? --cO/GqTdnHauCmbNY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXIMugAAoJECTWi3JdVIfQGQEH/iWwyy8Q0M0n+DJsSFuVH1tG 2Q7dzWNKmzfCaKGQdDH9kozN9+tVTPq6DxEUv0We5SSsjzO0/dXQFCz0CUGCpBK4 myKpuiJl1LUg9EZuUYRHOkt4AvV/N8/rkeYyUYa8uG7jlRJ/9jdm3FoQb+wfrGl+ bivo92mjGB7fTn2ZaoE9nquijeGy6q+kLh1WXF0C7yAe8Z467YqEYBbjC0PZQkQT 9MIe5E8XPzPPrIR9YjH1+RVfE/ULFGC6GhYHz4tWGD1dAFWt9i5H37QN5rXXFGV9 +uG0byfV7h644+Q41Yp6ZkvmhKsKx6CAca/tc8LoHpEL+Q1mm9OLNmNu7a/6g10= =FReC -----END PGP SIGNATURE----- --cO/GqTdnHauCmbNY--