lkml.org 
[lkml]   [2008]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks
    Hi!

    > > So... we do prepare() but it detects new child, so it returns -EAGAIN.
    > > so we call complete() based on description above
    > > ...and then we call prepare() to suspend again?
    >
    > You misunderstood (maybe the comment needs to be clarified as above).

    Yes, please :-).

    > If prepare() returns any error (including -EAGAIN) then complete() does
    > not get called. If prepare() returns successfully but the PM core
    > detects that a new child was added while prepare() was running, then we
    > call complete(), suspend the child, and call prepare() again.

    Ok.

    > > > + * @suspend: Executed before putting the system into a sleep state in which the
    > > > + * contents of main memory are preserved. Quiesce the device, put it into
    > >
    > > content....is?
    >
    > It's okay to use "contents" -- analogous to the table of contents in a
    > book. It's one of those weird corner cases where either alternative is
    > acceptable.

    Ok -- I guess I should get that english course ;-).
    Pavel
    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
    pomozte zachranit klanovicky les: http://www.ujezdskystrom.info/


    \
     
     \ /
      Last update: 2008-03-19 22:21    [W:3.577 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site