diff options
author | Sven Schwermer <sven.schwermer@disruptive-technologies.com> | 2022-07-07 15:34:58 +0200 |
---|---|---|
committer | Sven Schwermer <sven.schwermer@disruptive-technologies.com> | 2022-07-08 08:25:40 +0200 |
commit | 38646bb68fcf724159be4cf4d856037cb9c6b49c (patch) | |
tree | 08f9e026783784687b68d8702990f93376909676 | |
parent | 71a3942b3fe712b95becab5159639ec6aecc0a7c (diff) |
fibocom: Add alternative L610 USB config
This is the factory-default setting. Make sure to support it as well as
the ECM/RNDIS settings. The L610 in GTUSBMODE=31 only enumerates with
serial USB interfaces using the option driver, so we need to allow that
driver too.
Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
-rw-r--r-- | plugins/fibocom/77-mm-fibocom-port-types.rules | 18 | ||||
-rw-r--r-- | plugins/fibocom/mm-plugin-fibocom.c | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/plugins/fibocom/77-mm-fibocom-port-types.rules b/plugins/fibocom/77-mm-fibocom-port-types.rules index 544dc256..10314204 100644 --- a/plugins/fibocom/77-mm-fibocom-port-types.rules +++ b/plugins/fibocom/77-mm-fibocom-port-types.rules @@ -65,7 +65,23 @@ ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0106", ENV{.MM_USBIFNUM}=="00", ENV{ ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0106", ENV{.MM_USBIFNUM}=="01", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0106", ENV{.MM_USBIFNUM}=="02", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1" -# Fibocom L610 (GTUSBMODE=32) +# Fibocom L610 (GTUSBMODE=31) +# ttyUSB0 (if #0): AT port +# ttyUSB1 (if #1): NV +# ttyUSB2 (if #2): MOS +# ttyUSB3 (if #3): Diagnostic +# ttyUSB4 (if #4): Logging +# ttyUSB5 (if #5): AT port +# ttyUSB6 (if #6): AT port +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="00", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="05", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1" +ATTRS{idVendor}=="1782", ATTRS{idProduct}=="4d10", ENV{.MM_USBIFNUM}=="06", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1" + +# Fibocom L610 (GTUSBMODE={32,33} - ECM/RNDIS) # ttyUSB0 (if #2): AT port # ttyUSB1 (if #3): NV # ttyUSB2 (if #4): MOS diff --git a/plugins/fibocom/mm-plugin-fibocom.c b/plugins/fibocom/mm-plugin-fibocom.c index bf7985f1..4ef4d483 100644 --- a/plugins/fibocom/mm-plugin-fibocom.c +++ b/plugins/fibocom/mm-plugin-fibocom.c @@ -107,7 +107,7 @@ mm_plugin_create (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", NULL }; + static const gchar *drivers[] = { "cdc_mbim", "qmi_wwan", "cdc_ether", "option", NULL }; return MM_PLUGIN ( g_object_new (MM_TYPE_PLUGIN_FIBOCOM, |