Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423239AbXEEJfJ (ORCPT ); Sat, 5 May 2007 05:35:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423241AbXEEJfJ (ORCPT ); Sat, 5 May 2007 05:35:09 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:59943 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423239AbXEEJfH (ORCPT ); Sat, 5 May 2007 05:35:07 -0400 From: "Rafael J. Wysocki" To: Ingo Molnar Subject: Re: [patch] suspend/resume debugging: device filter Date: Sat, 5 May 2007 11:39:32 +0200 User-Agent: KMail/1.9.5 Cc: Greg KH , Andrew Morton , linux-kernel@vger.kernel.org, Pavel Machek , Linus Torvalds , linux-pm@lists.osdl.org References: <20070125110501.GA25151@elte.hu> <20070126015536.GA14917@suse.de> <20070505092425.GA23125@elte.hu> In-Reply-To: <20070505092425.GA23125@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705051139.33008.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 33 On Saturday, 5 May 2007 11:24, Ingo Molnar wrote: > > * Greg KH wrote: > > > Here's a (compile tested only) patch that does this on a per-device > > basis, which is smaller, and should work just as well as your patch. > > > > It creates a new file in the power/ directory for every device called > > "can_suspend". Write a '0' to it to prevent that device from being > > suspended. > > > > Does this work for you? > > yeah, i was able to use this too to debug suspend/resume problems. But > i've added the check to the resume path too - for example sw-suspend > does a resume of devices during its suspend cycle, cutting off much of > the netconsole output. > > which makes the can_suspend flag mis-named - perhaps rename it to > exclude_pm ? > > updated patch below, against v2.6.21. Could we get this into v2.6.22 > please? It's a real time-saver. ACK Greetings, Rafael - 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/