wwan: core: Add WWAN ADB and MIPC port type
authorJinjian Song <jinjian.song@fibocom.com>
Mon, 4 Nov 2024 09:44:34 +0000 (17:44 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 7 Nov 2024 12:33:45 +0000 (13:33 +0100)
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>
drivers/net/wwan/wwan_core.c
include/linux/wwan.h

index 8dc88cc65781b368d321c552e087c4c81b59dccb..a51e2755991af993f0c4570b1daeec8c411d9c6c 100644 (file)
@@ -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,
index 170fdee6339c7ecc10688d4e5469a3d19974225f..79c781875c09f15b4000214ae7a779df7f2a081f 100644 (file)
@@ -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 */