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.
This commit is contained in:
Aleksander Morgado
2018-09-12 18:48:41 +00:00
committed by Dan Williams
parent d1744c7663
commit 02f9b5b085
+10
View File
@@ -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"