summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2012-01-10 09:59:49 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-11 15:37:37 -0800
commitbdfc97cd645f3a5c8db855250c36de54b7b22999 (patch)
treedb8e2912bc98b9d419a21d02c15a8508b9bdd43f
parent40be6c9894a7c9609dee02f33e56c234d47c5358 (diff)
downloadusbutils-bdfc97cd645f3a5c8db855250c36de54b7b22999.tar.gz
usbutils: Dump BOS descriptor for USB 2.01 devices.
USB devices with a BCD of 0x0201 or greater will have a USB 2.0 extension BOS descriptor. They may also have a SuperSpeed Capabilities BOS descriptor, which indicates a USB 3.0 device has been plugged into a USB 2.0 only port. Make lsusb display all BOS descriptors for USB 2.01 devices and later. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--lsusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsusb.c b/lsusb.c
index 10f9c1c..987ef26 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -3799,7 +3799,7 @@ static void dumpdev(libusb_device *dev)
if (desc.bDeviceClass == LIBUSB_CLASS_HUB)
do_hub(udev, desc.bDeviceProtocol, desc.bcdUSB);
- if (desc.bcdUSB >= 0x0300) {
+ if (desc.bcdUSB >= 0x0201) {
dump_bos_descriptor(udev);
}
if (desc.bcdUSB == 0x0200) {