Skip to content

Commit d08b0f8

Browse files
ShaneParslowdavem330
authored andcommitted
net: wwan: iosm: add rpc interface for xmm modems
Add a new iosm wwan port that connects to the modem rpc interface. This interface provides a configuration channel, and in the case of the 7360, is the only way to configure the modem (as it does not support mbim). The new interface is compatible with existing software, such as open_xdatachannel.py from the xmm7360-pci project [1]. [1] https://github.com/xmm7360/xmm7360-pci Signed-off-by: Shane Parslow <[email protected]> Reviewed-by: Loic Poulain <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3349e4a commit d08b0f8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

drivers/net/wwan/iosm/iosm_ipc_chnl_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static struct ipc_chnl_cfg modem_cfg[] = {
3939
/* RPC - 0 */
4040
{ IPC_MEM_CTRL_CHL_ID_1, IPC_MEM_PIPE_2, IPC_MEM_PIPE_3,
4141
IPC_MEM_MAX_TDS_RPC, IPC_MEM_MAX_TDS_RPC,
42-
IPC_MEM_MAX_DL_RPC_BUF_SIZE, WWAN_PORT_UNKNOWN },
42+
IPC_MEM_MAX_DL_RPC_BUF_SIZE, WWAN_PORT_XMMRPC },
4343
/* IAT0 */
4444
{ IPC_MEM_CTRL_CHL_ID_2, IPC_MEM_PIPE_4, IPC_MEM_PIPE_5,
4545
IPC_MEM_MAX_TDS_AT, IPC_MEM_MAX_TDS_AT, IPC_MEM_MAX_DL_AT_BUF_SIZE,

drivers/net/wwan/wwan_core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ static const struct {
319319
.name = "FIREHOSE",
320320
.devsuf = "firehose",
321321
},
322+
[WWAN_PORT_XMMRPC] = {
323+
.name = "XMMRPC",
324+
.devsuf = "xmmrpc",
325+
},
322326
};
323327

324328
static ssize_t type_show(struct device *dev, struct device_attribute *attr,

include/linux/wwan.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @WWAN_PORT_QMI: Qcom modem/MSM interface for modem control
1616
* @WWAN_PORT_QCDM: Qcom Modem diagnostic interface
1717
* @WWAN_PORT_FIREHOSE: XML based command protocol
18+
* @WWAN_PORT_XMMRPC: Control protocol for Intel XMM modems
1819
*
1920
* @WWAN_PORT_MAX: Highest supported port types
2021
* @WWAN_PORT_UNKNOWN: Special value to indicate an unknown port type
@@ -26,6 +27,7 @@ enum wwan_port_type {
2627
WWAN_PORT_QMI,
2728
WWAN_PORT_QCDM,
2829
WWAN_PORT_FIREHOSE,
30+
WWAN_PORT_XMMRPC,
2931

3032
/* Add new port types above this line */
3133

0 commit comments

Comments
 (0)