From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH -mm 5/5] b43: Avoid unregistering device objects during suspend Date: Fri, 25 Jan 2008 07:47:46 +0000 Message-ID: <20080125074746.GC4134@ucw.cz> References: <200801250127.21966.rjw@sisk.pl> <200801250137.34275.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200801250137.34275.rjw@sisk.pl> 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: "Rafael J. Wysocki" Cc: LKML , Alessandro Rubini , bcm43xx-dev@lists.berlios.de, Michael Buesch , Andrew Morton , pm list List-Id: linux-pm@vger.kernel.org On Fri 2008-01-25 01:37:33, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Modify the b43 driver to avoid deadlocking suspend and resume, > which happens as a result of attempting to unregister device objects > locked by the PM core during suspend/resume cycles. Also, make it > use a suspend-safe method of unregistering device object in the > resume error path. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Michael Buesch Maybe we should have global suspend_in_progress (or maybe system_state == suspending?) and automatically switch to schedule_removal() while it is set? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html