Messages in this thread | | | Date | Sun, 6 Jun 2010 18:48:12 +0100 | From | Matthew Garrett <> | Subject | Re: [linux-pm] suspend blockers & Android integration |
| |
On Sun, Jun 06, 2010 at 07:37:59PM +0200, Vitaly Wool wrote: > 2010/6/6 Matthew Garrett <mjg59@srcf.ucam.org>: > > On Sun, Jun 06, 2010 at 07:21:49PM +0200, Vitaly Wool wrote: > >> 2010/6/6 Matthew Garrett <mjg59@srcf.ucam.org>: > >> > >> > Suspend blocks prevent system suspend, not any per-device suspend. > >> > >> Can you suspend a device which is holding a wake lock? > > > > Yes. Suspend blocks are orthogonal to runtime PM. > > That's nice, but that means that it can hold the wake lock > indefinitely. Brilliant design, I'd say.
Putting a device in a low power state doesn't mean you can't run code in the driver. If a device generates an event and that event gets handled by the driver, the driver can take a suspend block and then release it when userspace reads the event. It's perfectly valid for the device to go into a low power state in the meantime. When I say that these things are orthogonal, I really do mean it.
-- Matthew Garrett | mjg59@srcf.ucam.org
| |