From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [BUG?] hid-core.c: hid->name = dev->manufacturer + dev->product ... why not + dev->serial? Date: Tue, 9 Mar 2010 10:41:27 -0800 Message-ID: <20100309184127.GE19814@core.coreip.homeip.net> References: <201003071655.06644@rk-nord.at> <20100309082216.GG17288@core.coreip.homeip.net> <201003091342.20273@rk-nord.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-fx0-f213.google.com ([209.85.220.213]:38665 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752004Ab0CISlg (ORCPT ); Tue, 9 Mar 2010 13:41:36 -0500 Content-Disposition: inline In-Reply-To: <201003091342.20273@rk-nord.at> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Melchior FRANZ Cc: linux-input@vger.kernel.org, Linus Torvalds , Dima Zavin , Jonathan Cameron , LKML , Zhang Rui , Amit Kucheria , Jean Delvare , Greg KH , Andrew Morton , linux-iio@vger.kernel.org On Tue, Mar 09, 2010 at 01:42:20PM +0100, Melchior FRANZ wrote: > > > Nevertheless serials are exported in sysfs ('uniq' attribute). Also udev > > can give persistent names device nodes based on physocal connection, > > serial numbers, etc. > > It's not much fun to use all sorts of additional Linux specific interfaces, > because the responsible one doesn't do its job. > Have you considered the fact that maybe you not using the right interface? The legacy joystick interface (with all its warts like "replaying" the button state, in-kernel scaling and defuzzing, etc.) is not what I would think a good general-purpose data acquisition interface. FWIW evdev does provide access to serial numbers (EVIOCGUNIQ) but even that in my opinion is not the proper interface, for the reasons I mentioned in my previous email. You need to work with guys at linux-iio@vger.kernel.org (which stands for Industrial I/O which is exactly what you are working with). -- Dmitry