2007-01-26 21:26:21 +08:00
|
|
|
/*
|
|
|
|
* This file holds the definitions of quirks found in USB devices.
|
|
|
|
* Only quirks that affect the whole device, not an interface,
|
|
|
|
* belong here.
|
|
|
|
*/
|
|
|
|
|
2008-03-08 02:45:32 +08:00
|
|
|
#ifndef __LINUX_USB_QUIRKS_H
|
|
|
|
#define __LINUX_USB_QUIRKS_H
|
|
|
|
|
2007-01-26 21:26:21 +08:00
|
|
|
/* string descriptors must not be fetched using a 255-byte read */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_STRING_FETCH_255 BIT(0)
|
2007-05-04 23:53:03 +08:00
|
|
|
|
|
|
|
/* device can't resume correctly so reset it instead */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_RESET_RESUME BIT(1)
|
2008-03-11 22:20:12 +08:00
|
|
|
|
|
|
|
/* device can't handle Set-Interface requests */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_NO_SET_INTF BIT(2)
|
2008-03-08 02:45:32 +08:00
|
|
|
|
2009-03-19 02:28:53 +08:00
|
|
|
/* device can't handle its Configuration or Interface strings */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_CONFIG_INTF_STRINGS BIT(3)
|
2009-03-19 02:28:53 +08:00
|
|
|
|
2012-08-17 16:44:56 +08:00
|
|
|
/* device can't be reset(e.g morph devices), don't use reset */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_RESET BIT(4)
|
2009-12-18 19:14:21 +08:00
|
|
|
|
2010-03-29 18:03:17 +08:00
|
|
|
/* device has more interface descriptions than the bNumInterfaces count,
|
|
|
|
and can't handle talking to these interfaces */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_HONOR_BNUMINTERFACES BIT(5)
|
2010-03-29 18:03:17 +08:00
|
|
|
|
2010-07-22 06:05:01 +08:00
|
|
|
/* device needs a pause during initialization, after we read the device
|
|
|
|
descriptor */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_DELAY_INIT BIT(6)
|
2010-07-22 06:05:01 +08:00
|
|
|
|
2014-07-28 01:28:04 +08:00
|
|
|
/*
|
|
|
|
* For high speed and super speed interupt endpoints, the USB 2.0 and
|
|
|
|
* USB 3.0 spec require the interval in microframes
|
|
|
|
* (1 microframe = 125 microseconds) to be calculated as
|
|
|
|
* interval = 2 ^ (bInterval-1).
|
|
|
|
*
|
|
|
|
* Devices with this quirk report their bInterval as the result of this
|
|
|
|
* calculation instead of the exponent variable used in the calculation.
|
|
|
|
*/
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL BIT(7)
|
2014-07-28 01:28:04 +08:00
|
|
|
|
2014-08-25 23:51:26 +08:00
|
|
|
/* device can't handle device_qualifier descriptor requests */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_DEVICE_QUALIFIER BIT(8)
|
2014-08-25 23:51:26 +08:00
|
|
|
|
2014-09-19 10:13:50 +08:00
|
|
|
/* device generates spurious wakeup, ignore remote wakeup capability */
|
2014-09-24 13:23:55 +08:00
|
|
|
#define USB_QUIRK_IGNORE_REMOTE_WAKEUP BIT(9)
|
2014-09-19 10:13:50 +08:00
|
|
|
|
2015-12-11 04:27:21 +08:00
|
|
|
/* device can't handle Link Power Management */
|
|
|
|
#define USB_QUIRK_NO_LPM BIT(10)
|
|
|
|
|
2008-03-08 02:45:32 +08:00
|
|
|
#endif /* __LINUX_USB_QUIRKS_H */
|