diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2015-10-01 11:40:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 05:34:17 -0400 |
commit | 3220befddc0da1f4e09fc790a32a9bd8427e8889 (patch) | |
tree | 17562d42e9eba1dbe27cbf4596cb2cfdbd85bd9e /drivers/usb/core | |
parent | 90ec9247808ed6b9f072e2c4021868374b0a6d92 (diff) |
usb: store the new usb 3.1 SuperSpeedPlus device capability descriptor
If a device supports usb 3.1 SupeerSpeedPlus Gen2 speeds it povides
a SuperSpeedPlus device capability descriptor as a part of its
BOS descriptor. If we find one while parsing the BOS then save it
togeter with the other device capabilities found in the BOS
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index b9ddf0c1ffe5..7caff020106e 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c | |||
@@ -853,6 +853,10 @@ int usb_get_bos_descriptor(struct usb_device *dev) | |||
853 | dev->bos->ss_cap = | 853 | dev->bos->ss_cap = |
854 | (struct usb_ss_cap_descriptor *)buffer; | 854 | (struct usb_ss_cap_descriptor *)buffer; |
855 | break; | 855 | break; |
856 | case USB_SSP_CAP_TYPE: | ||
857 | dev->bos->ssp_cap = | ||
858 | (struct usb_ssp_cap_descriptor *)buffer; | ||
859 | break; | ||
856 | case CONTAINER_ID_TYPE: | 860 | case CONTAINER_ID_TYPE: |
857 | dev->bos->ss_id = | 861 | dev->bos->ss_id = |
858 | (struct usb_ss_container_id_descriptor *)buffer; | 862 | (struct usb_ss_container_id_descriptor *)buffer; |