[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160427142432.GR3217@sirena.org.uk>
Date: Wed, 27 Apr 2016 15:24:32 +0100
From: Mark Brown <broonie@...nel.org>
To: Hans de Goede <hdegoede@...hat.com>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Maxime Ripard <maxime.ripard@...e-electrons.com>,
Chen-Yu Tsai <wens@...e.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] regulator: core: Allow use of "status = disabled" in
regulator dts nodes
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.
> This commits allows the use of "status = 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?
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists