Resetting USB modems and USB to serial converters increases ttyUSBXX counter

2015-10-20 Thread Erwin Van de Velde
Hi all, Due to some hardware issues, I have to reset USB modems and a USB to serial converter on some of my servers. What I noticed is that /dev/ttyUSBXX devices are never reused: ttyUSB1 becomes ttyUSB3 e.g. and so on. This looks fine, but we have to do it rather often, so after a while we reach

Re: Resetting USB modems and USB to serial converters increases ttyUSBXX counter

2015-10-21 Thread Erwin Van de Velde
Hi all, As advised, I retried with a more recent kernel (4.2.0), but I get a similar result: I tested via 'echo 1 > /sys/bus/pci/ehci-pci/\:00\:1a.0/remove' and 'echo 1 > /sys/bus/pci/rescan'. There are two possible results: no errors when removing the device and then the devices are reinsert

Re: Resetting USB modems and USB to serial converters increases ttyUSBXX counter

2015-10-22 Thread Erwin Van de Velde
PM, Greg K-H wrote: > On Wed, Oct 21, 2015 at 11:39:04AM +0200, Erwin Van de Velde wrote: >> Hi all, >> >> As advised, I retried with a more recent kernel (4.2.0), but I get a >> similar result: >> >> I tested via 'echo 1 > /sys/bus/pci/ehci-pci/\

Re: Resetting USB modems and USB to serial converters increases ttyUSBXX counter

2015-10-23 Thread Erwin Van de Velde
Hi all, Thanks a lot for all your advice, I can confirm that modemmanager 1.4.2 fixes the issue. You saved my week! :-) Kind regards, Erwin On Thu, Oct 22, 2015 at 9:13 PM, Bjørn Mork wrote: > Dan Williams writes: >> On Thu, 2015-10-22 at 10:39 +0200, Erwin Van de Velde wrote: &