lkml.org 
[lkml]   [2012]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question: How to power-manage UART-attached devices.
On Tue, 1 May 2012 17:33:03 +0100 Mark Brown
<broonie@opensource.wolfsonmicro.com> 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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-05-02 01:21    [from the cache]
©2003-2011 Jasper Spaans