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

From: Alan Cox
Date: Mon Jul 27 2009 - 12:55:00 EST


> > 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.
#
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/