]> git.baikalelectronics.ru Git - kernel.git/commit
Input: libps2 - additional locking for i8042 ports
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 16 Sep 2009 08:06:43 +0000 (01:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Sep 2009 06:23:45 +0000 (23:23 -0700)
commit88b6b19be24302971a19681f91a57775aa7f258b
tree1fa397811ea6bcc73001fe1ab5b53525f2b88f74
parent057faa1e88427d4f7c4bbebe5a712c0c4ac3d8bf
Input: libps2 - additional locking for i8042 ports

The serio ports on i8042 are not completely isolated; while we provide
enough locking to ensure proper serialization when accessing control
and data registers AUX and KBD ports can still have an effect on each
other on PS/2 protocol level. The most prominent effect is that
issuing a command for the device connected to one port may cause
abort of the command currently executing by the device connected to
another port.

Since i8042 nor serio subsystem are not aware of the details of the
PS/2 protocol (length of the commands and their replies and so on) the
locking should be done on libps2 level by adding special handling when
we see that we are dealing with serio port on i8042.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/sentelic.c
drivers/input/serio/i8042.c
drivers/input/serio/libps2.c
drivers/leds/leds-clevo-mail.c
drivers/platform/x86/acer-wmi.c
include/linux/i8042.h
include/linux/libps2.h