[PATCH v2 8/8] lsusb: Dump USB3 BOS Configuration Summary Descriptor.

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

 



Add support for dumping the configuration summary device capability
descriptor to the verbose output of lsusb.

Signed-off-by: Michael Drake <michael.drake@xxxxxxxxxxxxxxx>
---
 lsusb.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lsusb.c b/lsusb.c
index e3eb423..c7a237e 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -75,6 +75,7 @@
 #define USB_DC_PLATFORM 		0x05
 #define USB_DC_SUPERSPEEDPLUS		0x0a
 #define USB_DC_BILLBOARD		0x0d
+#define USB_DC_CONFIGURATION_SUMMARY	0x10
 
 /* Conventional codes for class-specific descriptors.  The convention is
  * defined in the USB "Common Class" Spec (3.11).  Individual class specs
@@ -3517,6 +3518,11 @@ static void dump_bos_descriptor(libusb_device_handle *fd)
 		case USB_DC_BILLBOARD:
 			dump_billboard_device_capability_desc(fd, buf);
 			break;
+		case USB_DC_CONFIGURATION_SUMMARY:
+			printf("  Configuration Summary Device Capability:\n");
+			desc_dump(fd, desc_usb3_dc_configuration_summary,
+					buf, DESC_BUF_LEN_FROM_BUF, 2);
+			break;
 		default:
 			printf("  ** UNRECOGNIZED: ");
 			dump_bytes(buf, buf[0]);
-- 
2.11.0

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