Date: Tue, 18 Sep 2012 20:45:12 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Hans Petter Selasky <hselasky@c2i.net> Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-9@freebsd.org Subject: Re: svn commit: r240659 - in stable/9/sys: dev/usb/net dev/usb/serial kern sys Message-ID: <20120918174512.GL37286@deviant.kiev.zoral.com.ua> In-Reply-To: <201209181938.59008.hselasky@c2i.net> References: <201209181628.q8IGSoOF024628@svn.freebsd.org> <20120918172705.GK37286@deviant.kiev.zoral.com.ua> <201209181938.59008.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--KasUm1oH6X2AfSvU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > > >=20 > > > Log: > > > MFC r239178, r239179, r239180, r239181, r239182 and r239299: > > > =20 > > > 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. > > > =20 > > > This change is backwards API compatible, but not binary > > > compatible. The FreeBSD version has been bumped to force > > > a recompile of all kernel modules. > >=20 > > 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. > >=20 > > And, the big question that still applies, is why UPSes are lost from the > > USB bus ? >=20 > Hi, >=20 > Loss of VBUS (+5) and overcurrent are some natural reasons a device can= =20 > suddenly disconnect. >=20 > Do you have a bad/loose connector? I doubt it. The device reattaches momentarily after the loss. >=20 > 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. >=20 > Many serial applications fail to exit when reading from a serial device f= ails. This is apcupsd. --KasUm1oH6X2AfSvU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBYsygACgkQC3+MBN1Mb4jAcQCg4oGFoGe1qUBqt/ASvLovQwlU EDQAn1/yVUucnO4WA22HDOS9uzn/HsyA =E29A -----END PGP SIGNATURE----- --KasUm1oH6X2AfSvU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120918174512.GL37286>