Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758946AbXHPNEB (ORCPT ); Thu, 16 Aug 2007 09:04:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752466AbXHPNDx (ORCPT ); Thu, 16 Aug 2007 09:03:53 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:39683 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460AbXHPNDw (ORCPT ); Thu, 16 Aug 2007 09:03:52 -0400 X-Sasl-enc: XeM7XEugsle72v5ZzdPesv14kqpidHHC3cDV0XHD+BLt 1187269431 Date: Thu, 16 Aug 2007 10:03:48 -0300 From: Henrique de Moraes Holschuh To: "Michael S. Tsirkin" Cc: lenb@kernel.org, Hugh Dickins , Linux Kernel Mailing List , Richard Hughes Subject: Re: [PATCH 3/3] ACPI: thinkpad-acpi: change thinkpad-acpi input default and kconfig help Message-ID: <20070816130348.GC5081@khazad-dum.debian.net> References: <11868017142597-git-send-email-hmh@hmh.eng.br> <11868017143582-git-send-email-hmh@hmh.eng.br> <20070811180602.GA17843@mellanox.co.il> <20070811221625.GB27761@khazad-dum.debian.net> <20070816073053.GA19833@mellanox.co.il> <20070816122506.GA5081@khazad-dum.debian.net> <20070816122823.GH5684@mellanox.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070816122823.GH5684@mellanox.co.il> X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2535 Lines: 50 On Thu, 16 Aug 2007, Michael S. Tsirkin wrote: > > Quoting Henrique de Moraes Holschuh : > > Subject: Re: [PATCH 3/3] ACPI: thinkpad-acpi: change thinkpad-acpi input default and kconfig help > > On Thu, 16 Aug 2007, Michael S. Tsirkin wrote: > > > > I *can* make the compile-time option a module parameter, though. That > > > > wouldn't be much of a problem, and the compile-time option would select the > > > > default for that parameter, but it would be easier to override it at run > > > > time (you can already do it, but it requires reprogramming various driver > > > > parameters using sysfs and the input device IOCTLs). > > > > > > > > Would a module parameter address enough of your concerns? Kconfig would > > > > only set the default for that parameter, then... > > > > > > I really think modifying defaults it not a great idea. > > > What about adding a writeable module parameter? > > > Then new HAL would just write to /sysfs/module/thinkpad/parameters/interface_version to > > > switch to new behaviour. > > > > Nah. This thing regulates what the module has to do when it loads and inits > > the firmware, > > This does not have to be at module load time, though, does it? Depends on how you view things. If I do it at any other time, I will clobber the current configuration of the module, i.e. it will be an "autoconfig now, overriding current state" trigger. It will also waste a lot of memory since a big deal of stuff will stop being __init and __initdata. Also, it means the configuration the local admin did gets overwritten every time HAL or something else feels the need to poke thinkpad-acpi (hopefully once at system startup, but still...). I consider that completely unacceptable, because in my experience, every time you give someone such a knob, it is abused. And if I make it a only-one-use knob (i.e. start returning -EPERM after it was used once), it is not much different from a module parameter, is it? And both KISS and the principle of least suprise tells me that in that case it better be a module parameter. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh - 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/