• Mathias Nyman's avatar
    usb: Support USB 3.1 extended port status request · 0cdd49a1
    Mathias Nyman authored
    usb 3.1 extend the hub get-port-status request by adding different
    request types. the new request types return 4 additional bytes called
    extended port status, these bytes are returned after the regular
    portstatus and portchange values.
    
    The extended port status contains a speed ID for the currently used
    sublink speed. A table of supported Speed IDs with details about the link
    is provided by the hub in the device descriptor BOS SuperSpeedPlus
    device capability Sublink Speed Attributes.
    
    Support this new request. Ask for the extended port status after port
    reset if hub supports USB 3.1. If link is running at SuperSpeedPlus
    set the device speed to USB_SPEED_SUPER_PLUS
    Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    0cdd49a1
hub.c 165 KB