From f8d013071a68cb90bbff8e00bdb328e472354ab8 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Wed, 19 May 2021 10:28:55 +0200 Subject: recipes-core: udev: change sd-card symlinks to style of emmc rules This commit does three things: - Use "-part" instead of "-p" as it is with /dev/emmc symlinks - Use ENV{DEVTYPE} as it is used with /dev/emmc symlinks to for sure be able to distinguish partitions vs. disks - Use %n in stead of $attr{partition} as it is already used for emmc symlink rules Signed-off-by: Philippe Schenker --- recipes-core/udev/files/colibri-imx7/99-toradex.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes-core/udev/files/colibri-imx7') diff --git a/recipes-core/udev/files/colibri-imx7/99-toradex.rules b/recipes-core/udev/files/colibri-imx7/99-toradex.rules index 2371a91..56f454f 100644 --- a/recipes-core/udev/files/colibri-imx7/99-toradex.rules +++ b/recipes-core/udev/files/colibri-imx7/99-toradex.rules @@ -6,5 +6,5 @@ ACTION=="add", ATTRS{iomem_base}=="0x30880000", SYMLINK+="colibri-uartc" ACTION=="add", KERNEL=="watchdog", DRIVERS=="rn5t618-wdt", SYMLINK+="colibri-watchdog" ACTION=="add", SUBSYSTEM=="spidev", KERNELS=="30840000.*spi", SYMLINK+="colibri-spi-cs%n" SUBSYSTEM=="iio", KERNELS=="iio:device0", RUN+="/etc/udev/scripts/toradex-adc.sh" -ACTION=="add|change", KERNEL=="mmcblk[0-9]", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd" -ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-p$attr{partition}" +ACTION=="add|change", KERNEL=="mmcblk[0-9]", ENV{DEVTYPE}=="disk", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd" +ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]*", ENV{DEVTYPE}=="partition", KERNELS=="30b40000.usdhc", SYMLINK+="colibri-sd-part%n" -- cgit v1.2.3