Skip to content

mm-port-probe: Invoke the mm_port_mbim_open function with a GCancellable object

Madhavadas Pottekkat requested to merge madhavadas/ModemManager:my-branch-1 into main

After the modem recovers, the ports are up but not yet responsive. When MM tries to probe the ports, they do not respond. As a result, the probing tasks are left ongoing, waiting for a response from the modem.

If the modem drops off the bus for any reason, the cdc-wdm port probing task is not immediately canceled. This patch fixes this issue by passing a cancellable object to mm_port_mbim_open().

In other words, the patch ensures that the cdc-wdm port probing task is canceled if the modem drops off the bus before the task completes. This prevents the task from preventing other port probing tasks from starting.

Merge request reports