summaryrefslogtreecommitdiffstats
path: root/drivers/input/serio
diff options
context:
space:
mode:
authorLinus Torvalds2009-05-29 17:48:25 +0200
committerLinus Torvalds2009-05-29 17:48:25 +0200
commit5f789cd8bae9b6315b7bf93e24ec1ac85f5a13b9 (patch)
tree42a0c72316275101803aa972e7292f74c6d07a4f /drivers/input/serio
parentMerge branch 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentInput: libps2 - better handle bad scheduler decisions (diff)
downloadkernel-qcow2-linux-5f789cd8bae9b6315b7bf93e24ec1ac85f5a13b9.tar.gz
kernel-qcow2-linux-5f789cd8bae9b6315b7bf93e24ec1ac85f5a13b9.tar.xz
kernel-qcow2-linux-5f789cd8bae9b6315b7bf93e24ec1ac85f5a13b9.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: libps2 - better handle bad scheduler decisions Input: usb1400_ts - fix access to "device data" in resume function Input: multitouch - augment event semantics documentation Input: multitouch - add tracking ID to the protocol
Diffstat (limited to 'drivers/input/serio')
-rw-r--r--drivers/input/serio/libps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c
index 67248c31e19a..be5bbbb8ae4e 100644
--- a/drivers/input/serio/libps2.c
+++ b/drivers/input/serio/libps2.c
@@ -210,7 +210,7 @@ int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
timeout = wait_event_timeout(ps2dev->wait,
!(ps2dev->flags & PS2_FLAG_CMD1), timeout);
- if (ps2dev->cmdcnt && timeout > 0) {
+ if (ps2dev->cmdcnt && !(ps2dev->flags & PS2_FLAG_CMD1)) {
timeout = ps2_adjust_timeout(ps2dev, command, timeout);
wait_event_timeout(ps2dev->wait,