On Tue, Aug 23, 2011 at 12:45 PM, Diego Iastrubni <diegoiast@xxxxxxxxx> wrote: > On Tue, Aug 23, 2011 at 12:51 PM, Tom Gundersen <teg@xxxxxxx> wrote: >> I guess c1ca is not the idVendor of your hidraw device, but of one of >> it its parents. Could you post the output of "udevadm info --query=all >> --name=/dev/hidraw0 --attribute-walk" (without the egrep)? > > [/root 10.10.10.44] $ udevadm info --query=all --name=/dev/hidraw0 > --attribute-walk [...] > looking at device > '/devices/platform/musb_hdrc/usb1/1-1/1-1.1/1-1.1:1.0/0003:C1CA:0003.0001/hidraw/hidraw0': > KERNEL=="hidraw0" > SUBSYSTEM=="hidraw" > DRIVER=="" [...] > looking at parent device '/devices/platform/musb_hdrc/usb1/1-1/1-1.1': > KERNELS=="1-1.1" > SUBSYSTEMS=="usb" > DRIVERS=="usb" > ATTRS{configuration}=="Default configuration" > ATTRS{bNumInterfaces}==" 1" > ATTRS{bConfigurationValue}=="1" > ATTRS{bmAttributes}=="40" > ATTRS{bMaxPower}==" 0mA" > ATTRS{urbnum}=="41" > ATTRS{idVendor}=="c1ca" > ATTRS{idProduct}=="0003" > ATTRS{bcdDevice}=="0000" > ATTRS{bDeviceClass}=="00" > ATTRS{bDeviceSubClass}=="00" > ATTRS{bDeviceProtocol}=="00" > ATTRS{bNumConfigurations}=="1" > ATTRS{bMaxPacketSize0}=="8" > ATTRS{speed}=="12" > ATTRS{busnum}=="1" > ATTRS{devnum}=="3" > ATTRS{devpath}=="1.1" > ATTRS{version}==" 1.01" > ATTRS{maxchild}=="0" > ATTRS{quirks}=="0x0" > ATTRS{authorized}=="1" > ATTRS{manufacturer}=="Sysmop tech." > ATTRS{product}=="USB PALM" [...] > looking at parent device '/devices/platform/musb_hdrc/usb1': > KERNELS=="usb1" > SUBSYSTEMS=="usb" > DRIVERS=="usb" > ATTRS{configuration}=="" > ATTRS{bNumInterfaces}==" 1" > ATTRS{bConfigurationValue}=="1" > ATTRS{bmAttributes}=="e0" > ATTRS{bMaxPower}==" 0mA" > ATTRS{urbnum}=="26" > ATTRS{idVendor}=="1d6b" > ATTRS{idProduct}=="0002" > ATTRS{bcdDevice}=="0206" > ATTRS{bDeviceClass}=="09" > ATTRS{bDeviceSubClass}=="00" > ATTRS{bDeviceProtocol}=="00" > ATTRS{bNumConfigurations}=="1" > ATTRS{bMaxPacketSize0}=="64" > ATTRS{speed}=="480" > ATTRS{busnum}=="1" > ATTRS{devnum}=="1" > ATTRS{devpath}=="0" > ATTRS{version}==" 2.00" > ATTRS{maxchild}=="1" > ATTRS{quirks}=="0x0" > ATTRS{authorized}=="1" > ATTRS{manufacturer}=="Linux 2.6.32 musb-hcd" > ATTRS{product}=="MUSB HDRC host driver" > ATTRS{serial}=="musb_hdrc" > ATTRS{authorized_default}=="1" Ok, so that explains why you don't get your 11111 symlink, the idVendor you are matching against is not on the device you want, but on a parent. I honestly don't know the best way to match against two different parents, which is apparently what you need. I guess something like this should work though: SUBSYSTEM!="hidraw", GOTO="hidraw_end" ATTRS{idVendor}!="c1ca", GOTO="hidraw_end" ATTRS{serial}=="musb_hdrc", SYMLINK+="444444" LABEL="hidraw_end" Maybe someone else knows a better solution? Cheers, Tom -- 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