From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755239AbZBPWvu (ORCPT ); Mon, 16 Feb 2009 17:51:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754582AbZBPWva (ORCPT ); Mon, 16 Feb 2009 17:51:30 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43843 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754551AbZBPWv3 (ORCPT ); Mon, 16 Feb 2009 17:51:29 -0500 Date: Mon, 16 Feb 2009 23:51:16 +0100 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Arjan van de Ven , pm list , LKML , Arve Hj?nnev?g , Alan Stern , Benjamin Herrenschmidt , Nigel Cunningham , Matthew Garrett , mark gross , "Woodruff, Richard" , Uli Luckas , Igor Stoppa , Brian Swetland , Len Brown Subject: Re: [RFD] Automatic suspend Message-ID: <20090216225116.GG1370@ucw.cz> References: <200902160010.16955.rjw@sisk.pl> <20090215164456.34aef7e8@infradead.org> <200902162248.34287.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902162248.34287.rjw@sisk.pl> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > Userland should never ever control the state of a device like this > > directly. It should do so by a) closing the device and b) setting > > latency / functional requirements. > > The user, however, may want to forcibly put a device into a low power state > without stopping all of the applications that depend on it (eg. have it open). > Do you think that we shouldn't allow users to do such things? I don't think we should do this... of you want device to be powered down, just don't keep it open. revoke should be enough :-). ...one execption here is the disk driver; unmounting filesystems to let the disk spin down is probably too heavy. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html