diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2016-02-12 16:40:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-09 18:42:43 +0100 |
commit | ddaa1ae2eb7ffb4e270fdc9593c3d1138f61fb31 (patch) | |
tree | 16059fd7cc4617dc64e5e467fc363396cad79901 /drivers | |
parent | a1f03a9bcfa4becab9255c15a27caff7d9d4f667 (diff) | |
download | linux-stable-ddaa1ae2eb7ffb4e270fdc9593c3d1138f61fb31.tar.gz linux-stable-ddaa1ae2eb7ffb4e270fdc9593c3d1138f61fb31.tar.bz2 linux-stable-ddaa1ae2eb7ffb4e270fdc9593c3d1138f61fb31.zip |
usb: Add USB 3.1 Precision time measurement capability descriptor support
commit faee822c5a7ab99de25cd34fcde3f8d37b6b9923 upstream.
USB 3.1 devices that support precision time measurement have an
additional PTM cabaility descriptor as part of the full BOS descriptor
Look for this descriptor while parsing the BOS descriptor, and store it in
struct usb_hub_bos if it exists.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index 5172bec612eb..b568a1c442ff 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c @@ -959,6 +959,9 @@ int usb_get_bos_descriptor(struct usb_device *dev) dev->bos->ss_id = (struct usb_ss_container_id_descriptor *)buffer; break; + case USB_PTM_CAP_TYPE: + dev->bos->ptm_cap = + (struct usb_ptm_cap_descriptor *)buffer; default: break; } |