Date: Tue, 30 Oct 2001 12:49:46 -0500 From: Peter Radcliffe <pir@pir.net> To: freebsd-mobile@freebsd.org Subject: Re: Installing 4.4 on sony vaio c1ve from pcga-cd51 cdrom Message-ID: <20011030124945.A26935@pir.net> In-Reply-To: <200110301734.aa87376@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Tue, Oct 30, 2001 at 05:34:35PM %2B0000 References: <20011030011041.B10134@pir.net> <200110301734.aa87376@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
Ian Dowse <iedowse@maths.tcd.ie> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011030124945.A26935>