From owner-cvs-all Tue Dec 7 21:34:21 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6911A14BD4; Tue, 7 Dec 1999 21:34:18 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA37910; Tue, 7 Dec 1999 21:34:18 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Message-Id: <199912080534.VAA37910@freefall.freebsd.org> From: Bill Paul Date: Tue, 7 Dec 1999 21:34:18 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pccard pccard.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/12/07 21:34:18 PST Modified files: sys/pccard pccard.c Log: Fix alloc_driver() so that calls devclass_get_device() with slt->slotnum as the unit argument instead of 0. disable_slot() calls devclass_get_device() correctly, however because alloc_driver() does it wrong, disable_slot() is unable to locate the child devices attached to the pccard bus and thus fails to call device_delete_child() on them. The end result is that when a card is removed, its detach routine is never called, and re-insertion always fails. With this fix (and the previous one to if_wi.c), I can now insert, remove and re-insert my WaveLAN/IEEE card and things behave correctly. kldunloading the if_wi.ko module also seems to work properly now. Ok'ed by: imp Revision Changes Path 1.101 +2 -2 src/sys/pccard/pccard.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message