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: Oliver Neukum <oliver@...>
Cc: Rafael J. Wysocki <rjw@...>, Nigel Cunningham <ncunningham@...>, 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: Wednesday, April 2, 2008 - 11:13 am

On Wed, 2 Apr 2008, Oliver Neukum wrote:


Basically yes.  Subsystems and drivers are allowed to keep devices
suspended if they were suspended before the system went to sleep.  
Remember, the purpose of the resume method is to let drivers know that
the system is now awake, not to force them to put their devices into a
high-power state.

But under these circumstances we don't want to return an error code,
since nothing really went wrong in the method.  So the -EHOSTUNREACH
should be changed to 0.

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, (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..., Alan Stern, (Wed Apr 2, 11:13 am)
Re: [RFC][PATCH] PM: Introduce new top level suspend and hib..., Benjamin Herrenschmidt, (Tue Apr 1, 4:27 am)