Re: Question: How to power-manage UART-attached devices.
From: NeilBrown <hidden>
Date: 2012-05-01 23:15:24
Also in:
lkml
Attachments
- signature.asc [application/pgp-signature] 828 bytes
From: NeilBrown <hidden>
Date: 2012-05-01 23:15:24
Also in:
lkml
On Tue, 1 May 2012 17:33:03 +0100 Mark Brown [off-list ref] wrote:
On Tue, May 01, 2012 at 09:35:59AM +1000, NeilBrown wrote:quoted
On Mon, 30 Apr 2012 23:33:22 +0100 Mark Brownquoted
On Tue, May 01, 2012 at 08:22:09AM +1000, NeilBrown wrote:quoted
quoted
The userspace consumer was added for users like this that live entirely in userspace.quoted
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