Messages in this thread | | | Date | Wed, 27 Aug 2003 16:29:24 -0700 (PDT) | From | Patrick Mochel <> | Subject | Re: PCI PM & compatibility |
| |
> > - When a device is suspended, the pm_users count of its pm_parent is > > decremented, and incremented when the device is resumed. > > > > - device_suspend() makes multiple passes over the device list, in case > > power dependencies cause some devices to be deferred. It fails with an > > error (and resumes all suspended devices) if a pass was made in which > > no devicse were suspended, but there are still devices with a positive > > pm_users count. > > How do you intend to deal with the childs of the device that has > pm_users non null ? > > If you don't suspend it, you must also postpone all of it's childs. > That makes the list walking slightly more tricky, or you finally go > to a real tree structure ? (Which you may have to do to implement > the set_parent() thing too, no ?
I don't understand. We suspend the children before we suspend the device, so as long as all the children go done, so will the parent device.
Pat
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |