Commit 495e7c8e authored by Jinjian Song's avatar Jinjian Song Committed by Paolo Abeni
Browse files

wwan: core: Add WWAN ADB and MIPC port type



Add new WWAN ports that connect to the device's ADB protocol interface
and MTK MIPC diagnostic interface.

Signed-off-by: default avatarJinjian Song <jinjian.song@fibocom.com>
Reviewed-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 17bcfe66
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -334,6 +334,14 @@ static const struct {
		.name = "FASTBOOT",
		.devsuf = "fastboot",
	},
	[WWAN_PORT_ADB] = {
		.name = "ADB",
		.devsuf = "adb",
	},
	[WWAN_PORT_MIPC] = {
		.name = "MIPC",
		.devsuf = "mipc",
	},
};

static ssize_t type_show(struct device *dev, struct device_attribute *attr,
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
 * @WWAN_PORT_FIREHOSE: XML based command protocol
 * @WWAN_PORT_XMMRPC: Control protocol for Intel XMM modems
 * @WWAN_PORT_FASTBOOT: Fastboot protocol control
 * @WWAN_PORT_ADB: ADB protocol control
 * @WWAN_PORT_MIPC: MTK MIPC diagnostic interface
 *
 * @WWAN_PORT_MAX: Highest supported port types
 * @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type
@@ -30,6 +32,8 @@ enum wwan_port_type {
	WWAN_PORT_FIREHOSE,
	WWAN_PORT_XMMRPC,
	WWAN_PORT_FASTBOOT,
	WWAN_PORT_ADB,
	WWAN_PORT_MIPC,

	/* Add new port types above this line */