--- zzzz-none-000/linux-5.4.213/drivers/usb/gadget/legacy/Kconfig 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/drivers/usb/gadget/legacy/Kconfig 2024-05-29 11:20:02.000000000 +0000 @@ -324,6 +324,19 @@ For more information, see Documentation/usb/gadget_printer.rst which includes sample code for accessing the device file. +config USB_G_DIAG + tristate "Diag Gadget" + select USB_LIBCOMPOSITE + select USB_F_DIAG + help + The Diag Gadget channels data between the USB host and a + userspace program using the diag device. The user space + program reads and writes the device file /dev/diag to + receive or send diag data. + + Say "y" to link the driver statically, or "m" to build a + dynamically linked module called "g_diag". + if TTY config USB_CDC_COMPOSITE