On Mittwoch, 9. Januar 2019 13:10:52 CET Andreas Schwab wrote:
On Jan 09 2019, Michal Kubecek
wrote: I tried mine and I get
unicorn:~ # udevadm info -a -n /dev/ttyUSB1 ...
ATTRS{idProduct}=="6001" ATTRS{idVendor}=="0403"
...
ATTRS{serial}=="FT92IO3D"
but I only have one so that I cannot say if the "serial" attribute is guaranteed to be unique among devices with the same vendor and product id (and if it's provided by other tty to USB adapters).
Definitely not, here it is just the pci number.
ATTRS in udev walks up the sysfs tree until it finds a matching attribute (contrary to ATTR). The USB root hubs have a fake serial, which uses the PCI bus path. E.g. XHCI exposes both a USB 2.0 and USB 3.0 root hub, and you end up with the same serial attribute value although devices are on different logical busses (although likely same physical bus, as the logical busses share the same physical connectors). Kind regards, Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org