gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
356 stars 202 forks source link

lsbusb incorrectly reports "descriptor too short" for video PROCESSING unit with bsdUVC 0x0100 #111

Closed massweet closed 3 years ago

massweet commented 4 years ago

Looking in the kernel driver source, bmVideoStandards was added to 0x0110, and so if bsdUVC is less than this the processing unit descriptor should be a minimum of 9 octets, and not include this field. See attached unified diff for a possible fix. lsbusb.c.diff.txt

massweet commented 4 years ago

Oh - feel free to use the patch, under your current GPL 3.0 licensing.

gregkh commented 3 years ago

The license for this project is GPLv2 only, sorry, if you submit this for GPLv3, I can't take it.

Please submit as a pull request, or submit the patch in email and I will be glad to review it that way.