--- zzzz-none-000/linux-4.4.271/drivers/usb/gadget/legacy/Kconfig 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/drivers/usb/gadget/legacy/Kconfig 2023-04-19 10:22:30.000000000 +0000 @@ -315,6 +315,19 @@ For more information, see Documentation/usb/gadget_printer.txt 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