From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH] Route kbd leds through the generic leds layer (3rd version) Date: Thu, 25 Feb 2010 19:54:48 -0800 Message-ID: <20100226035448.GA16797__19416.2251581021$1267156513$gmane$org@core.coreip.homeip.net> References: <20100224012010.GA4062@const> <20100225013840.GA5519@const.homenet.telecomitalia.it> <20100225102056.GG10823@core.coreip.homeip.net> <20100225214403.GB9378@const.homenet.telecomitalia.it> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:41985 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935056Ab0BZDyx (ORCPT ); Thu, 25 Feb 2010 22:54:53 -0500 Content-Disposition: inline In-Reply-To: <20100225214403.GB9378@const.homenet.telecomitalia.it> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Samuel Thibault , "H. Peter Anvin" , Pavel Machek , Alexey Dobriyan , akpm@linux-foundation.orglinux- On Thu, Feb 25, 2010 at 10:44:03PM +0100, Samuel Thibault wrote: > Dmitry Torokhov, le Thu 25 Feb 2010 02:20:56 -0800, a =E9crit : > > I am aunsure about this patch. It ties all LEDs together >=20 > For now, yes. There could be an additional per-device layer that the > user could select instead, but my patch doesn't prevent that. >=20 > > whereas currently it is possible to operate keyboards and their led= s > > independently >=20 > You mean through the input layer? Technically, yes, but at least my > patch is an improvement over what exists right now: at first read of > your sentence I thought "of course not! keyboard.c does it for all > devices!", so it's not a regression in that concern. Right now on .33, if you write LED event to one event device while legacy keyboard driver is inactive (in raw mode) then that write will only affect that particular event device, not the rest of them. Your patch changes that. Whether LED state should be shared between all input devices or should be kept separate is a matter of policy and we try to keep policy in userspace. > On the contrary, > it fixes the problem of proper caps lock with led feedback. >=20 I am unaware of such issue, any pointers? > Being able to assign only some of the devices to the linux console > would indeed probably be good, but to me it's just a refinement. User= s > a priori assume all keyboards get their leds updated, so my patch > makes sense. And it won't prevent a further patch that, in addition > to input:: leds, adds per-device leds, which the user could use > instead of input::. I think that if we want to go LED route we shoudl start with adding led devices to individual keyboard drivers first and then convert legacy keyboard to use trigger instead of talking to input devices directly. Thanks. --=20 Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html