This is a note to let you know that I've just added the patch titled

    HID: magicmouse: Don't report REL_{X, Y} for Magic Trackpad

to the 2.6.37-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     hid-magicmouse-don-t-report-rel_-x-y-for-magic-trackpad.patch
and it can be found in the queue-2.6.37 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected]  Wed Feb 16 13:29:47 2011
From: Chase Douglas <[email protected]>
Date: Tue, 11 Jan 2011 19:37:50 +0100 (CET)
Subject: HID: magicmouse: Don't report REL_{X, Y} for Magic Trackpad
To: [email protected]
Cc: Chase Douglas <[email protected]>
Message-ID: <[email protected]>


From: Chase Douglas <[email protected]>

[ Linus' tree commit 6a66bbd693c12f71697c61207aa18bc5a12da0ab ]

With the recent switch to having the hid layer handle standard axis
initialization, the Magic Trackpad now reports relative axes. This would
be fine in the normal mode, but the driver puts the device in multitouch
mode where no relative events are generated. Also, userspace software
depends on accurate axis information for device type detection. Thus,
ignoring the relative axes from the Magic Trackpad is best.

Signed-off-by: Chase Douglas <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/hid/hid-magicmouse.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -433,6 +433,11 @@ static int magicmouse_input_mapping(stru
        if (!msc->input)
                msc->input = hi->input;
 
+       /* Magic Trackpad does not give relative data after switching to MT */
+       if (hi->input->id.product == USB_DEVICE_ID_APPLE_MAGICTRACKPAD &&
+           field->flags & HID_MAIN_ITEM_RELATIVE)
+               return -1;
+
        return 0;
 }
 


Patches currently in stable-queue which might be from 
[email protected] are

queue-2.6.37/hid-magicmouse-don-t-report-rel_-x-y-for-magic-trackpad.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to