Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

USB: core: additional Device Classes to debug/usb/devices

Several newer USB Device classes are not presently reported individually at
/sys/kernel/debug/usb/devices, (reported as "unk."). This patch adds the
following classes: 0fh (Personal Healthcare devices), 10h (USB Type-C combined
Audio/Video devices) 11h (USB billboard), 12h (USB Type-C Bridge). As defined
at [https://www.usb.org/defined-class-codes]

Corresponding classes defined in include/linux/usb/ch9.h.

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Link: https://lore.kernel.org/r/20200601211749.6878-1-rrobgill@protonmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Gill and committed by
Greg Kroah-Hartman
03cc8353 b3a9e3b9

+8
+4
drivers/usb/core/devices.c
··· 133 133 {USB_CLASS_CSCID, "scard"}, 134 134 {USB_CLASS_CONTENT_SEC, "c-sec"}, 135 135 {USB_CLASS_VIDEO, "video"}, 136 + {USB_CLASS_PERSONAL_HEALTHCARE, "perhc"}, 137 + {USB_CLASS_AUDIO_VIDEO, "av"}, 138 + {USB_CLASS_BILLBOARD, "blbrd"}, 139 + {USB_CLASS_USB_TYPE_C_BRIDGE, "bridg"}, 136 140 {USB_CLASS_WIRELESS_CONTROLLER, "wlcon"}, 137 141 {USB_CLASS_MISC, "misc"}, 138 142 {USB_CLASS_APP_SPEC, "app."},
+4
include/uapi/linux/usb/ch9.h
··· 326 326 #define USB_CLASS_CONTENT_SEC 0x0d /* content security */ 327 327 #define USB_CLASS_VIDEO 0x0e 328 328 #define USB_CLASS_WIRELESS_CONTROLLER 0xe0 329 + #define USB_CLASS_PERSONAL_HEALTHCARE 0x0f 330 + #define USB_CLASS_AUDIO_VIDEO 0x10 331 + #define USB_CLASS_BILLBOARD 0x11 332 + #define USB_CLASS_USB_TYPE_C_BRIDGE 0x12 329 333 #define USB_CLASS_MISC 0xef 330 334 #define USB_CLASS_APP_SPEC 0xfe 331 335 #define USB_CLASS_VENDOR_SPEC 0xff