From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [RFC Disable suspend on a specific device] This is a little change in linux power scheme Date: Wed, 8 Apr 2009 12:53:30 +0100 Message-ID: <20090408115330.GL20122@sirena.org.uk> References: <200904072340.53638.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <200904072340.53638.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: linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org On Tue, Apr 07, 2009 at 11:40:53PM +0200, Rafael J. Wysocki wrote: > IMO, there is a danger that suspend will break or even the machine will crash > if this is used for a wrong device. I don't think it's generally safe to add > switches like this on the core level, because the core doesn't really know > which drivers are prepared for it. OTOH it would be good to have a standard way of exposing this behaviour to user space when it can be supported so that applications have some degree of abstraction when working with these systems and drivers don't have to keep on cooking up their own methods of exposing it.