2007-01-26 20:26:21 +07: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 01:45:32 +07:00
|
|
|
#ifndef __LINUX_USB_QUIRKS_H
|
|
|
|
#define __LINUX_USB_QUIRKS_H
|
|
|
|
|
2007-01-26 20:26:21 +07:00
|
|
|
/* string descriptors must not be fetched using a 255-byte read */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_STRING_FETCH_255 BIT(0)
|
2007-05-04 22:53:03 +07:00
|
|
|
|
|
|
|
/* device can't resume correctly so reset it instead */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_RESET_RESUME BIT(1)
|
2008-03-11 21:20:12 +07:00
|
|
|
|
|
|
|
/* device can't handle Set-Interface requests */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_NO_SET_INTF BIT(2)
|
2008-03-08 01:45:32 +07:00
|
|
|
|
2009-03-19 01:28:53 +07:00
|
|
|
/* device can't handle its Configuration or Interface strings */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_CONFIG_INTF_STRINGS BIT(3)
|
2009-03-19 01:28:53 +07:00
|
|
|
|
2012-08-17 15:44:56 +07:00
|
|
|
/* device can't be reset(e.g morph devices), don't use reset */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_RESET BIT(4)
|
2009-12-18 18:14:21 +07:00
|
|
|
|
2010-03-29 17:03:17 +07:00
|
|
|
/* device has more interface descriptions than the bNumInterfaces count,
|
|
|
|
and can't handle talking to these interfaces */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_HONOR_BNUMINTERFACES BIT(5)
|
2010-03-29 17:03:17 +07:00
|
|
|
|
2010-07-22 05:05:01 +07:00
|
|
|
/* device needs a pause during initialization, after we read the device
|
|
|
|
descriptor */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_DELAY_INIT BIT(6)
|
2010-07-22 05:05:01 +07:00
|
|
|
|
2014-07-28 00:28:04 +07: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 12:23:55 +07:00
|
|
|
#define USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL BIT(7)
|
2014-07-28 00:28:04 +07:00
|
|
|
|
2014-08-25 22:51:26 +07:00
|
|
|
/* device can't handle device_qualifier descriptor requests */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_DEVICE_QUALIFIER BIT(8)
|
2014-08-25 22:51:26 +07:00
|
|
|
|
2014-09-19 09:13:50 +07:00
|
|
|
/* device generates spurious wakeup, ignore remote wakeup capability */
|
2014-09-24 12:23:55 +07:00
|
|
|
#define USB_QUIRK_IGNORE_REMOTE_WAKEUP BIT(9)
|
2014-09-19 09:13:50 +07:00
|
|
|
|
2015-12-11 03:27:21 +07:00
|
|
|
/* device can't handle Link Power Management */
|
|
|
|
#define USB_QUIRK_NO_LPM BIT(10)
|
|
|
|
|
2008-03-08 01:45:32 +07:00
|
|
|
#endif /* __LINUX_USB_QUIRKS_H */
|