diff options
author | Tom Shield <77857887+twshield@users.noreply.github.com> | 2021-03-02 03:56:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 19:56:06 +1000 |
commit | e595edf1a3d7318811325cf97663c4b5a3859c6e (patch) | |
tree | 2fa64b68c1cd66460be52e1531d9cdc2601dc4a2 | |
parent | d8ce385fe3e5be91b6f414415e10f8897e41d942 (diff) | |
download | systemd-e595edf1a3d7318811325cf97663c4b5a3859c6e.tar.gz |
udev: add i2c to 60-persistent-input.rules for by-path (#18808)
Add the i2c subsystem to those that create by-path links.
i2c devices may not have IDs so we can't rely on the by-id links
but they (or some of them) should at least have a path that we can use.
-rw-r--r-- | rules.d/60-persistent-input.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.d/60-persistent-input.rules b/rules.d/60-persistent-input.rules index 255547d906..52f4ddb7e6 100644 --- a/rules.d/60-persistent-input.rules +++ b/rules.d/60-persistent-input.rules @@ -35,8 +35,8 @@ SUBSYSTEMS=="usb", ENV{ID_BUS}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="", A SUBSYSTEMS=="pci|usb|platform|acpi", IMPORT{builtin}="path_id" ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{.INPUT_CLASS}" ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{.INPUT_CLASS}" -# allow empty class for platform and usb devices; platform supports only a single interface that way -SUBSYSTEMS=="usb|platform", ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="", \ +# allow empty class for platform, usb and i2c devices; platform supports only a single interface that way +SUBSYSTEMS=="usb|platform|i2c", ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="", \ SYMLINK+="input/by-path/$env{ID_PATH}-event" LABEL="persistent_input_end" |