From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] pm: clear -EAGAIN in dpm_prepare Date: Sun, 5 Jul 2009 01:47:03 +0200 Message-ID: <200907050147.03778.rjw@sisk.pl> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Sebastian Ott Cc: linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org On Tuesday 30 June 2009, Sebastian Ott wrote: > pm: clear -EAGAIN in dpm_prepare > > When the last device in the dpm list is unregistered directly after its > prepare() callback returned with -EAGAIN, the return code is passed to > the calling function, resulting in a resume failure. Prevent this by > clearing the return code after -EAGAIN. > > Signed-off-by: Sebastian Ott > --- Thanks, the patch is now in the linux-next branch of the suspend-2.6 tree. Best, Rafael