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: uapi: add usb 3.0 authentication declarations

This adds the USB authentication extensions to the
uapi chapter 9 declarations, so that user space tools
correctly operate on the descriptor and commands.
This is necessary for sniffing and debugging in gadget
mode to correctly work, even though the kernel
does not use these requests in host mode.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20260319144715.2957358-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Oliver Neukum and committed by
Greg Kroah-Hartman
ee90b493 00b4fe5b

+13
+13
include/uapi/linux/usb/ch9.h
··· 102 102 #define USB_REQ_LOOPBACK_DATA_WRITE 0x15 103 103 #define USB_REQ_LOOPBACK_DATA_READ 0x16 104 104 #define USB_REQ_SET_INTERFACE_DS 0x17 105 + #define USB_REQ_AUTH_IN 0x18 106 + #define USB_REQ_AUTH_OUT 0x19 105 107 106 108 /* specific requests for USB Power Delivery */ 107 109 #define USB_REQ_GET_PARTNER_PDO 20 ··· 1146 1144 * (SSAC) specified in bmAttributes[4:0]. SSAC is zero-based 1147 1145 */ 1148 1146 #define USB_DT_USB_SSP_CAP_SIZE(ssac) (12 + (ssac + 1) * 4) 1147 + 1148 + /*-------------------------------------------------------------------------*/ 1149 + 1150 + struct usb_authentication_capability_descriptor { 1151 + __u8 bLength; 1152 + __u8 bDescriptorType; /* set to USB_DT_DEVICE_CAPABILITY */ 1153 + __u8 bmAttributes; 1154 + 1155 + __u8 bcdProtocolVersion; 1156 + __u8 bcdCapability; 1157 + } __attribute__((packed)); 1149 1158 1150 1159 /*-------------------------------------------------------------------------*/ 1151 1160