1 // SPDX-License-Identifier: GPL-2.0
3 * USB device quirk handling logic and table
5 * Copyright (c) 2007 Oliver Neukum
6 * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
9 #include <linux/moduleparam.h>
10 #include <linux/usb.h>
11 #include <linux/usb/quirks.h>
12 #include <linux/usb/hcd.h>
21 static DEFINE_MUTEX(quirk_mutex);
23 static struct quirk_entry *quirk_list;
24 static unsigned int quirk_count;
26 static char quirks_param[128];
28 static int quirks_param_set(const char *value, const struct kernel_param *kp)
30 char *val, *p, *field;
36 val = kstrdup(value, GFP_KERNEL);
40 err = param_set_copystring(val, kp);
46 mutex_lock(&quirk_mutex);
55 for (quirk_count = 1, i = 0; val[i]; i++)
64 quirk_list = kcalloc(quirk_count, sizeof(struct quirk_entry),
68 mutex_unlock(&quirk_mutex);
73 for (i = 0, p = val; p && *p;) {
74 /* Each entry consists of VID:PID:flags */
75 field = strsep(&p, ":");
79 if (kstrtou16(field, 16, &vid))
82 field = strsep(&p, ":");
86 if (kstrtou16(field, 16, &pid))
89 field = strsep(&p, ",");
90 if (!field || !*field)
93 /* Collect the flags */
94 for (flags = 0; *field; field++) {
97 flags |= USB_QUIRK_STRING_FETCH_255;
100 flags |= USB_QUIRK_RESET_RESUME;
103 flags |= USB_QUIRK_NO_SET_INTF;
106 flags |= USB_QUIRK_CONFIG_INTF_STRINGS;
109 flags |= USB_QUIRK_RESET;
112 flags |= USB_QUIRK_HONOR_BNUMINTERFACES;
115 flags |= USB_QUIRK_DELAY_INIT;
118 flags |= USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL;
121 flags |= USB_QUIRK_DEVICE_QUALIFIER;
124 flags |= USB_QUIRK_IGNORE_REMOTE_WAKEUP;
127 flags |= USB_QUIRK_NO_LPM;
130 flags |= USB_QUIRK_LINEAR_FRAME_INTR_BINTERVAL;
133 flags |= USB_QUIRK_DISCONNECT_SUSPEND;
136 flags |= USB_QUIRK_DELAY_CTRL_MSG;
139 flags |= USB_QUIRK_HUB_SLOW_RESET;
141 /* Ignore unrecognized flag characters */
145 quirk_list[i++] = (struct quirk_entry)
146 { .vid = vid, .pid = pid, .flags = flags };
153 mutex_unlock(&quirk_mutex);
159 static const struct kernel_param_ops quirks_param_ops = {
160 .set = quirks_param_set,
161 .get = param_get_string,
164 static struct kparam_string quirks_param_string = {
165 .maxlen = sizeof(quirks_param),
166 .string = quirks_param,
169 device_param_cb(quirks, &quirks_param_ops, &quirks_param_string, 0644);
170 MODULE_PARM_DESC(quirks, "Add/modify USB quirks by specifying quirks=vendorID:productID:quirks");
172 /* Lists of quirky USB devices, split in device quirks and interface quirks.
173 * Device quirks are applied at the very beginning of the enumeration process,
174 * right after reading the device descriptor. They can thus only match on device
177 * Interface quirks are applied after reading all the configuration descriptors.
178 * They can match on both device and interface information.
180 * Note that the DELAY_INIT and HONOR_BNUMINTERFACES quirks do not make sense as
181 * interface quirks, as they only influence the enumeration process which is run
182 * before processing the interface quirks.
184 * Please keep the lists ordered by:
189 static const struct usb_device_id usb_quirk_list[] = {
190 /* CBM - Flash disk */
191 { USB_DEVICE(0x0204, 0x6025), .driver_info = USB_QUIRK_RESET_RESUME },
193 /* WORLDE Controller KS49 or Prodipe MIDI 49C USB controller */
194 { USB_DEVICE(0x0218, 0x0201), .driver_info =
195 USB_QUIRK_CONFIG_INTF_STRINGS },
197 /* WORLDE easy key (easykey.25) MIDI controller */
198 { USB_DEVICE(0x0218, 0x0401), .driver_info =
199 USB_QUIRK_CONFIG_INTF_STRINGS },
201 /* HP 5300/5370C scanner */
202 { USB_DEVICE(0x03f0, 0x0701), .driver_info =
203 USB_QUIRK_STRING_FETCH_255 },
205 /* HP v222w 16GB Mini USB Drive */
206 { USB_DEVICE(0x03f0, 0x3f40), .driver_info = USB_QUIRK_DELAY_INIT },
208 /* Creative SB Audigy 2 NX */
209 { USB_DEVICE(0x041e, 0x3020), .driver_info = USB_QUIRK_RESET_RESUME },
212 { USB_DEVICE(0x0424, 0x3503), .driver_info = USB_QUIRK_RESET_RESUME },
214 /* Microsoft Wireless Laser Mouse 6000 Receiver */
215 { USB_DEVICE(0x045e, 0x00e1), .driver_info = USB_QUIRK_RESET_RESUME },
217 /* Microsoft LifeCam-VX700 v2.0 */
218 { USB_DEVICE(0x045e, 0x0770), .driver_info = USB_QUIRK_RESET_RESUME },
220 /* Microsoft Surface Dock Ethernet (RTL8153 GigE) */
221 { USB_DEVICE(0x045e, 0x07c6), .driver_info = USB_QUIRK_NO_LPM },
223 /* Cherry Stream G230 2.0 (G85-231) and 3.0 (G85-232) */
224 { USB_DEVICE(0x046a, 0x0023), .driver_info = USB_QUIRK_RESET_RESUME },
226 /* Logitech HD Webcam C270 */
227 { USB_DEVICE(0x046d, 0x0825), .driver_info = USB_QUIRK_RESET_RESUME },
229 /* Logitech HD Pro Webcams C920, C920-C, C922, C925e and C930e */
230 { USB_DEVICE(0x046d, 0x082d), .driver_info = USB_QUIRK_DELAY_INIT },
231 { USB_DEVICE(0x046d, 0x0841), .driver_info = USB_QUIRK_DELAY_INIT },
232 { USB_DEVICE(0x046d, 0x0843), .driver_info = USB_QUIRK_DELAY_INIT },
233 { USB_DEVICE(0x046d, 0x085b), .driver_info = USB_QUIRK_DELAY_INIT },
234 { USB_DEVICE(0x046d, 0x085c), .driver_info = USB_QUIRK_DELAY_INIT },
236 /* Logitech ConferenceCam CC3000e */
237 { USB_DEVICE(0x046d, 0x0847), .driver_info = USB_QUIRK_DELAY_INIT },
238 { USB_DEVICE(0x046d, 0x0848), .driver_info = USB_QUIRK_DELAY_INIT },
240 /* Logitech PTZ Pro Camera */
241 { USB_DEVICE(0x046d, 0x0853), .driver_info = USB_QUIRK_DELAY_INIT },
243 /* Logitech Screen Share */
244 { USB_DEVICE(0x046d, 0x086c), .driver_info = USB_QUIRK_NO_LPM },
246 /* Logitech Quickcam Fusion */
247 { USB_DEVICE(0x046d, 0x08c1), .driver_info = USB_QUIRK_RESET_RESUME },
249 /* Logitech Quickcam Orbit MP */
250 { USB_DEVICE(0x046d, 0x08c2), .driver_info = USB_QUIRK_RESET_RESUME },
252 /* Logitech Quickcam Pro for Notebook */
253 { USB_DEVICE(0x046d, 0x08c3), .driver_info = USB_QUIRK_RESET_RESUME },
255 /* Logitech Quickcam Pro 5000 */
256 { USB_DEVICE(0x046d, 0x08c5), .driver_info = USB_QUIRK_RESET_RESUME },
258 /* Logitech Quickcam OEM Dell Notebook */
259 { USB_DEVICE(0x046d, 0x08c6), .driver_info = USB_QUIRK_RESET_RESUME },
261 /* Logitech Quickcam OEM Cisco VT Camera II */
262 { USB_DEVICE(0x046d, 0x08c7), .driver_info = USB_QUIRK_RESET_RESUME },
264 /* Logitech Harmony 700-series */
265 { USB_DEVICE(0x046d, 0xc122), .driver_info = USB_QUIRK_DELAY_INIT },
267 /* Philips PSC805 audio device */
268 { USB_DEVICE(0x0471, 0x0155), .driver_info = USB_QUIRK_RESET_RESUME },
270 /* Plantronic Audio 655 DSP */
271 { USB_DEVICE(0x047f, 0xc008), .driver_info = USB_QUIRK_RESET_RESUME },
273 /* Plantronic Audio 648 USB */
274 { USB_DEVICE(0x047f, 0xc013), .driver_info = USB_QUIRK_RESET_RESUME },
276 /* Artisman Watchdog Dongle */
277 { USB_DEVICE(0x04b4, 0x0526), .driver_info =
278 USB_QUIRK_CONFIG_INTF_STRINGS },
280 /* Microchip Joss Optical infrared touchboard device */
281 { USB_DEVICE(0x04d8, 0x000c), .driver_info =
282 USB_QUIRK_CONFIG_INTF_STRINGS },
284 /* CarrolTouch 4000U */
285 { USB_DEVICE(0x04e7, 0x0009), .driver_info = USB_QUIRK_RESET_RESUME },
287 /* CarrolTouch 4500U */
288 { USB_DEVICE(0x04e7, 0x0030), .driver_info = USB_QUIRK_RESET_RESUME },
290 /* Samsung Android phone modem - ID conflict with SPH-I500 */
291 { USB_DEVICE(0x04e8, 0x6601), .driver_info =
292 USB_QUIRK_CONFIG_INTF_STRINGS },
294 /* Elan Touchscreen */
295 { USB_DEVICE(0x04f3, 0x0089), .driver_info =
296 USB_QUIRK_DEVICE_QUALIFIER },
298 { USB_DEVICE(0x04f3, 0x009b), .driver_info =
299 USB_QUIRK_DEVICE_QUALIFIER },
301 { USB_DEVICE(0x04f3, 0x010c), .driver_info =
302 USB_QUIRK_DEVICE_QUALIFIER },
304 { USB_DEVICE(0x04f3, 0x0125), .driver_info =
305 USB_QUIRK_DEVICE_QUALIFIER },
307 { USB_DEVICE(0x04f3, 0x016f), .driver_info =
308 USB_QUIRK_DEVICE_QUALIFIER },
310 { USB_DEVICE(0x04f3, 0x0381), .driver_info =
313 { USB_DEVICE(0x04f3, 0x21b8), .driver_info =
314 USB_QUIRK_DEVICE_QUALIFIER },
317 { USB_DEVICE(0x0582, 0x0007), .driver_info = USB_QUIRK_RESET_RESUME },
320 { USB_DEVICE(0x0582, 0x0027), .driver_info = USB_QUIRK_RESET_RESUME },
322 /* Alcor Micro Corp. Hub */
323 { USB_DEVICE(0x058f, 0x9254), .driver_info = USB_QUIRK_RESET_RESUME },
326 { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME },
328 /* Genesys Logic hub, internally used by KY-688 USB 3.1 Type-C Hub */
329 { USB_DEVICE(0x05e3, 0x0612), .driver_info = USB_QUIRK_NO_LPM },
331 /* ELSA MicroLink 56K */
332 { USB_DEVICE(0x05cc, 0x2267), .driver_info = USB_QUIRK_RESET_RESUME },
334 /* Genesys Logic hub, internally used by Moshi USB to Ethernet Adapter */
335 { USB_DEVICE(0x05e3, 0x0616), .driver_info = USB_QUIRK_NO_LPM },
338 { USB_DEVICE(0x0638, 0x0a13), .driver_info =
339 USB_QUIRK_STRING_FETCH_255 },
341 /* Saitek Cyborg Gold Joystick */
342 { USB_DEVICE(0x06a3, 0x0006), .driver_info =
343 USB_QUIRK_CONFIG_INTF_STRINGS },
345 /* Guillemot Webcam Hercules Dualpix Exchange (2nd ID) */
346 { USB_DEVICE(0x06f8, 0x0804), .driver_info = USB_QUIRK_RESET_RESUME },
348 /* Guillemot Webcam Hercules Dualpix Exchange*/
349 { USB_DEVICE(0x06f8, 0x3005), .driver_info = USB_QUIRK_RESET_RESUME },
351 /* Midiman M-Audio Keystation 88es */
352 { USB_DEVICE(0x0763, 0x0192), .driver_info = USB_QUIRK_RESET_RESUME },
354 /* SanDisk Ultra Fit and Ultra Flair */
355 { USB_DEVICE(0x0781, 0x5583), .driver_info = USB_QUIRK_NO_LPM },
356 { USB_DEVICE(0x0781, 0x5591), .driver_info = USB_QUIRK_NO_LPM },
358 /* M-Systems Flash Disk Pioneers */
359 { USB_DEVICE(0x08ec, 0x1000), .driver_info = USB_QUIRK_RESET_RESUME },
361 /* Baum Vario Ultra */
362 { USB_DEVICE(0x0904, 0x6101), .driver_info =
363 USB_QUIRK_LINEAR_FRAME_INTR_BINTERVAL },
364 { USB_DEVICE(0x0904, 0x6102), .driver_info =
365 USB_QUIRK_LINEAR_FRAME_INTR_BINTERVAL },
366 { USB_DEVICE(0x0904, 0x6103), .driver_info =
367 USB_QUIRK_LINEAR_FRAME_INTR_BINTERVAL },
369 /* Sound Devices USBPre2 */
370 { USB_DEVICE(0x0926, 0x0202), .driver_info =
371 USB_QUIRK_ENDPOINT_IGNORE },
373 /* Sound Devices MixPre-D */
374 { USB_DEVICE(0x0926, 0x0208), .driver_info =
375 USB_QUIRK_ENDPOINT_IGNORE },
377 /* Keytouch QWERTY Panel keyboard */
378 { USB_DEVICE(0x0926, 0x3333), .driver_info =
379 USB_QUIRK_CONFIG_INTF_STRINGS },
381 /* X-Rite/Gretag-Macbeth Eye-One Pro display colorimeter */
382 { USB_DEVICE(0x0971, 0x2000), .driver_info = USB_QUIRK_NO_SET_INTF },
384 /* Broadcom BCM92035DGROM BT dongle */
385 { USB_DEVICE(0x0a5c, 0x2021), .driver_info = USB_QUIRK_RESET_RESUME },
387 /* MAYA44USB sound device */
388 { USB_DEVICE(0x0a92, 0x0091), .driver_info = USB_QUIRK_RESET_RESUME },
390 /* ASUS Base Station(T100) */
391 { USB_DEVICE(0x0b05, 0x17e0), .driver_info =
392 USB_QUIRK_IGNORE_REMOTE_WAKEUP },
394 /* Realtek hub in Dell WD19 (Type-C) */
395 { USB_DEVICE(0x0bda, 0x0487), .driver_info = USB_QUIRK_NO_LPM },
397 /* Generic RTL8153 based ethernet adapters */
398 { USB_DEVICE(0x0bda, 0x8153), .driver_info = USB_QUIRK_NO_LPM },
400 /* Action Semiconductor flash disk */
401 { USB_DEVICE(0x10d6, 0x2200), .driver_info =
402 USB_QUIRK_STRING_FETCH_255 },
404 /* Huawei 4G LTE module */
405 { USB_DEVICE(0x12d1, 0x15bb), .driver_info =
406 USB_QUIRK_DISCONNECT_SUSPEND },
407 { USB_DEVICE(0x12d1, 0x15c3), .driver_info =
408 USB_QUIRK_DISCONNECT_SUSPEND },
410 /* SKYMEDI USB_DRIVE */
411 { USB_DEVICE(0x1516, 0x8628), .driver_info = USB_QUIRK_RESET_RESUME },
413 /* Razer - Razer Blade Keyboard */
414 { USB_DEVICE(0x1532, 0x0116), .driver_info =
415 USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
417 /* BUILDWIN Photo Frame */
418 { USB_DEVICE(0x1908, 0x1315), .driver_info =
419 USB_QUIRK_HONOR_BNUMINTERFACES },
421 /* Protocol and OTG Electrical Test Device */
422 { USB_DEVICE(0x1a0a, 0x0200), .driver_info =
423 USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
425 /* Terminus Technology Inc. Hub */
426 { USB_DEVICE(0x1a40, 0x0101), .driver_info = USB_QUIRK_HUB_SLOW_RESET },
428 /* Corsair K70 RGB */
429 { USB_DEVICE(0x1b1c, 0x1b13), .driver_info = USB_QUIRK_DELAY_INIT |
430 USB_QUIRK_DELAY_CTRL_MSG },
433 { USB_DEVICE(0x1b1c, 0x1b15), .driver_info = USB_QUIRK_DELAY_INIT |
434 USB_QUIRK_DELAY_CTRL_MSG },
436 /* Corsair Strafe RGB */
437 { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT |
438 USB_QUIRK_DELAY_CTRL_MSG },
440 /* Corsair K70 LUX RGB */
441 { USB_DEVICE(0x1b1c, 0x1b33), .driver_info = USB_QUIRK_DELAY_INIT },
443 /* Corsair K70 LUX */
444 { USB_DEVICE(0x1b1c, 0x1b36), .driver_info = USB_QUIRK_DELAY_INIT },
446 /* Corsair K70 RGB RAPDIFIRE */
447 { USB_DEVICE(0x1b1c, 0x1b38), .driver_info = USB_QUIRK_DELAY_INIT |
448 USB_QUIRK_DELAY_CTRL_MSG },
450 /* MIDI keyboard WORLDE MINI */
451 { USB_DEVICE(0x1c75, 0x0204), .driver_info =
452 USB_QUIRK_CONFIG_INTF_STRINGS },
454 /* Acer C120 LED Projector */
455 { USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
457 /* Blackmagic Design Intensity Shuttle */
458 { USB_DEVICE(0x1edb, 0xbd3b), .driver_info = USB_QUIRK_NO_LPM },
460 /* Blackmagic Design UltraStudio SDI */
461 { USB_DEVICE(0x1edb, 0xbd4f), .driver_info = USB_QUIRK_NO_LPM },
463 /* Hauppauge HVR-950q */
464 { USB_DEVICE(0x2040, 0x7200), .driver_info =
465 USB_QUIRK_CONFIG_INTF_STRINGS },
467 /* Raydium Touchscreen */
468 { USB_DEVICE(0x2386, 0x3114), .driver_info = USB_QUIRK_NO_LPM },
470 { USB_DEVICE(0x2386, 0x3119), .driver_info = USB_QUIRK_NO_LPM },
472 { USB_DEVICE(0x2386, 0x350e), .driver_info = USB_QUIRK_NO_LPM },
475 { USB_DEVICE(0x2ca3, 0x0031), .driver_info = USB_QUIRK_NO_LPM },
477 /* INTEL VALUE SSD */
478 { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME },
480 /* novation SoundControl XL */
481 { USB_DEVICE(0x1235, 0x0061), .driver_info = USB_QUIRK_RESET_RESUME },
483 { } /* terminating entry must be last */
486 static const struct usb_device_id usb_interface_quirk_list[] = {
487 /* Logitech UVC Cameras */
488 { USB_VENDOR_AND_INTERFACE_INFO(0x046d, USB_CLASS_VIDEO, 1, 0),
489 .driver_info = USB_QUIRK_RESET_RESUME },
491 { } /* terminating entry must be last */
494 static const struct usb_device_id usb_amd_resume_quirk_list[] = {
495 /* Lenovo Mouse with Pixart controller */
496 { USB_DEVICE(0x17ef, 0x602e), .driver_info = USB_QUIRK_RESET_RESUME },
499 { USB_DEVICE(0x093a, 0x2500), .driver_info = USB_QUIRK_RESET_RESUME },
500 { USB_DEVICE(0x093a, 0x2510), .driver_info = USB_QUIRK_RESET_RESUME },
501 { USB_DEVICE(0x093a, 0x2521), .driver_info = USB_QUIRK_RESET_RESUME },
502 { USB_DEVICE(0x03f0, 0x2b4a), .driver_info = USB_QUIRK_RESET_RESUME },
504 /* Logitech Optical Mouse M90/M100 */
505 { USB_DEVICE(0x046d, 0xc05a), .driver_info = USB_QUIRK_RESET_RESUME },
507 { } /* terminating entry must be last */
511 * Entries for endpoints that should be ignored when parsing configuration
514 * Matched for devices with USB_QUIRK_ENDPOINT_IGNORE.
516 static const struct usb_device_id usb_endpoint_ignore[] = {
517 { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0202, 1), .driver_info = 0x85 },
518 { USB_DEVICE_INTERFACE_NUMBER(0x0926, 0x0208, 1), .driver_info = 0x85 },
522 bool usb_endpoint_is_ignored(struct usb_device *udev,
523 struct usb_host_interface *intf,
524 struct usb_endpoint_descriptor *epd)
526 const struct usb_device_id *id;
527 unsigned int address;
529 for (id = usb_endpoint_ignore; id->match_flags; ++id) {
530 if (!usb_match_device(udev, id))
533 if (!usb_match_one_id_intf(udev, intf, id))
536 address = id->driver_info;
537 if (address == epd->bEndpointAddress)
544 static bool usb_match_any_interface(struct usb_device *udev,
545 const struct usb_device_id *id)
549 for (i = 0; i < udev->descriptor.bNumConfigurations; ++i) {
550 struct usb_host_config *cfg = &udev->config[i];
553 for (j = 0; j < cfg->desc.bNumInterfaces; ++j) {
554 struct usb_interface_cache *cache;
555 struct usb_host_interface *intf;
557 cache = cfg->intf_cache[j];
558 if (cache->num_altsetting == 0)
561 intf = &cache->altsetting[0];
562 if (usb_match_one_id_intf(udev, intf, id))
570 static int usb_amd_resume_quirk(struct usb_device *udev)
574 hcd = bus_to_hcd(udev->bus);
575 /* The device should be attached directly to root hub */
576 if (udev->level == 1 && hcd->amd_resume_bug == 1)
582 static u32 usb_detect_static_quirks(struct usb_device *udev,
583 const struct usb_device_id *id)
587 for (; id->match_flags; id++) {
588 if (!usb_match_device(udev, id))
591 if ((id->match_flags & USB_DEVICE_ID_MATCH_INT_INFO) &&
592 !usb_match_any_interface(udev, id))
595 quirks |= (u32)(id->driver_info);
601 static u32 usb_detect_dynamic_quirks(struct usb_device *udev)
603 u16 vid = le16_to_cpu(udev->descriptor.idVendor);
604 u16 pid = le16_to_cpu(udev->descriptor.idProduct);
607 mutex_lock(&quirk_mutex);
609 for (i = 0; i < quirk_count; i++) {
610 if (vid == quirk_list[i].vid && pid == quirk_list[i].pid) {
611 flags = quirk_list[i].flags;
616 mutex_unlock(&quirk_mutex);
622 * Detect any quirks the device has, and do any housekeeping for it if needed.
624 void usb_detect_quirks(struct usb_device *udev)
626 udev->quirks = usb_detect_static_quirks(udev, usb_quirk_list);
629 * Pixart-based mice would trigger remote wakeup issue on AMD
630 * Yangtze chipset, so set them as RESET_RESUME flag.
632 if (usb_amd_resume_quirk(udev))
633 udev->quirks |= usb_detect_static_quirks(udev,
634 usb_amd_resume_quirk_list);
636 udev->quirks ^= usb_detect_dynamic_quirks(udev);
639 dev_dbg(&udev->dev, "USB quirks for this device: %x\n",
642 #ifdef CONFIG_USB_DEFAULT_PERSIST
643 if (!(udev->quirks & USB_QUIRK_RESET))
644 udev->persist_enabled = 1;
646 /* Hubs are automatically enabled for USB-PERSIST */
647 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB)
648 udev->persist_enabled = 1;
649 #endif /* CONFIG_USB_DEFAULT_PERSIST */
652 void usb_detect_interface_quirks(struct usb_device *udev)
656 quirks = usb_detect_static_quirks(udev, usb_interface_quirk_list);
660 dev_dbg(&udev->dev, "USB interface quirks for this device: %x\n",
662 udev->quirks |= quirks;
665 void usb_release_quirk_list(void)
667 mutex_lock(&quirk_mutex);
670 mutex_unlock(&quirk_mutex);