From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Trimarchi Subject: Re: [RFC Add no_suspend attribute V2] Let the driver know if it's in use Date: Thu, 23 Jul 2009 18:00:19 +0200 Message-ID: <4A688913.7040000@gandalf.sssup.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Alan Stern Cc: Greg KH , linux-pm@lists.linux-foundation.org, len.brown@intel.com List-Id: linux-pm@vger.kernel.org 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? Michael > >