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

Commit 98b5881a authored by Hemant Kumar's avatar Hemant Kumar Committed by Jack Pham
Browse files

usb: gadget: Add snapshot of USB GSI function driver



This change adds USB GSI function driver which provides USB RMNET/RNDIS/
ECM/MBIM/DPL related functionalities with GSI hardware accelerated path.
This snapshot is taken as of msm-4.19 commit 104eef6e1fe8 ("platform:
msm: Remove unused local count variable").

This change also includes some fixups to match the modified API in
dwc3-msm.h.

Change-Id: If849fdeab445e99dc914060eae98e1948a48e3d2
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 6272602d
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -234,6 +234,9 @@ config USB_F_CCID
config USB_F_CDEV
config USB_F_CDEV
	tristate
	tristate


config USB_F_GSI
	tristate

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


config USB_CONFIGFS
config USB_CONFIGFS
@@ -570,6 +573,16 @@ config USB_CONFIGFS_F_CDEV
	  asynchronous notification to the host. This driver is typically
	  asynchronous notification to the host. This driver is typically
	  used to support DUN/NMEA functions.
	  used to support DUN/NMEA functions.


config USB_CONFIGFS_F_GSI
	tristate "USB GSI function"
	select USB_F_GSI
	depends on USB_CONFIGFS
	help
	  Generic function driver to support h/w acceleration to IPA
	  over GSI. This driver provides USB RMNET/RNDIS/ECM/MBIM/DPL
	  related functionalities using GSI hardware accelerated data
	  path and control path.

choice
choice
	tristate "USB Gadget precomposed configurations"
	tristate "USB Gadget precomposed configurations"
	default USB_ETH
	default USB_ETH
+2 −0
Original line number Original line Diff line number Diff line
@@ -62,3 +62,5 @@ usb_f_ccid-y := f_ccid.o
obj-$(CONFIG_USB_F_CCID)	+= usb_f_ccid.o
obj-$(CONFIG_USB_F_CCID)	+= usb_f_ccid.o
usb_f_cdev-y			:= f_cdev.o
usb_f_cdev-y			:= f_cdev.o
obj-$(CONFIG_USB_F_CDEV)	+= usb_f_cdev.o
obj-$(CONFIG_USB_F_CDEV)	+= usb_f_cdev.o
usb_f_gsi-y			:= f_gsi.o rndis.o
obj-$(CONFIG_USB_F_GSI)		+= usb_f_gsi.o
+3609 −0

File added.

Preview size limit exceeded, changes collapsed.

+1430 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Original line Diff line number Diff line
@@ -232,6 +232,7 @@ struct usb_cdc_mbim_extended_desc {


#define USB_CDC_SEND_ENCAPSULATED_COMMAND	0x00
#define USB_CDC_SEND_ENCAPSULATED_COMMAND	0x00
#define USB_CDC_GET_ENCAPSULATED_RESPONSE	0x01
#define USB_CDC_GET_ENCAPSULATED_RESPONSE	0x01
#define USB_CDC_RESET_FUNCTION			0x05
#define USB_CDC_REQ_SET_LINE_CODING		0x20
#define USB_CDC_REQ_SET_LINE_CODING		0x20
#define USB_CDC_REQ_GET_LINE_CODING		0x21
#define USB_CDC_REQ_GET_LINE_CODING		0x21
#define USB_CDC_REQ_SET_CONTROL_LINE_STATE	0x22
#define USB_CDC_REQ_SET_CONTROL_LINE_STATE	0x22
Loading