From 5ffad1f51f217abe237f9c9ef0bc3151a7cad227 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 30 Mar 2013 11:38:29 +0100 Subject: mbm: don't tag only tty ports, and also grab cdc-wdm ports We also need to tag cdc-wdm ports, so that they get grabbed but ignored and not QMI-probed. https://bugzilla.gnome.org/show_bug.cgi?id=696701 --- plugins/mbm/77-mm-ericsson-mbm.rules | 5 +++-- plugins/mbm/mm-plugin-mbm.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/mbm/77-mm-ericsson-mbm.rules b/plugins/mbm/77-mm-ericsson-mbm.rules index 863204c8..fde03ae5 100644 --- a/plugins/mbm/77-mm-ericsson-mbm.rules +++ b/plugins/mbm/77-mm-ericsson-mbm.rules @@ -1,7 +1,9 @@ # do not edit this file, it will be overwritten on update ACTION!="add|change", GOTO="mm_mbm_end" -SUBSYSTEM!="tty", GOTO="mm_mbm_end" +SUBSYSTEMS=="usb", GOTO="mm_mbm_check" + +LABEL="mm_mbm_check" # Ericsson F3507g ATTRS{idVendor}=="0bdb", ATTRS{idProduct}=="1900", ENV{ID_MM_ERICSSON_MBM}="1" @@ -114,4 +116,3 @@ ATTRS{idVendor}=="0930", ATTRS{idProduct}=="1313", ENV{ID_MM_ERICSSON_MBM}="1" ATTRS{idVendor}=="0930", ATTRS{idProduct}=="1314", ENV{ID_MM_ERICSSON_MBM}="1" LABEL="mm_mbm_end" - diff --git a/plugins/mbm/mm-plugin-mbm.c b/plugins/mbm/mm-plugin-mbm.c index d776265f..6c23e7c8 100644 --- a/plugins/mbm/mm-plugin-mbm.c +++ b/plugins/mbm/mm-plugin-mbm.c @@ -55,7 +55,7 @@ create_modem (MMPlugin *self, G_MODULE_EXPORT MMPlugin * mm_plugin_create (void) { - static const gchar *subsystems[] = { "tty", "net", NULL }; + static const gchar *subsystems[] = { "tty", "net", "usb", NULL }; static const gchar *udev_tags[] = { "ID_MM_ERICSSON_MBM", NULL -- cgit v1.2.3