[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180712153121.GF10369@sirena.org.uk>
Date: Thu, 12 Jul 2018 16:31:21 +0100
From: Mark Brown <broonie@...nel.org>
To: Marco Felsch <m.felsch@...gutronix.de>
Cc: lgirdwood@...il.com, robh+dt@...nel.org, mark.rutland@....com,
fabio.estevam@....com, Anson.Huang@....com, kernel@...gutronix.de,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw
binding
On Thu, Jul 12, 2018 at 01:02:39PM +0200, Marco Felsch wrote:
> +Optional properties:
> +- pfuze-disable-sw: Disable all unused switch regulators to save power
> + consumption. Attention, some platforms are using the switch regulators as DDR
> + ref or supply voltage. Mark these regulators as "regulator-always-on" to skip
> + disabling these regulators. If not specified, the driver simualtes the
> + disabling. This means the state of the regulator is set to 'disabled' but the
> + driver don't disable the regulator.
This is a bit of a confused way of specifying things that depends on the
Linux implementation, and the property sounds like a double negative
too. I'd say something like "pfuze-support-disable" and then explicitly
say that this is a workaround for backwards compatibility.
I'd also recommend changing the implementation patch to just register a
different version of the desc and ops that just doesn't have the disable
operation so that the framework knows what's going on. While the
current implementation works now there's the possibility that at some
point in the future we might start relying on the disable actually
having taken effect somehow and will get confused. There's some
existing drivers that optimize their resume paths if they know power
wasn't removed.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists