r1329 - trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches
Sven Luther
luther@haydn.debian.org
Thu, 26 Aug 2004 00:19:29 -0600
Author: luther
Date: 2004-08-26 00:19:08 -0600 (Thu, 26 Aug 2004)
New Revision: 1329
Added:
trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/powerpc-trackpad.dpatch
Log:
Added powerpc trackpad patch requested by Michael Schmitz. Not added to list though, awaiting review by hch.
Added: trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/powerpc-trackpad.dpatch
===================================================================
--- trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/powerpc-trackpad.dpatch 2004-08-26 06:12:45 UTC (rev 1328)
+++ trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/powerpc-trackpad.dpatch 2004-08-26 06:19:08 UTC (rev 1329)
@@ -0,0 +1,26 @@
+#! /bin/sh -e
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Description: Fixes g4 l2 cache flush and MSR erratas.
+## DP: Patch author: Alex Clausen
+## DP: Upstream status: unknown
+## DP: Please - it's a one-line patch that can definitely be applied since there
+## DP: wasn't ever any Apple with more than one mouse button, much less with a
+## DP: trackpad sporting multiple buttons. Did I forget to mention there wasn't
+## DP: any use of ADB outside of Apple hardware?s
+## DP: Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de>
+
+. $(dirname $0)/DPATCH
+
+@DPATCH@
+--- drivers/macintosh/adbhid.c.orig 2004-03-10 23:41:43.000000000 +0100
++++ drivers/macintosh/adbhid.c 2004-03-10 23:41:34.000000000 +0100
+@@ -327,7 +327,7 @@
+ input_report_key(&adbhid[id]->input, BTN_LEFT, !((data[1] >> 7) & 1));
+ input_report_key(&adbhid[id]->input, BTN_MIDDLE, !((data[2] >> 7) & 1));
+
+- if (nb >= 4)
++ if (nb >= 4 && adbhid[id]->mouse_kind != ADBMOUSE_TRACKPAD)
+ input_report_key(&adbhid[id]->input, BTN_RIGHT, !((data[3] >> 7) & 1));
+
+ input_report_rel(&adbhid[id]->input, REL_X,