summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-08-27 10:56:56 +0200
committerDan Williams <dcbw@redhat.com>2018-09-12 18:48:41 +0000
commit02f9b5b0857af45a6726846d3e74840477be66bb (patch)
tree13d68184377396567ccc2e4e1a23f9f0ad07f583
parentd1744c76630b655c174e8b0f577889c9ccf73071 (diff)
downloadModemManager-02f9b5b0857af45a6726846d3e74840477be66bb.tar.gz
dell: port type hints for the Dell DW5821e
Include port type hints to make probing quicker, and ignore the secondary AT port as it may not be fully functional.
-rw-r--r--plugins/dell/77-mm-dell-port-types.rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/dell/77-mm-dell-port-types.rules b/plugins/dell/77-mm-dell-port-types.rules
index eb271fc71..f84d05e89 100644
--- a/plugins/dell/77-mm-dell-port-types.rules
+++ b/plugins/dell/77-mm-dell-port-types.rules
@@ -8,5 +8,15 @@ GOTO="mm_dell_port_types_end"
LABEL="mm_dell_vendorcheck"
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"
+# Dell DW5821e
+# if 02: primary port
+# if 03: secondary port (ignore)
+# if 04: raw NMEA port
+# if 05: diag/qcdm port
+ATTRS{idVendor}=="413c", ATTRS{idProduct}=="81d7", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
+ATTRS{idVendor}=="413c", ATTRS{idProduct}=="81d7", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_IGNORE}="1"
+ATTRS{idVendor}=="413c", ATTRS{idProduct}=="81d7", ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_TYPE_GPS}="1"
+ATTRS{idVendor}=="413c", ATTRS{idProduct}=="81d7", ENV{.MM_USBIFNUM}=="05", ENV{ID_MM_PORT_TYPE_QCDM}="1"
+
GOTO="mm_dell_port_types_end"
LABEL="mm_dell_port_types_end"