diff options
author | Daniele Palmas <dnlplm@gmail.com> | 2017-03-27 15:54:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-28 11:06:55 +0200 |
commit | 6de2d84af17a88cbef509187c96d2d91a06c6914 (patch) | |
tree | f3e2aaf35340d191fdc69d30da4ce7026237ba95 /plugins/telit/mm-common-telit.c | |
parent | eee6896648fc39922f3d3eff7190a94bd536b40d (diff) |
telit: support QMI and MBIM modems
Vendor specific plugins that support QMI or MBIM based devices need to
handle the creation of these modems themselves.
https://bugs.freedesktop.org/show_bug.cgi?id=100372
Original patch by Aleksander Morgado.
Diffstat (limited to 'plugins/telit/mm-common-telit.c')
-rw-r--r-- | plugins/telit/mm-common-telit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/telit/mm-common-telit.c b/plugins/telit/mm-common-telit.c index 3c913de2..622f63d5 100644 --- a/plugins/telit/mm-common-telit.c +++ b/plugins/telit/mm-common-telit.c @@ -38,10 +38,16 @@ telit_grab_port (MMPlugin *self, MMDevice *device; MMPortType ptype; MMPortSerialAtFlag pflags = MM_PORT_SERIAL_AT_FLAG_NONE; + const gchar *subsys; port = mm_port_probe_peek_port (probe); ptype = mm_port_probe_get_port_type (probe); device = mm_port_probe_peek_device (probe); + subsys = mm_port_probe_get_port_subsys (probe); + + /* Just skip custom port identification for subsys different than tty */ + if (!g_str_equal (subsys, "tty")) + goto out; /* Look for port type hints; just probing can't distinguish which port should * be the data/primary port on these devices. We have to tag them based on @@ -102,6 +108,7 @@ telit_grab_port (MMPlugin *self, ptype = MM_PORT_TYPE_IGNORED; } +out: return mm_base_modem_grab_port (modem, port, ptype, |