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

Commit 15d6094b authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: Add snapshot of USB CDEV function driver



This change adds USB CDEV function driver which creates USB
character device to provide DUN and NMEA functionality.
This snapshot is taken as of commit 4f7918fd623f ("usb: f_gsi: Use
required RNDIS IAD descriptors with full speed descriptors").

Replace usage of idr_is_empty() with ida_is_empty() in f_cdev.c
as ida no longer uses an internal idr.

Change-Id: Icfdc5c3b8e472d296a393ebb0be36eb5379c3b21
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 3008f900
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -230,6 +230,9 @@ config USB_F_ACC
config USB_F_DIAG
	tristate

config USB_F_CDEV
	tristate

config USB_F_QDSS
	tristate

@@ -546,6 +549,18 @@ config USB_CONFIGFS_F_DIAG
	  Diag function driver enables support for Qualcomm diagnostics
	  port over USB.

config USB_CONFIGFS_F_CDEV
	bool "USB Serial Character function"
	select USB_F_CDEV
	depends on USB_CONFIGFS
	help
	  The serial character function is a generic function driver that
	  exposes a pair of bulk IN and OUT endpoints which are backed by
	  a character device and mapped to its read/write routines. The
	  function also supports a single interrupt IN endpoint for
	  asynchronous notification to the host. This driver is typically
	  used to support DUN/NMEA functions.

config USB_CONFIGFS_F_QDSS
	bool "USB QDSS function"
	select USB_F_QDSS
+2 −0
Original line number Diff line number Diff line
@@ -60,5 +60,7 @@ usb_f_accessory-y := f_accessory.o
obj-$(CONFIG_USB_F_ACC)         += usb_f_accessory.o
usb_f_diag-y			:= f_diag.o
obj-$(CONFIG_USB_F_DIAG)	+= usb_f_diag.o
usb_f_cdev-y			:= f_cdev.o
obj-$(CONFIG_USB_F_CDEV)	+= usb_f_cdev.o
usb_f_qdss-y			:= f_qdss.o u_qdss.o
obj-$(CONFIG_USB_F_QDSS)	+= usb_f_qdss.o
+1846 −0

File added.

Preview size limit exceeded, changes collapsed.