summaryrefslogtreecommitdiff
path: root/recipes-core/udev
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-07 15:44:55 -0600
committerJohn Klug <john.klug@multitech.com>2019-07-03 17:08:20 -0500
commit7855b761c7b3e67f03d93092e01757f74159f21d (patch)
tree4a3cf0a411a1abbce114cad4061ba55b09552007 /recipes-core/udev
parent36afbf2006ce161d5f8d6410d562c79b044bcc8f (diff)
downloadmeta-mlinux-7855b761c7b3e67f03d93092e01757f74159f21d.tar.gz
meta-mlinux-7855b761c7b3e67f03d93092e01757f74159f21d.tar.bz2
meta-mlinux-7855b761c7b3e67f03d93092e01757f74159f21d.zip
Set name of EXAR devices to ttyXRUSB*
Diffstat (limited to 'recipes-core/udev')
-rw-r--r--recipes-core/udev/eudev/mtcdt/mtcdt.rules11
-rw-r--r--recipes-core/udev/eudev/mtrv1/mtrv1.rules5
2 files changed, 10 insertions, 6 deletions
diff --git a/recipes-core/udev/eudev/mtcdt/mtcdt.rules b/recipes-core/udev/eudev/mtcdt/mtcdt.rules
index 5d528e6..0066f3b 100644
--- a/recipes-core/udev/eudev/mtcdt/mtcdt.rules
+++ b/recipes-core/udev/eudev/mtcdt/mtcdt.rules
@@ -6,9 +6,12 @@ SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
ENV{ID_IFACE}=="", GOTO="mlinux_end"
# Accessory Ports
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1"
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1"
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2"
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2"
+# ttyXRUSB is Vizzini driver name, for compatiblity.
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1", NAME="ttyXRUSB0"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="00", SYMLINK+="ttyAP1", NAME="ttyXRUSB0"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2", NAME="ttyXRUSB1"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="02", SYMLINK+="ttyAP2", NAME="ttyXRUSB1"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="04", NAME="ttyXRUSB2"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1414", ENV{ID_IFACE}=="06", NAME="ttyXRUSB3"
LABEL="mlinux_end"
diff --git a/recipes-core/udev/eudev/mtrv1/mtrv1.rules b/recipes-core/udev/eudev/mtrv1/mtrv1.rules
index 239a846..0ca31f9 100644
--- a/recipes-core/udev/eudev/mtrv1/mtrv1.rules
+++ b/recipes-core/udev/eudev/mtrv1/mtrv1.rules
@@ -6,8 +6,9 @@ SUBSYSTEMS=="usb", ENV{ID_IFACE}="$attr{bInterfaceNumber}"
ENV{ID_IFACE}=="", GOTO="mlinux_end"
# mtr revA: bluetooth on exar chip (ACM0, iface 0)
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", SYMLINK+="bt"
+# ttyXRUSB is Vizzini driver name, for compatiblity.
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="00", NAME="ttyXRUSB0", SYMLINK+="bt"
# mtr revA: external serial on exar chip (ACM1, iface 2)
-ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", SYMLINK+="ext_serial"
+ATTRS{idVendor}=="04e2", ATTRS{idProduct}=="1412", ENV{ID_IFACE}=="02", NAME="ttyXRUSB1", SYMLINK+="ext_serial"
LABEL="mlinux_end"