Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755315AbXF3SUq (ORCPT ); Sat, 30 Jun 2007 14:20:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753253AbXF3SUg (ORCPT ); Sat, 30 Jun 2007 14:20:36 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:35634 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753235AbXF3SUe (ORCPT ); Sat, 30 Jun 2007 14:20:34 -0400 X-Sasl-enc: ZRToEp6nr2lSWelfTBiBMeZv60Lpk9wETKn1IYcT5bUq 1183227633 Date: Sat, 30 Jun 2007 15:20:29 -0300 From: Henrique de Moraes Holschuh To: Dmitry Torokhov Cc: Richard Hughes , linux-acpi@vger.kernel.org, linux-input@atrey.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: document the proper usage of EV_KEY and KEY_UNKNOWN (v2) Message-ID: <20070630182029.GA25474@khazad-dum.debian.net> References: <11802004861625-git-send-email-hmh@hmh.eng.br> <20070531222814.GB4076@khazad-dum.debian.net> <20070606165509.GB18984@khazad-dum.debian.net> <200706290104.53909.dtor@insightbb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706290104.53909.dtor@insightbb.com> 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: 1363 Lines: 30 On Fri, 29 Jun 2007, Dmitry Torokhov wrote: > Finally gottent to the patch. It seems a little long-winded, how about > the patch below instead? Well, your version of the patch: 1. does not make it clear to *userland* that using EV_SCAN instead of EV_KEY is something that is not to be done. If userland wants to use a key that is not generating an useful EV_KEY, it must remap the key to something. Otherwise, we are opening our flank to the crap we have with that kludge from hell AT keyboard reverse scan-code generation all again... it might have been unavoidable with the AT keyboard, due to legacy stuff, but there is no way we should let it happen to anything else. 2. does not make it clear that EV_SCAN events must reflect the scan code that, when remapped, would reprogram the key that caused that EV_SCAN event to be generated. I think these two points need to be addressed by the docs. -- "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/