[PATCH 2/2] dell: removed ID_MM_TELIT_PORTS_TAGGED dependency

Carlo Lobrano c.lobrano at gmail.com
Mon May 8 08:11:27 UTC 2017


On 8 May 2017 at 09:55, Aleksander Morgado <aleksander at aleksander.es> wrote:

> Wouldn't this happen in the same way for all non-AT ports in modems
> managed by the Telit plugin, now that ID_MM_TELIT_PORTS_TAGGED is
> removed from the Telit plugin as well?
>

In Telit plugin we only probe the port with ID_USB_INTERFACE_NUM ==  00,
which we know that supports AT commands, see mm-common-telit.c:

286     /* Try to get a port configuration from the modem: usb interface 00
287      * is always linked to an AT port
288      */
289     port = mm_port_probe_peek_port (ctx->probe);
290     if (!ctx->getportcfg_done &&
291         g_strcmp0 (mm_kernel_device_get_property (port,
"ID_USB_INTERFACE_NUM"), "00") == 0) {
292
293         if (ctx->getportcfg_retries == 0)
294             goto out;
295         ctx->getportcfg_retries--;
296
297         mm_port_serial_at_command (
298             ctx->port,
299             "AT#PORTCFG?",
300             2,
301             FALSE, /* raw */
302             FALSE, /* allow_cached */
303             ctx->cancellable,
304             (GAsyncReadyCallback)getportcfg_ready,
305             ctx);
306         return;
307     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170508/8d162d71/attachment.html>


More information about the ModemManager-devel mailing list