Date: Mon, 7 Apr 2003 23:52:17 -0700 (PDT) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pccbb pccbb.c Message-ID: <200304080652.h386qHGc096277@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2003/04/07 23:52:17 PDT FreeBSD src repository Modified files: sys/dev/pccbb pccbb.c Log: MFp4: Massively unbreak module loading/unloading: o Only complain about detached children that aren't pccard/cardbus. o Don't NULL out the pccarddev and cbdev devices. detach just disassociates the device and driver. It doesn't delete the child. o on driver added, just probe_and_attach the children. If there's any children attached, wakeup the device add/delete thread. o wakeup the add/delete thread with the correct cv_signal() rather than the bogus wakeup(sc). It used to be that we did a tsleep on sc in this thread, but switched to the more reliable cv stuff a while ago w/o changing this. o Remove bogus checks when reallocating memory for the registers. They weren't needed and turned out to be completely bogus. This lets me load/unload pccard with a pccard in a slot and have the child correctly detach/attach. This should help people that have wi in their kernel, but that kldload cbb and pccard, for example. Revision Changes Path 1.66 +32 -62 src/sys/dev/pccbb/pccbb.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304080652.h386qHGc096277>