On Tue, Aug 23, 2011 at 11:15 AM, Tom Gundersen <teg@xxxxxxx> wrote: > ATTRS matches on a parent device, two instances of ATTRS matches on > _the same_ parent device. In your case I guess idVendor and serial > match on different parent devices, which would explain why they work > separately but no together. Eventually I found a documentation that mentions this, but in was not easy. A very stable difference, hard to understand (now documented in this archive!). Thanks! > Sounds to me like you should have used: > > KERNEL=="hidraw[0-9]*", ATTR{idVendor}=="c1ca", > ATTRS{serial}=="musb_hdrc", SYMLINK+="eeeeeeeee" KERNEL=="hidraw[0-9]*", ATTR{idVendor}=="c1ca", SYMLINK+="1111111" KERNEL=="hidraw[0-9]*", ATTRS{idVendor}=="c1ca", SYMLINK+="2222222" KERNEL=="hidraw[0-9]*", ATTRS{serial}=="musb_hdrc", SYMLINK+="3333333" KERNEL=="hidraw[0-9]*", ATTR{idVendor}=="c1ca", ATTRS{serial}=="musb_hdrc", SYMLINK+="4444444" [/root 10.10.10.44] $ udevadm test /sys/class/hidraw/hidraw0 2>&1 | grep DEV UDEV_LOG=6 DEVPATH=/devices/platform/musb_hdrc/usb1/1-1/1-1.1/1-1.1:1.0/0003:C1CA:0003.0008/hidraw/hidraw0 DEVNAME=/dev/hidraw0 DEVLINKS=/dev/2222222 /dev/3333333 [/root 10.10.10.44] $ udevadm info --query=all --name=/dev/hidraw0 --attribute-walk 2>&1 | egrep 'serial|idVendor' ATTRS{idVendor}=="c1ca" ATTRS{idVendor}=="05e3" ATTRS{idVendor}=="1d6b" ATTRS{serial}=="musb_hdrc" I was expecting to see "11111", and I don't. This explains why "444444" is not working. Still - something is not working here. -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html