Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions drivers/hid/hid-magicmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,17 @@ static int magicmouse_input_mapping(struct hid_device *hdev,
if (!msc->input)
msc->input = hi->input;

/*
* The dockchannel MTP descriptors (K114c and later) open with a GD
* Mouse collection. raw_event() drives the pad, and libinput refuses
* a mouse and multi-touch hybrid, so drop the Mouse usages. The
* keyboard interface is a GD Keyboard, and kiwi never gets here
* (type guard in magicmouse_probe()).
*/
if (hdev->bus == BUS_HOST && !strncmp(hdev->name, "Apple MTP", 9) &&
field->application == HID_GD_MOUSE)
return -1;

/* Magic Trackpad does not give relative data after switching to MT */
if ((hi->input->id.product == USB_DEVICE_ID_APPLE_MAGICTRACKPAD ||
hi->input->id.product == USB_DEVICE_ID_APPLE_MAGICTRACKPAD2 ||
Expand Down
Loading