Re: [RFC][PATCH] PM: Introduce new top level suspend and hibernation callbacks (rev. 2)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan Stern <stern@...>
Cc: 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@...>, Pavel Machek <pavel@...>, Benjamin Herrenschmidt <benh@...>
Date: Thursday, March 20, 2008 - 10:14 pm

On Friday, 21 of March 2008, Alan Stern wrote:

I'm not all so sure that the order is actually wrong.  What would be the
advantage of the forward order over the current one?


dpm_destroy is not necessary and I'm going to drop it (later).


That's correct.
 

I agree and that's implemented in the patch (ie. the registrations of new
children are blocked immediately after ->prepare() has returned).


I'm still not seeing the advantage of the forward direction in the first place.

Although I don't see what particular problems that may cause, I think the
current approach (first, block registrations of new children for each
->prepare()d device and finally block any registrations of new devices) is
more natural.


Well, the problem here was the protection of the correct ordering of the
various lists.  However, if the approach with changing 'status' is adopted
instead, which seems to be better, we'll be able to unblock the registering
of new children before ->resume().

Thanks,
Rafael
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] PM: Introduce new top level suspend and hiberna..., Rafael J. Wysocki, (Thu Mar 20, 8:01 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sun Mar 23, 5:16 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Thu Mar 20, 10:14 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sat Mar 22, 6:17 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sat Mar 22, 7:44 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sun Mar 23, 2:41 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 5:49 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 9:06 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 9:15 am)
Re: [linux-pm] , Alan Stern, (Tue Mar 25, 10:19 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 10:24 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 3:48 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 4:41 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 4:49 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 4:56 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Wed Mar 26, 10:24 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Wed Mar 26, 11:42 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Wed Mar 26, 4:46 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level susp..., Rafael J. Wysocki, (Thu Mar 20, 8:26 pm)