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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nigel Cunningham <ncunningham@...>
Cc: pm list <linux-pm@...>, ACPI Devel Maling List <linux-acpi@...>, Alan Stern <stern@...>, Greg KH <greg@...>, Len Brown <lenb@...>, LKML <linux-kernel@...>, Alexey Starikovskiy <astarikovskiy@...>, David Brownell <david-b@...>, Pavel Machek <pavel@...>, Benjamin Herrenschmidt <benh@...>, Oliver Neukum <oliver@...>
Date: Tuesday, April 1, 2008 - 4:12 pm

On Tuesday, 1 of April 2008, Nigel Cunningham wrote:

Hi,


'ext' means 'extended'.  The idea is that the 'extended' version will be used
by bus types / driver types that don't need to implement the _noirq callbacks.
Both the platform and PCI bus types generally allow drivers to use _noirq
callbacks, so they use 'struct pm_ext_ops', as well as their corresponding
driver types.


Yes, the changelog is wrong, because I used a separate structure for the
_noirq callbacks and (quite blindly) change the name of the structure in the
changelog, instead of reworking it. 


Yes, thanks.
 

I think so.

IMO, an error code returned by a driver's ->resume() should mean "the device
hasn't resumed and is presumably dead".  Otherwise, ->resume() should return
success.


The other states fall into the "suspend" category.


Hmm, you're right.  This is the other way around - if a device allocates too
much RAM, we won't have enough memory to create the image.


That will be possible when we drop the freezer.


Thanks, will fix.

Rafael
--
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, (Sat Mar 29, 6:17 pm)
[RFC][PATCH 3/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sat Mar 29, 6:23 pm)
[RFC][PATCH 2/3] PM: New suspend and hibernation callbacks f..., Rafael J. Wysocki, (Sat Mar 29, 6:22 pm)
Re: [RFC][PATCH 2/3] PM: New suspend and hibernation callbac..., Rafael J. Wysocki, (Sat Mar 29, 10:56 pm)
[RFC][PATCH 1/3] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Sat Mar 29, 6:20 pm)
Re: [RFC][PATCH 1/3] PM: Introduce new top level suspend and..., Rafael J. Wysocki, (Sat Mar 29, 10:54 pm)
[RFC][PATCH] PM: Introduce new top level suspend and hiberna..., Rafael J. Wysocki, (Mon Mar 31, 5:29 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Rafael J. Wysocki, (Tue Apr 1, 4:12 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Benjamin Herrenschmidt, (Tue Apr 1, 4:27 am)