Re: System sleep vs. runtime PM

Alan Stern
2009-12-03T17:50:28Z

On Thu, 3 Dec 2009, Oliver Neukum wrote:

> > However, I don't see any reason to know what woke us up. All we really
> > need to know is what devices have wakeup requests outstanding when the
> > system resume is finished. It doesn't matter which request came first
> > (presumably that was the one which woke us up).
>
> That assumes that the firmware doesn't do anything stupid with
> pending remote wakeups as it resumes the system. I'd call this
> unwarranted optimism. The conservative solution would be to resume
> every device whose driver has requested remote wakeup be enabled.

Drivers certainly can use that as one of their criteria for whether to
power-up a device during system resume.

Alan Stern