Re: [Bisected] [Bug #13821] Replugging USB serial converter uses new device node

Alan Cox
2009-07-27T16:54:54Z

> > Another thing to check is whether this patch (not yet merged) fixes it:
> >
> > http://marc.info/?l=linux-usb&m=124825571403844&w=2
>
> No, unfortunately it does not fix it. I've just tested it.

I wouldn't expect it to.

In the ppp case you have this occuring on an unplug

USB layer
unplug
hangup tty
PPPD
SIGHUP
ouch
log stuff
close down

However at the same time that PPPD is logging stuff and closing down th
USB layer is going to see the replug if you just unplug/replug quickly
and in that case you will get ttyUSB1. That aspect is timing dependant.

If everything has closed down and given the port back before you replug
it you should get ttyUSB0 again.
#