Re: calling runtime PM from system PM methods
From: Rafael J. Wysocki <hidden>
Date: 2011-06-10 18:38:22
On Friday, June 10, 2011, Mark Brown wrote:
On Fri, Jun 10, 2011 at 01:17:56PM -0400, Alan Stern wrote:quoted
On Fri, 10 Jun 2011, Mark Brown wrote:quoted
quoted
ignores that), it's noticably harder to reason about what's going on when I go outside there and when I think about what I'm doing it always feels like it should be possible to factor it out of the drivers.quoted
What would make the common cases easier?I think from an interface point of view it's something like UNIVERSAL_DEV_PM_OPS() and friends, probably with some additional ops that can do the glue bits like enabling wakeup and quiescing activity. I'd need to think harder about what exactly that'd look like - for my cases the fundamental thing I want to say is that there's one suspend routine and one resume routine and I'd like some framework code to work out when they're called.
Can your device generate wakeup signals? Rafael