[PATCH] usbutils: Dump BOS descriptor for USB 2.1 devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



USB devices with a BCD of 0x0210 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.1
devices and later.

Signed-off-by: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>
---
 lsusb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lsusb.c b/lsusb.c
index 37c43f7..361d1e7 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 >= 0x0210) {
 		dump_bos_descriptor(udev);
 	}
 	if (desc.bcdUSB == 0x0200) {
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux