mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
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: Jinjian Song <jinjian.song@fibocom.com> Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
17bcfe6637
commit
495e7c8e96
@ -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,
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user