From: Aivils Stoss <aivils@unibanka.lv>
To: Vojtech Pavlik <vojtech@suse.cz>, linux-kernel@vger.kernel.org
Cc: bruby <linuxconsole-dev@lists.sourceforge.net>
Subject: INPUT: keyboard_tasklet - don't touch LED's of already grabed device
Date: Tue, 6 Sep 2005 10:34:55 +0300 [thread overview]
Message-ID: <200509061034.55963.aivils@unibanka.lv> (raw)
Hi, Vojtech!
Recent kernels allow exclusive usage of input device when
input device is grabed. keyboard_tasklet does not check
device state and switch LED's of all keyboards. However
grabed device may be use another LED steering code.
This patch forbid keyboard_tasklet switch LED's of
grabed devices.
Aivils Stoss
--- linux-2.6.13/drivers/char/keyboard.c 2005-08-29 02:41:01.000000000 +0300
+++ linux-2.6.13/drivers/char/keyboard.c~ 2005-09-06 10:09:35.000000000 +0300
@@ -895,16 +895,18 @@ static inline unsigned char getleds(void
static void kbd_bh(unsigned long dummy)
{
struct list_head * node;
unsigned char leds = getleds();
if (leds != ledstate) {
list_for_each(node,&kbd_handler.h_list) {
+ if (handle->dev->grab)
+ continue;
struct input_handle * handle = to_handle_h(node);
input_event(handle->dev, EV_LED, LED_SCROLLL, !!(leds & 0x01));
input_event(handle->dev, EV_LED, LED_NUML, !!(leds & 0x02));
input_event(handle->dev, EV_LED, LED_CAPSL, !!(leds & 0x04));
input_sync(handle->dev);
}
}
next reply other threads:[~2005-09-06 7:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 7:34 Aivils Stoss [this message]
2005-09-06 11:52 ` INPUT: keyboard_tasklet - don't touch LED's of already grabed device Hugo Vanwoerkom
2005-09-06 11:57 ` Vojtech Pavlik
2005-09-06 12:55 ` Aivils Stoss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509061034.55963.aivils@unibanka.lv \
--to=aivils@unibanka.lv \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxconsole-dev@lists.sourceforge.net \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.