summaryrefslogtreecommitdiffstats
path: root/rules.d/60-drm.rules
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-01 19:28:35 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-20 07:27:10 +0200
commit873be895ed1fe65010fb84c6b71e2ec0a6b6fc91 (patch)
tree4dc0f229a4c4585136f1b06ce516c2df196b2a68 /rules.d/60-drm.rules
parentudev-builtin-path_id: split out add_id_tag() (diff)
downloadsystemd-873be895ed1fe65010fb84c6b71e2ec0a6b6fc91.tar.xz
systemd-873be895ed1fe65010fb84c6b71e2ec0a6b6fc91.zip
udev: add USB revision in ID_PATH
xHCI host controller may register two (or more?) USB root hubs for USB 2.0 and USB 3.0, and devices under the hubs may have same ID_PATH. So, to avoid the conflict, let's introduce ID_PATH_WITH_USB_REVISION that includes the USB revision. Closes #19406.
Diffstat (limited to 'rules.d/60-drm.rules')
-rw-r--r--rules.d/60-drm.rules9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.d/60-drm.rules b/rules.d/60-drm.rules
index f7f3435d50..061b2a2a74 100644
--- a/rules.d/60-drm.rules
+++ b/rules.d/60-drm.rules
@@ -3,6 +3,9 @@
ACTION!="remove", SUBSYSTEM=="drm", SUBSYSTEMS=="pci|usb|platform", IMPORT{builtin}="path_id"
# by-path
-ENV{ID_PATH}=="?*", KERNEL=="card*", SYMLINK+="dri/by-path/$env{ID_PATH}-card"
-ENV{ID_PATH}=="?*", KERNEL=="controlD*", SYMLINK+="dri/by-path/$env{ID_PATH}-control"
-ENV{ID_PATH}=="?*", KERNEL=="renderD*", SYMLINK+="dri/by-path/$env{ID_PATH}-render"
+KERNEL=="card*", ENV{ID_PATH}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH}-card"
+KERNEL=="card*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH_WITH_USB_REVISION}-card"
+KERNEL=="controlD*", ENV{ID_PATH}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH}-control"
+KERNEL=="controlD*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH_WITH_USB_REVISION}-control"
+KERNEL=="renderD*", ENV{ID_PATH}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH}-render"
+KERNEL=="renderD*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="dri/by-path/$env{ID_PATH_WITH_USB_REVISION}-render"