From owner-svn-src-stable-9@FreeBSD.ORG Tue Sep 18 17:37:49 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7D1821065686; Tue, 18 Sep 2012 17:37:49 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 84C018FC17; Tue, 18 Sep 2012 17:37:47 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 320548105; Tue, 18 Sep 2012 19:37:46 +0200 From: Hans Petter Selasky To: Konstantin Belousov Date: Tue, 18 Sep 2012 19:38:58 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201209181628.q8IGSoOF024628@svn.freebsd.org> <20120918172705.GK37286@deviant.kiev.zoral.com.ua> In-Reply-To: <20120918172705.GK37286@deviant.kiev.zoral.com.ua> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201209181938.59008.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 X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 17:37:49 -0000 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