diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-05-28 14:32:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-31 12:48:17 +0200 |
commit | 25244227158e1502062041365a439a54cb8fe673 (patch) | |
tree | 87af664545c88bc045cd1598c79caad305d77178 /drivers/usb/core/hub.h | |
parent | 380375b937211376f1dba4543460a14d3df9f04d (diff) | |
download | kernel_replicant_linux-25244227158e1502062041365a439a54cb8fe673.tar.gz kernel_replicant_linux-25244227158e1502062041365a439a54cb8fe673.tar.bz2 kernel_replicant_linux-25244227158e1502062041365a439a54cb8fe673.zip |
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>
Diffstat (limited to 'drivers/usb/core/hub.h')
-rw-r--r-- | drivers/usb/core/hub.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h index 4dc769ee9c74..4accfb63f7dc 100644 --- a/drivers/usb/core/hub.h +++ b/drivers/usb/core/hub.h @@ -98,6 +98,7 @@ struct usb_port { struct mutex status_lock; u32 over_current_count; u8 portnum; + u32 quirks; unsigned int is_superspeed:1; unsigned int usb3_lpm_u1_permit:1; unsigned int usb3_lpm_u2_permit:1; |