Date: Tue, 7 Dec 1999 21:34:18 -0800 (PST) From: Bill Paul <wpaul@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pccard pccard.c Message-ID: <199912080534.VAA37910@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912080534.VAA37910>