Skip to content

Commit 5f70bcb

Browse files
mchetankumardavem330
authored andcommitted
net: wwan: iosm: fixes 7560 modem crash
ModemManger/Apps probing the wwan0xmmrpc0 port for 7560 Modem results in modem crash. 7560 Modem FW uses the MBIM interface for control command communication whereas 7360 uses Intel RPC interface so disable wwan0xmmrpc0 port for 7560. Fixes: d08b0f8 ("net: wwan: iosm: add rpc interface for xmm modems") Reported-and-tested-by: Martin <[email protected]> Link: https://bugzilla.kernel.org/show_bug.cgi?id=217200 Signed-off-by: M Chetan Kumar <[email protected]> Signed-off-by: Shane Parslow <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 07b3af4 commit 5f70bcb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/net/wwan/iosm/iosm_ipc_imem.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,13 @@ static void ipc_imem_run_state_worker(struct work_struct *instance)
587587
while (ctrl_chl_idx < IPC_MEM_MAX_CHANNELS) {
588588
if (!ipc_chnl_cfg_get(&chnl_cfg_port, ctrl_chl_idx)) {
589589
ipc_imem->ipc_port[ctrl_chl_idx] = NULL;
590+
591+
if (ipc_imem->pcie->pci->device == INTEL_CP_DEVICE_7560_ID &&
592+
chnl_cfg_port.wwan_port_type == WWAN_PORT_XMMRPC) {
593+
ctrl_chl_idx++;
594+
continue;
595+
}
596+
590597
if (ipc_imem->pcie->pci->device == INTEL_CP_DEVICE_7360_ID &&
591598
chnl_cfg_port.wwan_port_type == WWAN_PORT_MBIM) {
592599
ctrl_chl_idx++;

0 commit comments

Comments
 (0)