Re: Question: How to power-manage UART-attached devices.

From: NeilBrown
Date: Tue May 01 2012 - 19:15:18 EST


On Tue, 1 May 2012 17:33:03 +0100 Mark Brown
<broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, May 01, 2012 at 09:35:59AM +1000, NeilBrown wrote:
> > On Mon, 30 Apr 2012 23:33:22 +0100 Mark Brown
> > > On Tue, May 01, 2012 at 08:22:09AM +1000, NeilBrown wrote:
>
> > > The userspace consumer was added for users like this that live entirely
> > > in userspace.
>
> > I assume you mean REGULATOR_VIRTUAL_CONSUMER (drivers/regulator/virtual.c)?
>
> No, that's just for testing drivers in development. I mean the
> userspace consumer which is hidden away in userspace-consumer.c.

Ahhh, of course. What a cunning hiding place! :-)

However it doesn't suit my need - I want something more abstracted.

I can see there may well be a place for a simple on/off switch for some
components, but then I would prefer to see it as

/sys/class/power-switch/$devicename/state

rather than

/sys/devices/platform/reg-userspace-consumer.X/{name,state}


Thanks,
NeilBrown

Attachment: signature.asc
Description: PGP signature