diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-03-30 11:38:29 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-01 14:02:51 +0200 |
commit | 5ffad1f51f217abe237f9c9ef0bc3151a7cad227 (patch) | |
tree | 032dbb8cbad54214c967411d023c8a54aff4ca50 | |
parent | b9b5ca39dfc13073584d99f20c94bd275aeba713 (diff) |
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
-rw-r--r-- | plugins/mbm/77-mm-ericsson-mbm.rules | 5 | ||||
-rw-r--r-- | 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 |