aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-probe.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-10-25 14:10:45 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-11-09 18:41:57 +0100
commit799c4c72ce1494c8e094c091aa2d20ab62e4a569 (patch)
treecd29f7214c92db2871c017125097ccdfe0897e9b /src/mm-port-probe.c
parent7faa3a5e2518765bb3683c26ecdf3155046424b0 (diff)
port-qmi: allow specifying input subsystem
We have assumed until now that all QMI ports are based on the qmi_wwan driver, exposed in the 'usbmisc' subsystem by the cdc-wdm driver. This may no longer be true, so allow creating QMI ports with an explicit subsystem instead of defaulting always to USBMISC.
Diffstat (limited to 'src/mm-port-probe.c')
-rw-r--r--src/mm-port-probe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index bfbe861c..7f8f9157 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -494,7 +494,8 @@ wdm_probe_qmi (MMPortProbe *self)
mm_obj_dbg (self, "probing QMI...");
/* Create a port and try to open it */
- ctx->port_qmi = mm_port_qmi_new (mm_kernel_device_get_name (self->priv->port));
+ ctx->port_qmi = mm_port_qmi_new (mm_kernel_device_get_name (self->priv->port),
+ MM_PORT_SUBSYS_USBMISC);
mm_port_qmi_open (ctx->port_qmi,
FALSE,
NULL,