lkml.org 
[lkml]   [2003]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.034 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site