usb: hub: Per-port setting to use old enumeration scheme
The "old" enumeration scheme is considerably faster (it takes ~244ms instead of ~356ms to get the descriptor). It is currently only possible to use the old scheme globally (/sys/module/usbcore/parameters/old_scheme_first), which is not desirable as the new scheme was introduced to increase compatibility with more devices. However, in our case, we care about time-to-active for a specific USB device (which we make the firmware for), on a specific port (that is pogo-pin based: not a standard USB port). This new sysfs option makes it possible to use the old scheme on a single port only. Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
380375b937
commit
2524422715
@@ -489,6 +489,13 @@ enum usb_port_connect_type {
|
||||
USB_PORT_NOT_USED,
|
||||
};
|
||||
|
||||
/*
|
||||
* USB port quirks.
|
||||
*/
|
||||
|
||||
/* For the given port, prefer the old (faster) enumeration scheme. */
|
||||
#define USB_PORT_QUIRK_OLD_SCHEME BIT(0)
|
||||
|
||||
/*
|
||||
* USB 2.0 Link Power Management (LPM) parameters.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user