Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: Rafael J. Wysocki <rjw@...>, pm list <linux-pm@...>, ACPI Devel Maling List <linux-acpi@...>, Greg KH <greg@...>, Len Brown <lenb@...>, LKML <linux-kernel@...>, Alexey Starikovskiy <astarikovskiy@...>, David Brownell <david-b@...>
Date: Tuesday, March 18, 2008 - 11:10 am

On Tue, 18 Mar 2008, Pavel Machek wrote:


"during a successful call to @prepare()"?


You misunderstood (maybe the comment needs to be clarified as above).  

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.


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.

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH 0/3] PM: Rework suspend and hibernation code for..., Rafael J. Wysocki, (Sun Mar 16, 7:20 pm)
[RFC][PATCH 3/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sun Mar 16, 7:25 pm)
Re: [RFC][PATCH 3/3] PM: New suspend and hibernation callbac..., Rafael J. Wysocki, (Wed Mar 19, 9:24 am)
[RFC][PATCH 2/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sun Mar 16, 7:24 pm)
[RFC][PATCH 1/3] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sun Mar 16, 7:22 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Rafael J. Wysocki, (Wed Mar 19, 9:22 am)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Alan Stern, (Tue Mar 18, 11:10 am)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Rafael J. Wysocki, (Tue Mar 18, 9:04 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Tue Mar 18, 11:49 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Wed Mar 19, 11:33 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Thu Mar 20, 6:34 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Benjamin Herrenschmidt, (Thu Mar 20, 6:32 pm)