From owner-freebsd-mobile Tue Oct 30 9:49:51 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from moek.pir.net (moek.pir.net [130.64.1.215]) by hub.freebsd.org (Postfix) with ESMTP id 28D3237B401 for ; Tue, 30 Oct 2001 09:49:47 -0800 (PST) Received: from pir by moek.pir.net with local (Exim) id 15yd1G-00076H-00 for freebsd-mobile@freebsd.org; Tue, 30 Oct 2001 12:49:46 -0500 Date: Tue, 30 Oct 2001 12:49:46 -0500 From: Peter Radcliffe To: freebsd-mobile@freebsd.org Subject: Re: Installing 4.4 on sony vaio c1ve from pcga-cd51 cdrom Message-ID: <20011030124945.A26935@pir.net> Reply-To: freebsd-mobile@freebsd.org Mail-Followup-To: freebsd-mobile@freebsd.org References: <20011030011041.B10134@pir.net> <200110301734.aa87376@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110301734.aa87376@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Tue, Oct 30, 2001 at 05:34:35PM +0000 X-fish: < X-Copy-On-Listmail: Please do NOT Cc: me on list mail. Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ian Dowse probably said: > /* > * XXX We unwisely assume that the detach code won't run while the > * XXX the attach code is attaching. Someone should put some > * XXX interlock code. This can happen if probe/attach takes a while > * XXX and the user ejects the card, which causes the detach > * XXX function to be called. > */ > strncpy(desc->name, device_get_nameunit(child), sizeof(desc->name)); Ah, so then I'd guess that this is a side effect from me removing the card while it was twiddling it's irqs and not the root cause of the problem. This problem has left me without a working cdrom drive for my laptop, though, which is somewhat problematic when I'm travelling :/ > I guess allocate_driver() could call device_get_children on > 'pccarddev' and check if 'child' is among the list. That would > cover most cases of the device going away during the call to > device_probe_and_attach(). *nod* P. -- pir pir-sig@pir.net pir-sig@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message