Commit 3220befd authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman

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: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 90ec9247
...@@ -853,6 +853,10 @@ int usb_get_bos_descriptor(struct usb_device *dev) ...@@ -853,6 +853,10 @@ int usb_get_bos_descriptor(struct usb_device *dev)
dev->bos->ss_cap = dev->bos->ss_cap =
(struct usb_ss_cap_descriptor *)buffer; (struct usb_ss_cap_descriptor *)buffer;
break; break;
case USB_SSP_CAP_TYPE:
dev->bos->ssp_cap =
(struct usb_ssp_cap_descriptor *)buffer;
break;
case CONTAINER_ID_TYPE: case CONTAINER_ID_TYPE:
dev->bos->ss_id = dev->bos->ss_id =
(struct usb_ss_container_id_descriptor *)buffer; (struct usb_ss_container_id_descriptor *)buffer;
......
...@@ -328,6 +328,7 @@ struct usb_host_bos { ...@@ -328,6 +328,7 @@ struct usb_host_bos {
/* wireless cap descriptor is handled by wusb */ /* wireless cap descriptor is handled by wusb */
struct usb_ext_cap_descriptor *ext_cap; struct usb_ext_cap_descriptor *ext_cap;
struct usb_ss_cap_descriptor *ss_cap; struct usb_ss_cap_descriptor *ss_cap;
struct usb_ssp_cap_descriptor *ssp_cap;
struct usb_ss_container_id_descriptor *ss_id; struct usb_ss_container_id_descriptor *ss_id;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment