diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-10-25 14:05:50 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-09 18:41:57 +0100 |
commit | 7faa3a5e2518765bb3683c26ecdf3155046424b0 (patch) | |
tree | 8114122cf8fb8d7f19853652934c7a54348e485a /src/mm-port-probe.c | |
parent | 4ec2db75b8fc1175c12d007ca64d2edcf630e3cc (diff) | |
download | ModemManager-7faa3a5e2518765bb3683c26ecdf3155046424b0.tar.gz |
port-mbim: allow specifying input subsystem
We have assumed until now that all MBIM ports are based on the
cdc_mbim driver, exposed in the 'usbmisc' subsystem by the cdc-wdm
driver.
This may no longer be true, so allow creating MBIM 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 2a6cdf16d..bfbe861c2 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -566,7 +566,8 @@ wdm_probe_mbim (MMPortProbe *self) mm_obj_dbg (self, "probing MBIM..."); /* Create a port and try to open it */ - ctx->mbim_port = mm_port_mbim_new (mm_kernel_device_get_name (self->priv->port)); + ctx->mbim_port = mm_port_mbim_new (mm_kernel_device_get_name (self->priv->port), + MM_PORT_SUBSYS_USBMISC); mm_port_mbim_open (ctx->mbim_port, #if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED FALSE, /* Don't check QMI over MBIM support at this stage */ |