--- zzzz-none-000/linux-4.4.60/drivers/usb/gadget/legacy/Kconfig 2017-04-08 07:53:53.000000000 +0000 +++ hawkeye-5590-729/linux-4.4.60/drivers/usb/gadget/legacy/Kconfig 2022-03-30 14:21:52.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