From owner-freebsd-current Tue Nov 30 23:55:32 1999 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 9CC3814F65; Tue, 30 Nov 1999 23:55:25 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id AAA12110; Wed, 1 Dec 1999 00:55:24 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id AAA00462; Wed, 1 Dec 1999 00:55:24 -0700 (MST) Message-Id: <199912010755.AAA00462@harmony.village.org> To: Christopher Masto Subject: Re: PCCARD eject freeze (was Re: your mail) Cc: Nick Hibma , Mike Smith , FreeBSD CURRENT Mailing List In-reply-to: Your message of "Tue, 30 Nov 1999 21:35:32 EST." <19991130213532.A2764@netmonger.net> References: <19991130213532.A2764@netmonger.net> <19991130160829.A13848@netmonger.net> <199911302112.OAA05264@harmony.village.org> <19991130165407.A467@netmonger.net> <199911302159.OAA05508@harmony.village.org> <19991130173920.A22943@netmonger.net> <199911302304.QAA05780@harmony.village.org> <19991130181313.B24151@netmonger.net> <199911302319.QAA05945@harmony.village.org> <19991130182738.A25453@netmonger.net> <199911302352.QAA06230@harmony.village.org> Date: Wed, 01 Dec 1999 00:55:24 -0700 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19991130213532.A2764@netmonger.net> Christopher Masto writes: : Well, here's all I've got. It's basically just a sloppy version of : what you suggested. 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 real laptop, but it is better than nothing. I specifically didn't set the suspend/resume code, and it is a different code path. I suspect to still see some hangs, but in the 1-2% range not the 100+% range on suspend due to the racing nature of things. I found another problem with the ep/ed driver's detach routines. They called if_down rather than if_detach. This left them in the list of interfaces, but they were really really gone for good at this point, so when the automatic ifconfig that I have on my machine ran, it paniced the system. I've not tried to fix the sc->gone functionality in the drivers that need it. Nor have I tested anything except the pccard ep driver. I'm too tired for that, and I hope I haven't made anything worse. I've committed these changes to -current for your enjoyment. Please let me know if you have problems with them on real hardware. Warner "Pining for the Fjords[*]" Losh [*] This norse word is pronounced "Sony VAIO" around here :-( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message