From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [RFC Add no_suspend attribute V2] Let the driver know if it's in use Date: Fri, 24 Jul 2009 17:36:30 +0200 Message-ID: <200907241736.31388.rjw@sisk.pl> References: <4A688913.7040000@gandalf.sssup.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A688913.7040000@gandalf.sssup.it> 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: Michael Trimarchi Cc: Greg KH , linux-pm@lists.linux-foundation.org, len.brown@intel.com List-Id: linux-pm@vger.kernel.org On Thursday 23 July 2009, Michael Trimarchi wrote: > Alan Stern wrote: > > On Thu, 23 Jul 2009, Rafael J. Wysocki wrote: > > > > > >>> I follow the discussion around the new runtime support and I would like > >>> to know if I can > >>> add to the new interface the no_suspend flag or maybe now there is a > >>> better solution. > >>> > >> Hmm. Do I remember correctly that the no_suspend flag is for preventing the > >> system-wide suspend in case some devices are in use? > >> > > > > As I recall, the no_suspend flag was used to mark a few devices which > > should not be powered down during an otherwise normal system sleep. > > > > For example, you might want to suspend the computer while leaving a > > built-in DVB tuner on because the tuner is attached to an external TV > > set. > > > > Alan Stern > > > Is it ok for you if a prepare only the patch the add the flag and let > the user space > and the driver to use it? It seems unrelated to the run-time framework, so I think we can add that flag. Please post the patch. Best, Rafael