From owner-freebsd-current Tue Dec 7 7: 7: 3 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 9050D14BE7 for ; Tue, 7 Dec 1999 07:06:59 -0800 (PST) (envelope-from hibma@skylink.it) Received: from skylink.it (va-162.skylink.it [194.185.55.162]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id QAA10197; Tue, 7 Dec 1999 16:06:49 +0100 Received: from localhost (localhost [127.0.0.1]) by skylink.it (8.9.3/8.9.3) with ESMTP id OAA00467; Tue, 7 Dec 1999 14:20:16 +0100 (CET) (envelope-from hibma@skylink.it) Date: Tue, 7 Dec 1999 14:20:16 +0100 (CET) From: Nick Hibma X-Sender: n_hibma@henny.jrc.it Reply-To: Nick Hibma To: Warner Losh Cc: FreeBSD CURRENT Mailing List Subject: ed driver, resources not released (was: Re: PCCARD eject freeze) In-Reply-To: <199912010755.AAA00462@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I've cleaned this up, worked it around, and managed to insert and > eject my ep card 5 times in a row on my desktop kludge environment. > It even appeared to be working. Don't know if this will work on a Hm, The machine is not crashing at the moment when unplugging the device. But plugging it back in gives me a 'No free configuration for card Ethernet' ('Ethernet' being the quite splendid name of the card in the CIS). A quick browse reveals the following difference between ep and ed. It doesn't have any effect however. Let me know if I can test anything. I'd like to get that working, but don't have the time to dig into this (utun driver is more important :) Nick Index: if_ed_pccard.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ed/if_ed_pccard.c,v retrieving revision 1.6 diff -u -w -r1.6 if_ed_pccard.c --- if_ed_pccard.c 1999/11/20 05:16:13 1.6 +++ if_ed_pccard.c 1999/12/03 22:04:06 @@ -91,6 +91,7 @@ ifp->if_flags &= ~IFF_RUNNING; if_down(ifp); bus_teardown_intr(dev, sc->irq_res, &sc->irq_handle); + ed_release_resources(dev); sc->gone = 1; device_printf(dev, "unload\n"); } Nick -- hibma@skylink.it n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message