summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/colibri-imx6/99-toradex.rules
diff options
context:
space:
mode:
authorFrancesco Dolcini <francesco.dolcini@toradex.com>2022-08-10 16:09:09 +0200
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2022-08-10 16:09:14 +0200
commita44b81d8db462737e844c64de4415918ff4cf011 (patch)
treeb37b697f78f264561ad7f7ad9849e716533a16a0 /recipes-core/udev/files/colibri-imx6/99-toradex.rules
parentf7d51808ea810f63d70aa7e67681e12ff06ebd8d (diff)
udev-toradex-rules: Fix symlink creations
Depending on the kernel driver probe time in some circumstances the udev event is not add, but change, add both to the rules. Without this change the uart symlinks are not created if the imx-sdma driver is loaded after udev is started. Related-to: ELB-4655 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Diffstat (limited to 'recipes-core/udev/files/colibri-imx6/99-toradex.rules')
-rw-r--r--recipes-core/udev/files/colibri-imx6/99-toradex.rules20
1 files changed, 10 insertions, 10 deletions
diff --git a/recipes-core/udev/files/colibri-imx6/99-toradex.rules b/recipes-core/udev/files/colibri-imx6/99-toradex.rules
index e1d5f1b..76f8e82 100644
--- a/recipes-core/udev/files/colibri-imx6/99-toradex.rules
+++ b/recipes-core/udev/files/colibri-imx6/99-toradex.rules
@@ -1,13 +1,13 @@
-ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="21a8000.i2c", SYMLINK+="colibri-i2c"
-ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="i2c@0", SYMLINK+="colibri-i2c-ddc"
-ACTION=="add", SUBSYSTEM=="i2c-dev", KERNELS=="120000.hdmi", SYMLINK+="colibri-i2c-ddc"
-ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="21a4000.i2c", SYMLINK+="colibri-i2c-on-module"
-ACTION=="add", ATTRS{iomem_base}=="0x2020000", SYMLINK+="colibri-uarta"
-ACTION=="add", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="colibri-uartb"
-ACTION=="add", ATTRS{iomem_base}=="0x21EC000", SYMLINK+="colibri-uartc"
-ACTION=="add", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog"
-ACTION=="add", KERNELS=="20bc000.watchdog", SYMLINK+="colibri-watchdog"
-ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="2014000.*spi", SYMLINK+="colibri-spi-cs%n"
+ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="21a8000.i2c", SYMLINK+="colibri-i2c"
+ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="i2c@0", SYMLINK+="colibri-i2c-ddc"
+ACTION=="add|change", SUBSYSTEM=="i2c-dev", KERNELS=="120000.hdmi", SYMLINK+="colibri-i2c-ddc"
+ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="21a4000.i2c", SYMLINK+="colibri-i2c-on-module"
+ACTION=="add|change", ATTRS{iomem_base}=="0x2020000", SYMLINK+="colibri-uarta"
+ACTION=="add|change", ATTRS{iomem_base}=="0x21E8000", SYMLINK+="colibri-uartb"
+ACTION=="add|change", ATTRS{iomem_base}=="0x21EC000", SYMLINK+="colibri-uartc"
+ACTION=="add|change", KERNELS=="20bc000.wdog", SYMLINK+="colibri-watchdog"
+ACTION=="add|change", KERNELS=="20bc000.watchdog", SYMLINK+="colibri-watchdog"
+ACTION=="add|change", SUBSYSTEM=="spidev", KERNELS=="2014000.*spi", SYMLINK+="colibri-spi-cs%n"
KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc"
KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.mmc", SYMLINK+="emmc"
KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="2198000.usdhc", SYMLINK+="emmc-boot%n"