From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] PM: Acquire device locks on suspend Date: Sun, 6 Jan 2008 23:24:14 +0100 Message-ID: <200801062324.15960.rjw@sisk.pl> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:33785 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758189AbYAFWWC (ORCPT ); Sun, 6 Jan 2008 17:22:02 -0500 In-Reply-To: Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Alan Stern Cc: Greg KH , Andrew Morton , Len Brown , Ingo Molnar , ACPI Devel Maling List , LKML , pm list On Sunday, 6 of January 2008, Alan Stern wrote: > On Sun, 6 Jan 2008, Rafael J. Wysocki wrote: > > > On Sunday, 6 of January 2008, Alan Stern wrote: > > > Still, shouldn't we fail the removal of the device apart from giving the > > warning? > > We can't. device_del() can't fail -- it returns void. Besides, how > can a driver hope to deal with an unregistration failure? Well, right. Still, our present approach doesn't seem to be correct overall. For example, I think we should prevent a suspend from happening while a device is being removed. Rafael