diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2022-08-10 16:09:09 +0200 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2022-08-10 16:09:14 +0200 |
commit | a44b81d8db462737e844c64de4415918ff4cf011 (patch) | |
tree | b37b697f78f264561ad7f7ad9849e716533a16a0 /recipes-core/udev/files/colibri-imx8x | |
parent | f7d51808ea810f63d70aa7e67681e12ff06ebd8d (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-imx8x')
-rw-r--r-- | recipes-core/udev/files/colibri-imx8x/99-toradex.rules | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules index d0c65ea..bf46e39 100644 --- a/recipes-core/udev/files/colibri-imx8x/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx8x/99-toradex.rules @@ -1,10 +1,10 @@ -ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a810000.i2c", SYMLINK+="colibri-i2c" -ACTION=="add", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a800000.i2c", SYMLINK+="colibri-i2c-on-module" -ACTION=="add", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="colibri-uarta" -ACTION=="add", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="colibri-uartb" -ACTION=="add", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="colibri-uartc" -ACTION=="add", KERNELS=="watchdog", SYMLINK+="colibri-watchdog" -ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="5a020000.spi", SYMLINK+="colibri-spi-cs%n" +ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a810000.i2c", SYMLINK+="colibri-i2c" +ACTION=="add|change", KERNEL=="i2c-[0-9]*", ATTRS{name}=="5a800000.i2c", SYMLINK+="colibri-i2c-on-module" +ACTION=="add|change", ATTRS{iomem_base}=="0x5A090010", SYMLINK+="colibri-uarta" +ACTION=="add|change", ATTRS{iomem_base}=="0x5A060010", SYMLINK+="colibri-uartb" +ACTION=="add|change", ATTRS{iomem_base}=="0x5A080010", SYMLINK+="colibri-uartc" +ACTION=="add|change", KERNELS=="watchdog", SYMLINK+="colibri-watchdog" +ACTION=="add|change", SUBSYSTEM=="spidev", KERNELS=="5a020000.spi", SYMLINK+="colibri-spi-cs%n" KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.mmc", SYMLINK+="emmc" KERNEL=="mmcblk[0-9]boot[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="5b010000.mmc", SYMLINK+="emmc-boot%n" KERNEL=="mmcblk[0-9]p[0-9]", ENV{DEVTYPE}=="partition", KERNELS=="5b010000.mmc", SYMLINK+="emmc-part%n" |