From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 05:15:45 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DD0437B401; Thu, 12 Jun 2003 05:15:44 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A36943F93; Thu, 12 Jun 2003 05:15:43 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h5CCFVHq097952 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 12 Jun 2003 14:15:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h5CCFQIf073420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Jun 2003 14:15:26 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h5CCFP9F038029; Thu, 12 Jun 2003 14:15:25 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h5CCFFOX038028; Thu, 12 Jun 2003 14:15:15 +0200 (CEST) Date: Thu, 12 Jun 2003 14:15:15 +0200 From: Bernd Walter To: Craig Boston Message-ID: <20030612121514.GD26807@cicely12.cicely.de> References: <1055260269.91337.127.camel@owen1492.uf.corelab.com> <20030611224538.GB10822@genius.tao.org.uk> <20030612002139.GT26807@cicely12.cicely.de> <200306112247.01397.craig@xfoil.gank.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306112247.01397.craig@xfoil.gank.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-RELEASE alpha User-Agent: Mutt/1.5.4i cc: Bernd Walter cc: Josef Karthauser cc: ticso@cicely.de cc: current@FreeBSD.org Subject: Re: CardBus USB 2.0 Controller (NEC uPD) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 12:15:45 -0000 On Wed, Jun 11, 2003 at 10:47:01PM -0500, Craig Boston wrote: > On Wednesday 11 June 2003 07:21 pm, Bernd Walter wrote: > > On Wed, Jun 11, 2003 at 11:45:38PM +0100, Josef Karthauser wrote: > > > The detach code could be made to work fairly easily. It's mostly there > > > I believe, but disabled. Nick couldn't convince himself that all the > > > used memory was being returned if the device is suddently unloaded. You > > > could suck it and see. > > > > I'm not shure if the code would work, but it was also ported into ehci > > and therefor ehci should be in a similar state. > > Well loosing memory is better than panic. > > I have no cardbus - can this be tested with a module? > > I'd be more than happy to give it a shot on my now-working cardbus card and > see what happens. > > It is as simple as adding > DEVMETHOD(device_detach, ohci_pci_detach) > to the device_method_t ? Yes + the same for ehci. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de