wwan: core: Add WWAN fastboot port type
authorJinjian Song <jinjian.song@fibocom.com>
Mon, 5 Feb 2024 10:22:27 +0000 (18:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Feb 2024 12:07:48 +0000 (12:07 +0000)
Add a new WWAN port that connects to the device fastboot protocol
interface.

Signed-off-by: Jinjian Song <jinjian.song@fibocom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/wwan_core.c
include/linux/wwan.h

index 72e01e550a16c79ac8f570ade35085acd4dad278..2ed20b20e7fc9c93b775b8e41ed585c70602db26 100644 (file)
@@ -328,6 +328,10 @@ static const struct {
                .name = "XMMRPC",
                .devsuf = "xmmrpc",
        },
+       [WWAN_PORT_FASTBOOT] = {
+               .name = "FASTBOOT",
+               .devsuf = "fastboot",
+       },
 };
 
 static ssize_t type_show(struct device *dev, struct device_attribute *attr,
index 01fa15506286d18221eba50739014750f25ad0f0..170fdee6339c7ecc10688d4e5469a3d19974225f 100644 (file)
@@ -16,6 +16,7 @@
  * @WWAN_PORT_QCDM: Qcom Modem diagnostic interface
  * @WWAN_PORT_FIREHOSE: XML based command protocol
  * @WWAN_PORT_XMMRPC: Control protocol for Intel XMM modems
+ * @WWAN_PORT_FASTBOOT: Fastboot protocol control
  *
  * @WWAN_PORT_MAX: Highest supported port types
  * @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type
@@ -28,6 +29,7 @@ enum wwan_port_type {
        WWAN_PORT_QCDM,
        WWAN_PORT_FIREHOSE,
        WWAN_PORT_XMMRPC,
+       WWAN_PORT_FASTBOOT,
 
        /* Add new port types above this line */