Skip to content

Commit c7fabe4

Browse files
rxrblnJiri Kosina
authored andcommitted
HID: quirks: work around VID/PID conflict for appledisplay
For years I wondered why the Apple Cinema Display driver would not just work for me. Turns out the hidraw driver instantly takes it over. Fix by adding appledisplay VID/PIDs to hid_have_special_driver. Fixes: 069e8a6 ("Driver for Apple Cinema Display") Signed-off-by: René Rebe <rene@exactco.de> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent 85a8668 commit c7fabe4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/hid/hid-quirks.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@ static const struct hid_device_id hid_quirks[] = {
233233
* used as a driver. See hid_scan_report().
234234
*/
235235
static const struct hid_device_id hid_have_special_driver[] = {
236+
#if IS_ENABLED(CONFIG_APPLEDISPLAY)
237+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9218) },
238+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9219) },
239+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x921c) },
240+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x921d) },
241+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9222) },
242+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9226) },
243+
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 0x9236) },
244+
#endif
236245
#if IS_ENABLED(CONFIG_HID_A4TECH)
237246
{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU) },
238247
{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D) },

0 commit comments

Comments
 (0)