Skip to contentSkip to conversation

appletouch regression

DISCUSSION Steven Noonan 5 participants 9 messages Oct 18, 2008 HID

lore
Share & tools
lore
#0 lore raw

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

It's unfortunately a touchy issue, as it only -occasionally- happens. A bisection will be a pain in the butt, but I'm starting it right now anyway.

- Steven

#1 lore raw
Quoted 11 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

Quoted 7 lines

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

It's unfortunately a touchy issue, as it only -occasionally- happens. A bisection will be a pain in the butt, but I'm starting it right now anyway.

Hmm, strange...

I didn't change anything in the initialization routines. But I will take a look into the changes, if something is missing or wrong...

Regards
Sven

Signature · 9 lines
 Sven Anders <[email protected]>                 () Ascii Ribbon Campaign
                                                 /\ Support plain text e-mail
 ANDURAS service solutions AG
 Innstraße 71 - 94036 Passau - Germany
 Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55

Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Mark Peters

begin:vcard
fn:Sven Anders
n:Anders;Sven
org:ANDURAS AG;Research and Development adr;quoted-printable:;;Innstra=C3=9Fe 71;Passau;Bavaria;94036;Germany email;internet:[email protected]
title:Dipl. Inf.
tel;work:++49 (0)851 / 490 50 -0
tel;fax:++49 (0)851 / 590 50 - 55
x-mozilla-html:FALSE
url:http://www.anduras.de
version:2.1
end:vcard

#2 lore raw

2008/10/18 Sven Anders <[email protected]>:

Quoted 16 lines
Quoted 15 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

Quoted 9 lines
Quoted 3 lines

It's unfortunately a touchy issue, as it only -occasionally- happens. A bisection will be a pain in the butt, but I'm starting it right now anyway.

Hmm, strange...

I didn't change anything in the initialization routines. But I will take a look into the changes, if something is missing or wrong...

I am pretty sure the two patches recently submitted by you are not guilty (I tried reverting both of them, which had no effect).

Still working on the git-bisect. Fell asleep in the middle of it last night. O.o

- Steven

#3 lore raw
Quoted 30 lines · Steven Noonan

2008/10/18 Sven Anders <[email protected]>:

Quoted 16 lines
Quoted 15 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

Quoted 9 lines
Quoted 3 lines

It's unfortunately a touchy issue, as it only -occasionally- happens. A bisection will be a pain in the butt, but I'm starting it right now anyway.

Hmm, strange...

I didn't change anything in the initialization routines. But I will take a look into the changes, if something is missing or wrong...

I am pretty sure the two patches recently submitted by you are not guilty (I tried reverting both of them, which had no effect).

Quoted 9 lines

Still working on the git-bisect. Fell asleep in the middle of it last night. O.o

- Steven
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

I too have a lifeless apple touchpad,
not sure when this started,due to never really using it unless I'm in a remote location.

Signature · 1 line
Justin P. Mattock
#4 lore raw
Quoted 31 lines · Justin Mattock
Quoted 30 lines · Steven Noonan

2008/10/18 Sven Anders <[email protected]>:

Quoted 16 lines
Quoted 15 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

Quoted 9 lines
Quoted 3 lines

It's unfortunately a touchy issue, as it only -occasionally- happens. A bisection will be a pain in the butt, but I'm starting it right now anyway.

Hmm, strange...

I didn't change anything in the initialization routines. But I will take a look into the changes, if something is missing or wrong...

I am pretty sure the two patches recently submitted by you are not guilty (I tried reverting both of them, which had no effect).

Quoted 8 lines
Quoted 3 lines

Still working on the git-bisect. Fell asleep in the middle of it last night. O.o

- Steven

I too have a lifeless apple touchpad,
not sure when this started,due to never really using it unless I'm in a remote location.

I finished the git-bisect. Here's the log:
# bad: [0cfd8103] Merge git://git.kernel.org/pub/scm/linux/kernel/gi
# good: [3fa8749e] Linux 2.6.27
# good: [56c5d900] Merge branch 'master' of master.kernel.org:/pub/sc # good: [acd15a83] Merge branch 'upstream-linus' of git://git.kernel.
# bad: [c8d8a232] Merge git://git.kernel.org/pub/scm/linux/kernel/gi
# bad: [f055663c] checkpatch: report the correct lines for single st # good: [6dc64725] Merge commit 'origin'

 # bad:  [08da6f1b] MIPS: Kill unused <asm/debug.h> inclusions
 # bad:  [79575019] HID: convert to dev_* prints
 # bad:  [980a3da6] HID: move samsung quirks
 # bad:  [78a849a6] HID: move microsoft quirks
 # bad:  [022e8c4d] HID: move usage input mapping to hid.h

# good: [85cdaf52] HID: make a bus from hid code # bad: [990436a7] HID: move ids into separate file # bad: [c500c971] HID: hid, make parsing event driven

So the bad commit seems to be:

commit c500c9714011edab021591340042787722db9cf0

Author: Jiri Slaby <[email protected]>
Date:   Fri May 16 11:49:16 2008 +0200

HID: hid, make parsing event driven

Next step for complete hid bus, this patch includes:
- call parser either from probe or from hid-core if there is no probe.
- add ll_driver structure and centralize some stuff there (open, close...)
- split and merge usb_hid_configure and hid_probe into several functions to allow hooks/fixes between them

Any ideas, gentlemen?

- Steven

#5 lore raw
Quoted 19 lines · Steven Noonan
Quoted 17 lines · Justin Mattock
Quoted 16 lines · Steven Noonan

2008/10/18 Sven Anders <[email protected]>:

Quoted 15 lines
Quoted 14 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

[...]

Quoted 1 line

Any ideas, gentlemen?

Yeah, I see the problem. The device is grabbed by the hid bus and not released even if apple driver says ENODEV (this is expected behaviour and noted in the driver).

Could you try this patch? (Not ready for merge, it needs to be cleaned up.)

---
 drivers/hid/hid-core.c |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
drivers/hid/hid-core.c +34 -0
index 8a7d9db..94cf1db 100644
@@ -1539,6 +1539,34 @@ static const struct hid_device_id hid_ignore_list[] = {
 	{ }
 };
 
+static const struct hid_device_id hid_mouse_ignore_list[] = {
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
+	{ }
+};
+
+#include <linux/usb.h>
+
 static bool hid_ignore(struct hid_device *hdev)
 {
 	switch (hdev->vendor) {
@@ -1555,6 +1583,12 @@ static bool hid_ignore(struct hid_device *hdev)
 		break;
 	}
 
+	if (hdev->bus == BUS_USB && to_usb_interface(hdev->dev.parent)->
+			cur_altsetting->desc.bInterfaceProtocol ==
+			USB_INTERFACE_PROTOCOL_MOUSE &&
+			hid_match_id(hdev, hid_mouse_ignore_list))
+		return true;
+
 	return !!hid_match_id(hdev, hid_ignore_list);
 }
 
Signature · 1 line
1.6.0.2
#6 lore raw
Quoted 87 lines · Jiri Slaby
Quoted 19 lines · Steven Noonan
Quoted 17 lines · Justin Mattock
Quoted 16 lines · Steven Noonan

2008/10/18 Sven Anders <[email protected]>:

Quoted 15 lines
Quoted 14 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

[...]

Quoted 1 line

Any ideas, gentlemen?

Yeah, I see the problem. The device is grabbed by the hid bus and not released even if apple driver says ENODEV (this is expected behaviour and noted in the driver).

Could you try this patch? (Not ready for merge, it needs to be cleaned up.)

---
 drivers/hid/hid-core.c |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
drivers/hid/hid-core.c +34 -1
index 8a7d9db..94cf1db 100644
@@ -1539,6 +1539,34 @@ static const struct hid_device_id hid_ignore_list[] = {
       { }
 };
 
+static const struct hid_device_id hid_mouse_ignore_list[] = {
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
+       { }
+};
+
+#include <linux/usb.h>
+
 static bool hid_ignore(struct hid_device *hdev)
 {
       switch (hdev->vendor) {
@@ -1555,6 +1583,12 @@ static bool hid_ignore(struct hid_device *hdev)
               break;
       }
 
+       if (hdev->bus == BUS_USB && to_usb_interface(hdev->dev.parent)->
+                       cur_altsetting->desc.bInterfaceProtocol ==
+                       USB_INTERFACE_PROTOCOL_MOUSE &&
+                       hid_match_id(hdev, hid_mouse_ignore_list))
+               return true;
+
       return !!hid_match_id(hdev, hid_ignore_list);
 }
 
--
Quoted 3 lines

1.6.0.2

Applied and can confirm
my appletouchpad is alive and reacting,
Thanks a lot man.

regards;

Signature · 1 line
Justin P. Mattock
author Tested-by
#7 lore raw
Quoted 96 lines · Justin Mattock
Quoted 87 lines · Jiri Slaby
Quoted 19 lines · Steven Noonan
Quoted 17 lines · Justin Mattock
Quoted 16 lines · Steven Noonan

2008/10/18 Sven Anders <[email protected]>:

Quoted 15 lines
Quoted 14 lines · Steven Noonan

It seems that the appletouch driver is (sporadically) not detecting my Apple Trackpad anymore on Linus' current tree (2.6.27-05577-g0cfd810). When it is misbehaving, it doesn't have any /dev/input/event* entry that corresponds to the input from appletouch, and dmesg -should- show the following, as 2.6.27.1 does, but does not:

appletouch: Geyser mode initialized.
input: appletouch as /class/input/input4
usbcore: registered new interface driver appletouch
appletouch: 17" model detected

On the current tree, occasionally all I get is:

usbcore: registered new interface driver appletouch

[...]

Quoted 1 line

Any ideas, gentlemen?

Yeah, I see the problem. The device is grabbed by the hid bus and not released even if apple driver says ENODEV (this is expected behaviour and noted in the driver).

Could you try this patch? (Not ready for merge, it needs to be cleaned up.)

---
 drivers/hid/hid-core.c |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
drivers/hid/hid-core.c +34 -1
index 8a7d9db..94cf1db 100644
@@ -1539,6 +1539,34 @@ static const struct hid_device_id hid_ignore_list[] = {
       { }
 };
 
+static const struct hid_device_id hid_mouse_ignore_list[] = {
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
+       { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
+       { }
+};
+
+#include <linux/usb.h>
+
 static bool hid_ignore(struct hid_device *hdev)
 {
       switch (hdev->vendor) {
@@ -1555,6 +1583,12 @@ static bool hid_ignore(struct hid_device *hdev)
               break;
       }
 
+       if (hdev->bus == BUS_USB && to_usb_interface(hdev->dev.parent)->
+                       cur_altsetting->desc.bInterfaceProtocol ==
+                       USB_INTERFACE_PROTOCOL_MOUSE &&
+                       hid_match_id(hdev, hid_mouse_ignore_list))
+               return true;
+
       return !!hid_match_id(hdev, hid_ignore_list);
 }
 
--
Quoted 3 lines

1.6.0.2

Applied and can confirm
my appletouchpad is alive and reacting,
Thanks a lot man.

Quoted 5 lines

regards;

--
Justin P. Mattock

Works here.

#8 lore raw
In reply to Jiri Slaby
Quoted 5 lines · Jiri Slaby

Yeah, I see the problem. The device is grabbed by the hid bus and not released even if apple driver says ENODEV (this is expected behaviour and noted in the driver).
Could you try this patch? (Not ready for merge, it needs to be cleaned up.)

Will you please send me polished patch with changelog and Signed-off-by, so that I can queue it in my upstream-fixes branch that will go to Linus shortly?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs