From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Date: Tue, 13 Dec 2005 22:00:51 +0000 Subject: Re: grey- and blacklisting drivers [Was: Re: Using the "best available" driver] Message-Id: List-Id: References: <20051207181524.71dc2d41.zaitcev@redhat.com> In-Reply-To: <20051207181524.71dc2d41.zaitcev@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On 12/13/05, Kay Sievers wrote: > On Tue, Dec 13, 2005 at 03:56:49PM -0500, Dmitry Torokhov wrote: > > On 12/13/05, Kay Sievers wrote: > > > > > > And another thing is the prameters textual value like "auto" and > > > "manual". If we never add a third option to it, we may stick with the= sysfs > > > boolean, which is smaller and simpler to implement. Not sure what's t= he > > > best here. > > > > I prefer textual values because: > > > 1. They self-descriptive > > The same is true for sysfs booleans. No need to "describe" "autobind" on > and off, right?) > If it is called autobindm but I am lobbying for "bind_mode". See serio bus below. > > 2. They already used in kernel, so if you switch to numeric you'll > > break userrspace > > Ther are currently no such attributes at the driver level, right? So > this does not apply at all. > serio bus has 'bind_mode" device and driver attributes. If we add them to the driver core I would like them to be compatible so I could drop them from serio bus itself. > > 3. Implementation difference is insignificant. > > Well, if a boolean is enough, I disagree. But I'm not sure if someone > will want to specify a third operation mode. Than the textual values > are a big advantage, sure. > Hmm, I wonder what that mode will be.. "random"? ;) -- Dmitry ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=CCk _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel