Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764074AbYAYIBB (ORCPT ); Fri, 25 Jan 2008 03:01:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757546AbYAYHr4 (ORCPT ); Fri, 25 Jan 2008 02:47:56 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:2075 "EHLO spitz.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759871AbYAYHrz (ORCPT ); Fri, 25 Jan 2008 02:47:55 -0500 Date: Fri, 25 Jan 2008 07:47:46 +0000 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Andrew Morton , Michael Buesch , pm list , Alan Stern , Len Brown , LKML , bcm43xx-dev@lists.berlios.de, Alessandro Rubini , Richard Purdie Subject: Re: [PATCH -mm 5/5] b43: Avoid unregistering device objects during suspend 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 Content-Disposition: inline In-Reply-To: <200801250137.34275.rjw@sisk.pl> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 24 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/