Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349AbYL3O3U (ORCPT ); Tue, 30 Dec 2008 09:29:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752015AbYL3O3I (ORCPT ); Tue, 30 Dec 2008 09:29:08 -0500 Received: from smtp-out0.tiscali.nl ([195.241.79.175]:49249 "EHLO smtp-out0.tiscali.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995AbYL3O3H (ORCPT ); Tue, 30 Dec 2008 09:29:07 -0500 Date: Tue, 30 Dec 2008 15:29:03 +0100 From: Arjan Opmeer To: Dmitry Torokhov Cc: "Alexander E. Patrakov" , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Message-ID: <20081230142903.GA3449@adopmeer.homeip.net> References: <20081229185619.GA18394@adopmeer.homeip.net> <4959B9B7.2050800@gmail.com> <200812300115.02408.dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812300115.02408.dmitry.torokhov@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: 2.6.28 thinks that my PS/2 mouse is a touchpad Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 31 On Tue, Dec 30, 2008 at 01:15:01AM -0800, Dmitry Torokhov wrote: > On Monday 29 December 2008 22:03:35 Alexander E. Patrakov wrote: > > > > This is still slightly wrong. The mouse does work, but is misnamed in > > the dmesg output and in /proc/bus/input/devices: > > > > psmouse serio1: ID: 10 00 64<6>elantech.c: Elantech version query result > > 0x00, 0x01, 0x64. > > elantech.c: Probably not a real Elantech touchpad. Aborting. > > input: ImExPS/2 Elantech Touchpad as /class/input/input8 > > Yeah, elantech_init() is too late, we need to do something in > elantech_detect()... Well, we could also move that Elantech version query and test for sane values into elantech_detect(). However, because we have no private data structure at that time it would mean we have to do the same query again in elantech_init() to store fw_version_maj and fw_version_min. > Maybe we need to pull part of Logitech check (number of buttons for > example) from logips2pp.c. I think the solution above is simpler although maybe not as pretty... :) Arjan -- 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/