From owner-freebsd-mobile Wed Dec 1 16:46:58 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id 776541510C; Wed, 1 Dec 1999 16:46:56 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id QAA03272; Wed, 1 Dec 1999 16:44:49 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912020044.QAA03272@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: nate@mt.sri.com (Nate Williams) Cc: Mike Smith , Warner Losh , mobile@FreeBSD.ORG Subject: Re: cvs commit: src/sys/pccard pccard.c src/sys/isa sio.c src/sys/dev/ed if_ed_pccard.c src/sys/dev/ep if_ep_pccard.c In-reply-to: Your message of "Wed, 01 Dec 1999 13:28:12 MST." <199912012028.NAA01870@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Dec 1999 16:44:49 -0800 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > In the old old code this only > > worked because the pcic interrupt handler wasn't masked, so the detach > > routine could preempt the device interrupt handler and set the gone flag. > > Do you have a better solution than this? This was the 'most' correct > solution I could come up with. (I'd love to hear about a better > solution than this). I've already proposed it; a bus method that a child can use to verify via a hardware accessor in the parent bus that the hardware it "owns" is still physically present. > The only other solution I could envision was one involving re-writing > all of the drivers to modify them so they would have timeouts reading > hardware (difficult and time consuming), but this wouldn't work in > newbus due to softc going away. :( Again, the softc _can't_ go away until the driver lets it. The driver shouldn't let it until it's finished with it. End of story. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message