summaryrefslogtreecommitdiffstats
path: root/Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2013-01-29 08:41:36 -0500
committerJosh Boyer <jwboyer@redhat.com>2013-01-29 08:49:12 -0500
commit655567cad9234701704192050d2fbf2b11e55803 (patch)
tree94e09672db84b25a7353bad1c6486c94313a4f75 /Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
parent1c73ec9b847ec860f7a28f7fea8b5cb15cfd19b3 (diff)
downloadkernel-655567cad9234701704192050d2fbf2b11e55803.tar.gz
kernel-655567cad9234701704192050d2fbf2b11e55803.tar.xz
kernel-655567cad9234701704192050d2fbf2b11e55803.zip
Backport driver for Cypress PS/2 trackpad (rhbz 799564)
Diffstat (limited to 'Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch')
-rw-r--r--Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch b/Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
new file mode 100644
index 000000000..c3548aa07
--- /dev/null
+++ b/Input-increase-struct-ps2dev-cmdbuf-to-8-bytes.patch
@@ -0,0 +1,30 @@
+From 80524f083e2c3e70057f5bb476db92baa14cb22b Mon Sep 17 00:00:00 2001
+From: Kamal Mostafa <kamal@canonical.com>
+Date: Tue, 20 Nov 2012 23:04:35 -0800
+Subject: [PATCH] Input: increase struct ps2dev cmdbuf[] to 8 bytes
+
+Cypress PS/2 Trackpad (drivers/input/mouse/cypress_ps2.c) needs
+this larger cmdbuf[] to handle 8-byte packet responses.
+
+Signed-off-by: Kamal Mostafa <kamal@canonical.com>
+Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+---
+ include/linux/libps2.h | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/include/linux/libps2.h b/include/linux/libps2.h
+index 79603a6..4ad06e8 100644
+--- a/include/linux/libps2.h
++++ b/include/linux/libps2.h
+@@ -36,7 +36,7 @@ struct ps2dev {
+ wait_queue_head_t wait;
+
+ unsigned long flags;
+- unsigned char cmdbuf[6];
++ unsigned char cmdbuf[8];
+ unsigned char cmdcnt;
+ unsigned char nak;
+ };
+--
+1.7.7.6
+