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

Konstantin Belousov kostikbel at gmail.com
Tue Sep 18 17:45:20 UTC 2012


On Tue, Sep 18, 2012 at 07:38:58PM +0200, Hans Petter Selasky wrote:
> 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?
I doubt it. The device reattaches momentarily after the loss.

> 
> Other reasons: Device firmware has restarted.
Both 'devices' are APC UPSes, one is attached through the USB/serial cable
driven by uplcom, another one (attached to different machine, with different
chipset) is seen as gen device.

I hear the relay clicks synchronous with the kernel reporting device lost.

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

This is apcupsd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120918/dff9b44f/attachment.pgp


More information about the svn-src-all mailing list