Re: [PATCH 1/4] regulator: core: Support trying to get close to a certain voltage

From: Mark Brown
Date: Thu Dec 11 2014 - 19:24:45 EST


On Thu, Dec 11, 2014 at 11:55:55AM -0800, Doug Anderson wrote:
> On Thu, Dec 11, 2014 at 9:09 AM, Mark Brown <broonie@xxxxxxxxxx> wrote:

> > Please also bear in mind the need to handle shared supplies in your
> > implementation.

> I'm being dense, can you give more details? Do you want me to grab
> the mutex or do something smarter like track the voltage / tolerance
> requested by multiple clients and resolve them, or ...?

I mean the latter - what happens if more than one consumer is trying to
use the regulator? This is IIRC why _set_voltage_tol() uses the cheap
and nasty implementation it does. There's also the potential
performance considerations for the DVS type applications now I think
about it.

Attachment: signature.asc
Description: Digital signature