aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2024-03-11 12:20:02 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2024-03-11 12:36:15 +0000
commitb99757a1f40b345c826ab2708aecb713b7a06804 (patch)
tree4d5bde9ff6414368c79232ca711e7dc3ea4ef441 /src
parentf8295bd641694cb911bc219ac843676f6fb27534 (diff)
fibocom: don't be strict on required drivers
Requiring an explicit set of drivers should only be done when we have different plugins supporting different types of devices of the same manufacturer based on the drivers in use (e.g. as in the Sierra case). When the plugin includes a list of required drivers, the plugin filter will only assume the plugin can be used if at least one of the available ports is exposed with one of the drivers in the list. Because of this, if we start probing some ports before all the expected ports are reported, we may end up not selecting a given plugin just because the driver match should have been done in a not-yet-notified port. E.g. on system boot: * ttyACM0 is notified. * min probing time elapses so ttyACM0 probing starts * Fibocom plugin is not selected for ttyACM0 as no matched driver ("cdc_acm") is given in the the list of drivers of the plugin. * cdc-wdm0 and wwan0 drivers are notified. * MM creates generic MBIM modem with the Fibocom plugin, but without XMM features support, because the ttyACM0 port probing was not done by the Fibocom plugin. And if we reset the modem after that: * ttyACM0 is notified. * cdc-wdm0 and wwan0 drivers are notified. * min probing time elapses so probing starts for all ports * Fibocom plugin is selected for all port probings as "cdc_mbim" is listed in the list of drivers of the plugin. * MM creates XMM-capable MBIM modem with the Fibocom plugin.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/fibocom/mm-plugin-fibocom.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/fibocom/mm-plugin-fibocom.c b/src/plugins/fibocom/mm-plugin-fibocom.c
index a30575e2..b36f1825 100644
--- a/src/plugins/fibocom/mm-plugin-fibocom.c
+++ b/src/plugins/fibocom/mm-plugin-fibocom.c
@@ -111,14 +111,12 @@ mm_plugin_create_fibocom (void)
{
static const gchar *subsystems[] = { "tty", "net", "usbmisc", NULL };
static const guint16 vendor_ids[] = { 0x2cb7, 0x1782, 0 };
- static const gchar *drivers[] = { "cdc_mbim", "qmi_wwan", "cdc_ether", "option", NULL };
return MM_PLUGIN (
g_object_new (MM_TYPE_PLUGIN_FIBOCOM,
MM_PLUGIN_NAME, MM_MODULE_NAME,
MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
- MM_PLUGIN_ALLOWED_DRIVERS, drivers,
MM_PLUGIN_ALLOWED_AT, TRUE,
MM_PLUGIN_ALLOWED_MBIM, TRUE,
MM_PLUGIN_ALLOWED_QMI, TRUE,