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.
This commit is contained in:

committed by
Aleksander Morgado

parent
8387dc7a7c
commit
d986277f13
@@ -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"
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user