hid: wellspring device quirks
PATCH 1/1 hid: wellspring device quirks
From: Henrik Rydberg <[email protected]>
This patch adds the HID_QUIRK_IGNORE_MOUSE quirk for the Apple USB multitouch devices based on BCM5974, aka Wellspring. These devices will instead be picked up by the new bcm5974 driver.
---
The bcm5974 driver is currently in Andrew Morton's mm tree:
input-bcm5974-055-smoother-motion-irq-simplification.patch
This patch is against the linux-next tree: v2.6.26-rc9-7639-g60392c2
drivers/hid/usbhid/hid-quirks.c +6 -6
@@ -654,12 +654,12 @@ static const struct hid_blacklist { { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN }, { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI, HID_QUIRK_APPLE_HAS_FN }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS, HID_QUIRK_APPLE_HAS_FN }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI, HID_QUIRK_APPLE_HAS_FN }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, - { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS, HID_QUIRK_APPLE_HAS_FN }, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD | HID_QUIRK_IGNORE_MOUSE}, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE}, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE}, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD | HID_QUIRK_IGNORE_MOUSE }, + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS, HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE },
Quoted 3 lines · Henrik Rydberg
This patch adds the
HID_QUIRK_IGNORE_MOUSEquirk for the Apple USB multitouch devices based on BCM5974, aka Wellspring. These devices will instead be picked up by the new bcm5974 driver.
Hi Henrik,
is the mouse not working at all with standard HID driver?
I'd prefer to postpone merging this patch until bcm5974 hits mainline if the device works in a limited way with standard HID driver, so that we don't introduce regression.
If the device doesn't work with HID driver at all though, it is probably perfectly fine to merge it right away. Please let me know, I have no knowledge about this particular device.
Thanks a lot,
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 10 lines · Jiri Kosina
Quoted 3 lines · Henrik Rydberg
This patch adds the
HID_QUIRK_IGNORE_MOUSEquirk for the Apple USB multitouch devices based on BCM5974, aka Wellspring. These devices will instead be picked up by the new bcm5974 driver.Hi Henrik,
is the mouse not working at all with standard HID driver?
Yes, it is working out-of-the-box, only poorly.
Quoted 4 lines
I'd prefer to postpone merging this patch until bcm5974 hits mainline if the device works in a limited way with standard HID driver, so that we don't introduce regression.
Absolutely, this patch should be applied together with the bcm5974 driver, or not be applied. The driver patch is here:
Quoted 3 lines
If the device doesn't work with HID driver at all though, it is probably perfectly fine to merge it right away. Please let me know, I have no knowledge about this particular device.
It is fine to leave it, but I would of course prefer to have the driver included together with this patch.
Thanks!
Henrik Rydberg
Quoted 22 lines · Henrik Rydberg
Quoted 10 lines · Jiri Kosina
Quoted 3 lines · Henrik Rydberg
This patch adds the
HID_QUIRK_IGNORE_MOUSEquirk for the Apple USB multitouch devices based on BCM5974, aka Wellspring. These devices will instead be picked up by the new bcm5974 driver.Hi Henrik,
is the mouse not working at all with standard HID driver?
Yes, it is working out-of-the-box, only poorly.
Quoted 4 lines
I'd prefer to postpone merging this patch until bcm5974 hits mainline if the device works in a limited way with standard HID driver, so that we don't introduce regression.
Absolutely, this patch should be applied together with the bcm5974 driver, or not be applied. The driver patch is here:
Quoted 7 lines
Quoted 3 lines
If the device doesn't work with HID driver at all though, it is probably perfectly fine to merge it right away. Please let me know, I have no knowledge about this particular device.
It is fine to leave it, but I would of course prefer to have the driver included together with this patch.
Jiri,
Should I take the quirks patch through my tree when I'm ready to apply bcm5974?
Signature · 1 line
Dmitry
Quoted 1 line · Dmitry Torokhov
Should I take the quirks patch through my tree when I'm ready to apply bcm5974?
Hi Dmitry,
that would be the best option, thanks a lot. Please feel free to add
to Henrik's quirk addition patch when you are going to merge it.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs