summaryrefslogtreecommitdiff
path: root/packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-05-02 15:18:30 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-05-02 15:18:30 +0000
commitb2be337495c4a24f7e7d976eff6f0385ff98c598 (patch)
tree428b207a2b9b0abc29328fc30789484bc39ff4de /packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch
parentf1c1d6417dde3ca1f56c94015b3679eaf1435129 (diff)
parentfa1f831bbf452179c778e7698dedcae323a6dfb0 (diff)
merge of 'ba1cabe56e69c8589c61e7c884217cc75f950877'
and 'c3acd01a05c3a6ed64990e92ec184f98594b2bf5'
Diffstat (limited to 'packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch')
-rw-r--r--packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch b/packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch
new file mode 100644
index 0000000000..9f4ce980ad
--- /dev/null
+++ b/packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch
@@ -0,0 +1,21 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+Index: linux-2.6.21/drivers/input/touchscreen/pcap_ts.c
+===================================================================
+--- linux-2.6.21.orig/drivers/input/touchscreen/pcap_ts.c 2007-04-30 21:55:41.000000000 +0200
++++ linux-2.6.21/drivers/input/touchscreen/pcap_ts.c 2007-04-30 21:55:41.000000000 +0200
+@@ -128,10 +128,7 @@
+ if (ret < 0)
+ return ret;
+
+- if (tmp & 0x00400000)
+- return -EIO;
+-
+- if (pcap_ts->read_state == COORDINATE) {
++ if (pcap_ts->read_state == COORDINATE && !(tmp & 0x00400000)) {
+ pcap_ts->x = (tmp & SSP_PCAP_ADD1_VALUE_MASK);
+ pcap_ts->y = (tmp & SSP_PCAP_ADD2_VALUE_MASK)
+ >>SSP_PCAP_ADD2_VALUE_SHIFT;