Commit Graph

83 Commits

Author SHA1 Message Date
Jonas Bonn 03e1ec2f66 udevng: simplify logic in check_usb_device
This patch simplifies and cleans up the check_usb_device function a bit
by doing the two following (slightly intertwined) things:

1)  The parent "usb_device" is searched for early in this function and this
device will always have the ID_VENDOR_ID and ID_MODEL_ID properties.
As such, we can get them from this device and thereby be certain that
we _always_ have them available.

2)  The logic of iterating the vendor_list table is cleaned up.  It's
easier to follow and won't be any less efficient.
2017-03-26 20:42:27 -05:00
Piotr Haber 5c0a8e531e udevng: unify telit and xe910
Unified setup for Telit devices using
usbserial and cdc_acm drivers.
2017-02-02 11:58:13 -06:00
Piotr Haber 0a7e4c0716 udevng: setup of Telit LE910V2
Setup LE910V2 in default USB composition (1bc7:0036)
with 6 CDC-ACM serial ports and 1 CDC-NCM network adapter.
2017-01-27 20:22:59 -06:00
Piotr Haber 36d18310df plugins: rename he910 to xe910
In preparation for more generic support
of Telit xE910 family.
2017-01-26 13:10:18 -06:00
Vincent Cesson e8c80cbe8b udevng: complete gemalto setup
Complete the Gemalto setup with cdc_wdm and qmi,
so all enumerated devices are associated with gemalto.
2017-01-18 20:19:17 -06:00
Vincent Cesson 92c4b831dc udevng: Add Gemalto P-family detection
Add a new function setup, based on telit, to handle Gemalto P-family
discovery. The setup looks for USB interfaces:
application=/dev/ttyUSB2
gps=/dev/ttyUSB1
modem=/dev/ttyUSB3
2017-01-16 22:25:16 -06:00
Christophe Ronco 4b38259a6f udevng: Sierra modems use SIM driver 2017-01-10 11:26:23 -06:00
Frédéric Dalleau 3079ccad45 udevng: Detect huawei E3372 modem and pcui
When the modes are modified with AT^SETPORT="FF;12,1,16", this modem
and pcui will appear using different ids. Update the interfaces
identifier accordingly.
2016-09-29 10:59:21 -05:00
Frédéric Dalleau 1978934740 udevng: Detect huawei E3372 pcui
The huawei E3372 exposes two USB tty at /dev/ttyUSB0 and /dev/ttyUSB1
/dev/ttyUSB1 is properly detected as modem.
/dev/ttyUSB0 is the pcui.

lsusb shows 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
2016-09-29 10:58:47 -05:00
Denis Kenzior 2b64d31fbc udevng: Fixup various minor style issues 2016-05-03 11:09:24 -05:00
Martin Chaplet 4005e87923 udevng: Add support for Sierra MC73xx QMI modems
Udevng layer is changed in order to support Sierra QMI modems like
MC73cxx. Identically to Huawei modems, these modems are parsed by
setup_sierra. If QMI interface is detected, the Gobi modem driver is
selected.

Unfortunately, MC73xx chips seem to have a broken QMI UIM interface.
The qmimodem-legacy is so forced in setup function.
2016-05-03 11:06:04 -05:00
Martin Chaplet d415265a69 udevng: Improve modem properties detection
* Add driver's subsystem information (net, usb, tty, ...)
 * Improve interface number extraction by scanning also device and
 parent attributes
2016-05-03 11:04:58 -05:00
Martin Chaplet 9e50d14e40 udevng: Add usbmisc scan for QMI devices
cdc-wdm0 are now usbmisc devices
2016-05-02 10:11:24 -05:00
Dongsu Park 5d8f5228ca udevng: Support U-blox TOBY series of devices
Each modem expresses their interfaces with its own interface string,
which is composed of 3 different USB attributes:
"bInterfaceClass/bInterfaceSubClass/bInterfaceProtocol".
While the old models like LISA support only "2/2/1" for modem
interfaces, TOBY-L2 also supports an unique string for NetworkInterface
for each profile.

* low-medium throughput profile : 2/6/0
* fairly backward-compatible profile : 10/0/0
* high throughput profile : 224/1/3

Besides the condition for checking NULL for mdm/aux/net should be relaxed
a little bit.
2016-03-16 12:59:51 -05:00
Denis Kenzior 5133bd2818 udevng: Move from setup_icera to setup_ublox
As intended by 126b04
2016-03-11 14:08:18 -06:00
Dragos Tatulea 126b0424d3 plugins/udevng: ublox: set model string
Necessary for supporting the ublox TOBY L2 modem.
2016-03-10 08:03:20 -06:00
Dongsu Park 56ff134721 plugins/udevng: support the U-Blox TOBY-L2 series
The newest generation of U-Blox TOBY-L2 series can be detected with
VID 0x1546 (the same as before), and one of the following PIDs:

* "0x1146" : high throughput profile
* "0x1141" : fairly back-compatible profile
* "0x1143" : low/medium throughput profile

This patch adds detection for high throughput mode.
2016-03-09 11:23:52 -06:00
Johannes 'josch' Schauer b04fabcda3 udevng: add support for Ericsson N5321 gw 2015-07-16 14:10:41 -05:00
Kuba Pawlak 88f46a9b01 udev: add GPS port definition for HE910 2014-10-22 21:22:24 -05:00
Philip Paeps 7f29608feb udevng: add detection logic for u-blox modems 2014-07-08 08:50:20 -05:00
Philip Paeps 5cffd8af95 udevng: add detection logic for Quectel modems 2014-06-30 13:26:51 -05:00
Denis Kenzior 06598ef47c udevng: Add he910 detection logic 2013-11-25 10:55:59 -06:00
Marcel Holtmann 6df6688f61 udev: Let Huawei detection also check for cdc_wdm drivers 2012-11-25 20:00:38 +01:00
Marcel Holtmann adf93dc436 udev: Use Qualcomm Gobi driver if QMI based modem 2012-11-25 20:00:07 +01:00
Marcel Holtmann 589a8997c0 udev: Handle USB descriptors from Vodafone K5005 modem 2012-11-25 19:57:43 +01:00
Denis Kenzior 4769c59957 udevng: Fix MBM detection 2012-10-16 10:02:12 -05:00
Christopher Vogl 71cf14d5b1 udevng: rename aux port from Data to Aux for telit
Telit software user guide says:
USB AUX doesn't support any flow control method. Therefore, this port
isn't suitable for DATA service port.
We recommend this port should be used only for AT command and URC
processing.
2012-08-20 08:08:25 -05:00
Marcel Holtmann d5dc9c967d udev: Fix matching to prefer entries with VID and PID 2012-05-26 07:35:58 +02:00
Marcel Holtmann fba1efe1a5 udev: Add support for detecting Huawei QMI devices 2012-05-26 07:35:25 +02:00
Marcel Holtmann 6a62729e32 udev: Add support for detecting Gobi QMI devices 2012-05-26 07:01:42 +02:00
Marcel Holtmann f986bcbe35 udev: Add matching support for CDC WDM device nodes 2012-05-26 06:46:54 +02:00
Marcel Holtmann 897e99aceb udev: Add detection for Nokia 21M-01 modems 2012-05-25 12:35:45 +02:00
Marcel Holtmann 8fed16f541 udev: Add detection for Samsung GT-Y3300 modems 2012-05-25 12:35:25 +02:00
Marcel Holtmann aa5e661c55 udev: Extend port mapping for Icera modems 2012-05-25 12:30:40 +02:00
Marcel Holtmann 19b187a654 udev: Add detection support for Icera based devices 2012-04-06 16:19:36 +02:00
Marcel Holtmann 9abf49fa2b udev: Only detect Sierra Wireless devices with DirectIP 2012-03-21 21:17:33 -07:00
Marcel Holtmann 1a5895f428 udev: Remove empty line 2012-02-18 13:26:26 +01:00
Marcel Holtmann ef3ea60913 udev: Add support for detecting Sierra network interfaces 2012-02-18 13:18:53 +01:00
Marcel Holtmann efaf74a9fa udev: Also detect modem port of Option HSO devices 2012-02-18 13:01:42 +01:00
Marcel Holtmann 1a3752c174 udev: Detect more ports for Sierra modems 2012-02-16 19:17:40 +01:00
Marcel Holtmann 91bd71e996 udev: Add sanity check for ports on old Option devices 2012-02-16 18:36:23 +01:00
Marcel Holtmann caad8378d9 udev: Detect old Option cards without high-speed interface 2012-02-16 18:07:07 +01:00
Marcel Holtmann 5086f5f43a udev: Limit ZTE port selection to specific product identifiers 2012-01-17 10:38:07 +01:00
Marcel Holtmann d6d86ff938 udev: Keep vendor and product identifiers around 2012-01-17 10:35:23 +01:00
Marcel Holtmann f2bfaed174 udev: Add detection support for SIM COM modems 2012-01-13 04:56:02 +01:00
Guillaume Zajac de2e92fc86 udevng: Remove huaweicdma label from driver_list 2012-01-07 12:26:31 -06:00
Guillaume Zajac ba06f8e2fa udev: Simplify vendor_list for Huawei constructor
According to Huawei constructor, the port mapping is identical
for all the modems. We can decide to use GSM or CDMA drivers into
the plugin.
2012-01-06 13:43:17 -08:00
Philippe Nunes 4e2fc09083 udevng: Do only label assignment for Speedup dongles 2011-12-20 09:24:03 -08:00
Christopher Vogl 557201c2da udevng: add another driver name for telit
some telit hardware needs option driver.
2011-12-15 22:38:29 -06:00
Gustavo F. Padovan 5371c28773 udev: add a driver name for telit
telit hardware needs usbserial.
2011-10-15 17:29:10 -07:00