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

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

 



On 01/10/2012 05:13 AM, Sarah Sharp wrote:
> USB devices with a BCD of 0x0210 or greater will have a USB 2.0
> extension BOS descriptor.  

In my opinion, you should use 0x0201 rather than 0x0210 here. USB2 LPM
ECN specifies "Devices that support the BOS descriptor must have a
bcdUSB value of 0201H or larger". And USB IF CV test for Windows fetches
BOS descriptor for 0201 devices. SO I used 0x0201 for BOS descriptor
getting in hub_port_init().

Thanks,
Andiry

> 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) {


--
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