From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 15:22:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2D4116A4CE for ; Wed, 11 May 2005 15:22:08 +0000 (GMT) Received: from smtp.andrew.cmu.edu (smtp.andrew.cmu.edu [128.2.10.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B29D43D66 for ; Wed, 11 May 2005 15:22:08 +0000 (GMT) (envelope-from dga+@cs.cmu.edu) Received: from [192.168.15.50] (dsl093-060-134.pit1.dsl.speakeasy.net [66.93.60.134]) (user=dga2 mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.12.10/8.12.10) with ESMTP id j4BFM1hV008334 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Wed, 11 May 2005 11:22:03 -0400 In-Reply-To: <20050511.091734.90823828.imp@bsdimp.com> References: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> <200505111627.04961.hselasky@c2i.net> <20050511.091734.90823828.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Andersen Date: Wed, 11 May 2005 11:21:28 -0400 To: "M. Warner Losh" X-Mailer: Apple Mail (2.622) X-Mailman-Approved-At: Thu, 12 May 2005 12:05:28 +0000 cc: freebsd-hackers@FreeBSD.org cc: hselasky@c2i.net Subject: Re: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 15:22:09 -0000 On May 11, 2005, at 11:17 AM, M. Warner Losh wrote: > In message: <200505111627.04961.hselasky@c2i.net> > Hans Petter Selasky writes: > : On Wednesday 11 May 2005 09:59, David Andersen wrote: > : > I'm hacking up a quick and dirty driver for the AirPrime PC5220 > (EVDO / > : > 1xRTT) card, but I'm encountering a crash unrelated to my driver. > The > : > card is a pc card that presents itself as a USB hub with one device > : > hanging off of it. Removing the card from the system causes a > kernel > : > panic.: > > > : I think that the existing USB driver does not allow USB-controllers > to be > : detached. At least the root-hub does not allow this. And when they > try to > : detach, the devices are deleted twice (which is due to the fact that > the code > : was ported from NetBSD, which bus interface is a little different). > > Actually, -current has fixed both of these problems. At least that's > what my looking at the source shows in addition to being the one to > make the fixes... Ahh, great. Thank you - I should have mentioned that I was using -stable, but that was probably apparent if you fixed the problem already. Are these changes something I could backport easily, or do they depend on other -current changes? -Dave