Hi,

Am Dienstag, den 21.04.2009, 02:25 +0200 schrieb Marco d'Itri:
> On Apr 20, Joachim Breitner <nome...@debian.org> wrote:
> > What is the relation
> > between /sys/bus/usb/devices/2-2/usb_device/usbdev2.2/
> > and /sys/bus/usb/devices/2-2?
> They represent different levels of the USB protocol.
> Fix your rules to only match the real device.
> Look at the libgphoto2 and libsane packages for examples.

thanks for the clarification. But I’m wondering: Is it correct that for
both devices, the same file in /dev is created resp. reused?

$ udevadm test /sys/bus/usb/devices/2-2/usb_device/usbdev2.2/  2>&1 | fgrep NAME
udev_rules_apply_to_event: NAME 'bus/usb/002/002' 
/lib/udev/rules.d/50-udev.rules:39
$ udevadm test /sys/bus/usb/devices/2-2  2>&1 | fgrep NAME
udev_rules_apply_to_event: NAME 'bus/usb/002/002' 
/lib/udev/rules.d/50-udev.rules:35

I’d expect that only one level of the USB protocol should get this NAME.

Thanks,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to