From owner-svn-src-all@FreeBSD.ORG Tue Sep 18 17:45:20 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A478106566B; Tue, 18 Sep 2012 17:45:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id D3F038FC08; Tue, 18 Sep 2012 17:45:19 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q8IHjO4H034061; Tue, 18 Sep 2012 20:45:24 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q8IHjCNX036459; Tue, 18 Sep 2012 20:45:12 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q8IHjCU0036458; Tue, 18 Sep 2012 20:45:12 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 18 Sep 2012 20:45:12 +0300 From: Konstantin Belousov To: Hans Petter Selasky Message-ID: <20120918174512.GL37286@deviant.kiev.zoral.com.ua> References: <201209181628.q8IGSoOF024628@svn.freebsd.org> <20120918172705.GK37286@deviant.kiev.zoral.com.ua> <201209181938.59008.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KasUm1oH6X2AfSvU" Content-Disposition: inline In-Reply-To: <201209181938.59008.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua 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 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 17:45:20 -0000 --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--