diff options
author | Jinjian Song <jinjian.song@fibocom.com> | 2024-11-04 17:44:34 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-11-07 13:33:45 +0100 |
commit | 495e7c8e9601245738a6ab53c992cc5aa0b13cb4 (patch) | |
tree | 7fc2c437c5557a172673ab9f480c0348f7e1d996 | |
parent | 17bcfe66376cdf7e2c4fa839706fa40670f29bfb (diff) | |
download | linux-495e7c8e9601245738a6ab53c992cc5aa0b13cb4.tar.gz linux-495e7c8e9601245738a6ab53c992cc5aa0b13cb4.tar.bz2 linux-495e7c8e9601245738a6ab53c992cc5aa0b13cb4.zip |
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>
-rw-r--r-- | drivers/net/wwan/wwan_core.c | 8 | ||||
-rw-r--r-- | include/linux/wwan.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c index 8dc88cc65781..a51e2755991a 100644 --- a/drivers/net/wwan/wwan_core.c +++ b/drivers/net/wwan/wwan_core.c @@ -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, diff --git a/include/linux/wwan.h b/include/linux/wwan.h index 170fdee6339c..79c781875c09 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -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 */ |