cvs commit: src/sys/dev/pccbb pccbb.c

Warner Losh imp at FreeBSD.org
Mon Apr 7 23:52:18 PDT 2003


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


More information about the cvs-src mailing list