aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Lobrano <c.lobrano@gmail.com>2017-05-05 16:49:38 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-05-29 12:25:35 +0200
commitd986277f13db31cd91de2f6a8bf3b812d9f3fc04 (patch)
tree11309a4a98e0047159f9c3787e8c5e130a9224c4
parent8387dc7a7c6b21b28783c7db6d94a111ce7b7485 (diff)
telit: removed ID_MM_TELIT_PORTS_TAGGED dependency
Currently, Telit plugin depends on ID_MM_TELIT_PORTS_TAGGED environment variable, set by udev, for tagging modems that support dynamic port config (#PORTCFG) To remove this dependency from udev, Telit plugin now relies only on the error management of the command AT#PORTCFG? itself in order to see whether the modem supports it or not.
-rw-r--r--plugins/telit/77-mm-telit-port-types.rules9
-rw-r--r--plugins/telit/mm-common-telit.c9
2 files changed, 1 insertions, 17 deletions
diff --git a/plugins/telit/77-mm-telit-port-types.rules b/plugins/telit/77-mm-telit-port-types.rules
index 01538cb6..b052962f 100644
--- a/plugins/telit/77-mm-telit-port-types.rules
+++ b/plugins/telit/77-mm-telit-port-types.rules
@@ -33,13 +33,4 @@ ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1010", ENV{.MM_USBIFNUM}=="03", ENV{
# CE910-DUAL
ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1011", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_TELIT_PORT_TYPE_MODEM}="1"
-# HE910, UE910, UL865 (dynamic port identification supported)
-ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0021", ENV{ID_MM_TELIT_PORTS_TAGGED}="1"
-
-# GE910 (dynamic port identification supported)
-ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0022", ENV{ID_MM_TELIT_PORTS_TAGGED}="1"
-
-# LE910 V2
-ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0036", ENV{ID_MM_TELIT_PORTS_TAGGED}="1"
-
LABEL="mm_telit_port_types_end"
diff --git a/plugins/telit/mm-common-telit.c b/plugins/telit/mm-common-telit.c
index 622f63d5..1e43588f 100644
--- a/plugins/telit/mm-common-telit.c
+++ b/plugins/telit/mm-common-telit.c
@@ -336,12 +336,5 @@ telit_custom_init (MMPortProbe *probe,
ctx->getportcfg_done = FALSE;
ctx->getportcfg_retries = 3;
- /* If the device is tagged for supporting #PORTCFG do the custom init */
- if (mm_kernel_device_get_global_property_as_boolean (port_device, "ID_MM_TELIT_PORTS_TAGGED")) {
- telit_custom_init_step (ctx);
- return;
- }
-
- g_simple_async_result_set_op_res_gboolean (ctx->result, TRUE);
- telit_custom_init_context_complete_and_free (ctx);
+ telit_custom_init_step (ctx);
}