svn commit: r240659 - in stable/9/sys: dev/usb/net dev/usb/serial kern sys

Hans Petter Selasky hselasky at c2i.net
Tue Sep 18 17:37:49 UTC 2012


On Tuesday 18 September 2012 19:27:05 Konstantin Belousov wrote:
> On Tue, Sep 18, 2012 at 04:28:50PM +0000, Hans Petter Selasky wrote:
> > Author: hselasky
> > Date: Tue Sep 18 16:28:49 2012
> > New Revision: 240659
> > URL: http://svn.freebsd.org/changeset/base/240659
> > 
> > Log:
> >   MFC r239178, r239179, r239180, r239181, r239182 and r239299:
> >   
> >   Fix detach of USB serial devices so that it doesn't block
> >   the USB explore thread forever. To accomplish this two new
> >   functions have been added to the kernel, to claim and free
> >   the newbus allocated softc.
> >   
> >   This change is backwards API compatible, but not binary
> >   compatible. The FreeBSD version has been bumped to force
> >   a recompile of all kernel modules.
> 
> Thank you, I run with this change since it was committed to head, and
> the only issue left is that the same serial adapter reappears under the
> different cuaUNN name after the glitch. This causes apcupsd to not able
> to reconnect.
> 
> And, the big question that still applies, is why UPSes are lost from the
> USB bus ?

Hi,

Loss of VBUS (+5) and overcurrent are some natural reasons a device can 
suddenly disconnect.

Do you have a bad/loose connector?

Other reasons: Device firmware has restarted.

Many serial applications fail to exit when reading from a serial device fails.

--HPS


More information about the svn-src-all mailing list