Andrew Morton wrote: > (cc linux-usb) > > On Sat, 18 Jul 2009 22:04:57 +0200 Ferenc Wagner <wferi@xxxxxxx> wrote: > >> Hi, >> >> Since upgrading to 2.6.31-rc3 from 2.6.30, my ttyUSB device number >> keeps increasing on each replug. Output of udevadm monitor: >> >> ==poff== >> UEVENT[1247946169.580772] remove /devices/virtual/net/ppp0 (net) >> UDEV [1247946169.589775] remove /devices/virtual/net/ppp0 (net) >> ==unplug== >> UEVENT[1247946186.700698] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB2/tty/ttyUSB2 (tty) >> UEVENT[1247946186.700737] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB2 (usb-serial) >> UEVENT[1247946186.700749] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0 (usb) >> UEVENT[1247946186.700760] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/usb_device/usbdev3.6 (usb_device) >> UEVENT[1247946186.700771] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1 (usb) >> UDEV [1247946186.701535] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB2/tty/ttyUSB2 (tty) >> UDEV [1247946186.705822] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB2 (usb-serial) >> UDEV [1247946186.711662] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0 (usb) >> UDEV [1247946186.715237] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1/usb_device/usbdev3.6 (usb_device) >> UDEV [1247946186.718872] remove /devices/pci0000:00/0000:00:1d.1/usb3/3-1 (usb) >> ==replug== >> UEVENT[1247946199.654628] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1 (usb) >> UDEV [1247946199.660946] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1 (usb) >> UEVENT[1247946199.661096] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0 (usb) >> UEVENT[1247946199.688206] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB3 (usb-serial) >> UEVENT[1247946199.688254] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB3/tty/ttyUSB3 (tty) >> UEVENT[1247946199.688266] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/usb_device/usbdev3.7 (usb_device) >> UDEV [1247946199.710642] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0 (usb) >> UDEV [1247946199.713898] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB3 (usb-serial) >> UDEV [1247946199.729618] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/usb_device/usbdev3.7 (usb_device) >> UDEV [1247946199.739566] add /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/ttyUSB3/tty/ttyUSB3 (tty) >> ==pon== >> UEVENT[1247946268.571857] add /devices/virtual/net/ppp0 (net) >> UDEV [1247946268.593127] add /devices/virtual/net/ppp0 (net) >> >> Dmesg is available at http://pastebin.com/d516e3e00. > > Can anyone say whether this is expected behaviour? > > Does it actually cause any observeable problems? I expect things will > get ugly once it runs out of range. > The problem may go beyond usb devices as I have had to edit out excess CD/DVD devices in /etc/udev/rules.d/70-persistent-cd.rules. 1. Original DVD failed. 2. Used a USB attached DVD. 3. Installed a new DVD. The result was that the last device /dev/cdrom3, /dev/dvd3, etc. were the current device nodes. A udev problem perhaps? # Freecom_Optical_Disc_Drive (pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0) ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Freecom_Freecom_Optical_Disc_Drive_0210ABE1", SYMLINK+="cdrom", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Freecom_Freecom_Optical_Disc_Drive_0210ABE1", SYMLINK+="cdrw", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Freecom_Freecom_Optical_Disc_Drive_0210ABE1", SYMLINK+="dvd", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Freecom_Freecom_Optical_Disc_Drive_0210ABE1", SYMLINK+="dvdrw", ENV{GENERATED}="1" # Freecom_Optical_Disc_Drive (pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0) ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1" # DVD+_-RW20J9 (pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0) ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="FREECOM__DVD+_-RW20J9_0210ABE1-0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="FREECOM__DVD+_-RW20J9_0210ABE1-0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="FREECOM__DVD+_-RW20J9_0210ABE1-0:0", SYMLINK+="dvd1", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="FREECOM__DVD+_-RW20J9_0210ABE1-0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1" # DVD+_-RW20J9 (pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0) ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="cdrom2", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="cdrw2", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="dvd2", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:04.1-usb-0:1:1.0-scsi-0:0:0:0", SYMLINK+="dvdrw2", ENV{GENERATED}="1" # DVD_RW_AD-5170A (pci-0000:00:06.0-scsi-0:0:0:0) ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0", SYMLINK+="cdrom3", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0", SYMLINK+="cdrw3", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0", SYMLINK+="dvd3", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0", SYMLINK+="dvdrw3", ENV{GENERATED}="1" Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html