udevadm info reports wrong ID_MODEL_ID and ID_VENDOR_ID for USB serial port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtserialport-opensource-src (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
systemd (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
Running udevadm info with the device path of a virtual serial port created by a USB device (in this case a Particle Photon development board) returns the ID_MODEL_ID and ID_VENDOR_ID for the USB host controller instead of the Particle device.
The consequence is mis-detection of the device associated with a virtual serial port in applications.
udevadm info with the virtual serial port. Expect ID_MODEL_ID=c00a and ID_VENDOR_ID=2b04
$ udevadm info --query=property -p /devices/
DEVLINKS=
DEVNAME=
DEVPATH=
ID_BUS=pci
ID_MODEL=Electron
ID_MODEL_
ID_MODEL_
ID_MODEL_ID=0x1e31
ID_PATH=
ID_PATH_
ID_PCI_
ID_PCI_
ID_PCI_
ID_REVISION=0200
ID_SERIAL=
ID_SERIAL_
ID_TYPE=generic
ID_USB_
ID_USB_
ID_USB_
ID_USB_
ID_VENDOR=Particle
ID_VENDOR_
ID_VENDOR_
ID_VENDOR_ID=0x8086
MAJOR=166
MINOR=0
SUBSYSTEM=tty
TAGS=:systemd:
USEC_INITIALIZE
Running udevadm info with the base device path gives expected IDs
$ udevadm info --query=property -p /devices/
BUSNUM=001
DEVNAME=
DEVNUM=008
DEVPATH=
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=Electron
ID_MODEL_
ID_MODEL_ID=c00a
ID_REVISION=0200
ID_SERIAL=
ID_SERIAL_
ID_USB_
ID_VENDOR=Particle
ID_VENDOR_
ID_VENDOR_ID=2b04
MAJOR=189
MINOR=7
PRODUCT=
SUBSYSTEM=usb
TYPE=2/0/0
USEC_INITIALIZE
Running lsusb gives the expected IDs.
$ lsusb -v
Bus 001 Device 008: ID 2b04:c00a
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2b04
idProduct 0xc00a
bcdDevice 2.00
iManufacturer 1 Particle
iProduct 2 Electron
iSerial 3 00000000050C
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 2
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 1
bInterfac
bInterfac
bInterfac
iInterface 0
CDC Header:
bcdCDC 1.10
CDC Call Management:
CDC ACM:
line coding and serial state
CDC Union:
Endpoint Descriptor:
bLength 7
Transfer Type Interrupt
Synch Type None
Usage Type Data
bInterval 255
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Device Status: 0x0001
Self Powered
$ lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
$ apt-cache policy udev
udev:
Installed: 225-1ubuntu9
Candidate: 225-1ubuntu9
Version table:
*** 225-1ubuntu9 0
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: udev 225-1ubuntu9
ProcVersionSign
Uname: Linux 4.2.0-25-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
CustomUdevRuleF
Date: Thu Jan 28 15:33:38 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-05-09 (994 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MachineType: ASUSTeK COMPUTER INC. UX31A
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to wily on 2015-10-27 (93 days ago)
dmi.bios.date: 01/31/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: UX31A.218
dmi.board.
dmi.board.name: UX31A
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: UX31A
dmi.product.
dmi.sys.vendor: ASUSTeK COMPUTER INC.
Changed in systemd (Ubuntu): | |
importance: | Undecided → High |
Changed in qtserialport-opensource-src (Ubuntu): | |
importance: | Undecided → High |
Changed in systemd (Ubuntu): | |
status: | Confirmed → Won't Fix |
Status changed to 'Confirmed' because the bug affects multiple users.