On Sun, 6 Mar 2005, Benjamin Herrenschmidt wrote: > Ok, I'll need to take more time re-reading this and giving you a more > complete answer, but a quick note for now: I have been thinking about a > model that would help deal with both "local" suspend and deal with > dependencies. > > For example, a device may idle suspend, and the parent may want to be > notified so that when all the childs are idle-suspended, it may suspend > the bus. That sort of things. > > I have some idea based on a definition of power states as an array in > the driver, where the driver exposes the parent/child state dependencies > and exposes a state name to sysfs. I posted some blurb about this a > while ago on this list btw. I saw that when it appeared. It struck me as more complicated than we need. But I agree that there ought to be a way for userspace and drivers to communicate mutually meaningful state names. Notifying parents when children are auto suspended... This can probably be done without involving the PM core. Alan Stern