Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e7af47d authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: Add snapshot of USB DIAG function driver



This change adds USB DIAG function driver to support diagnostics
functionality with USB transport. This snapshot is taken as of
msm-4.14 commit <9ae54a8e772> ("Merge "scsi: ufs-qcom: fix ref-clk
pad regulator initialization"").

Change-Id: Icb70c2d8034add4ae0ac7cc46c3f1778bc10439b
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 77267719
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -217,6 +217,9 @@ config USB_F_PRINTER
config USB_F_TCM
	tristate

config USB_F_DIAG
	tristate

# this first set of drivers all depend on bulk-capable hardware.

config USB_CONFIGFS
@@ -484,6 +487,15 @@ config USB_CONFIGFS_F_TCM
	  Both protocols can work on USB2.0 and USB3.0.
	  UAS utilizes the USB 3.0 feature called streams support.

config USB_CONFIGFS_F_DIAG
	bool "USB Diag function"
	select USB_F_DIAG
	depends on USB_CONFIGFS
	help
	  Diag function driver enables support for diagnostics service over USB.
	  Diagnostics application running on Host receives  stream of log data
	  over USB. Applications can also send commands to diagnostics client
	  running on device.
choice
	tristate "USB Gadget precomposed configurations"
	default USB_ETH
+2 −0
Original line number Diff line number Diff line
@@ -50,3 +50,5 @@ usb_f_printer-y := f_printer.o
obj-$(CONFIG_USB_F_PRINTER)	+= usb_f_printer.o
usb_f_tcm-y			:= f_tcm.o
obj-$(CONFIG_USB_F_TCM)		+= usb_f_tcm.o
usb_f_diag-y			:= f_diag.o
obj-$(CONFIG_USB_F_DIAG)	+= usb_f_diag.o