- input-keyboard_tasklet-dont-touch-leds-of-already-grabed-device.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     input: keyboard_tasklet: don't touch LED's of already grabed device

has been removed from the -mm tree.  Its filename is

     input-keyboard_tasklet-dont-touch-leds-of-already-grabed-device.patch

This patch was dropped because it id being redone

------------------------------------------------------
Subject: input: keyboard_tasklet: don't touch LED's of already grabed device
From: Aivils Stoss <aivils@xxxxxxxxxxx>

Recent kernels allow exclusive usage of input device when input device is
grabbed.  keyboard_tasklet does not check device state and switch LED's of
all keyboards.  However grabbed device may be use another LED steering
code.

This patch forbid keyboard_tasklet switch LED's of grabbed devices.

Acked-by: Vojtech Pavlik <vojtech@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/keyboard.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN drivers/char/keyboard.c~input-keyboard_tasklet-dont-touch-leds-of-already-grabed-device drivers/char/keyboard.c
--- a/drivers/char/keyboard.c~input-keyboard_tasklet-dont-touch-leds-of-already-grabed-device
+++ a/drivers/char/keyboard.c
@@ -1000,6 +1000,8 @@ static void kbd_bh(unsigned long dummy)
 	if (leds != ledstate) {
 		list_for_each(node, &kbd_handler.h_list) {
 			struct input_handle * handle = to_handle_h(node);
+			if (handle->dev->grab)
+				continue;
 			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));
_

Patches currently in -mm which might be from aivils@xxxxxxxxxxx are

input-keyboard_tasklet-dont-touch-leds-of-already-grabed-device.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux