cvs commit: src/sys/dev/usb usb_port.h

Warner Losh imp at FreeBSD.org
Tue Sep 21 23:02:11 PDT 2004


imp         2004-09-22 06:02:10 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          usb_port.h 
  Log:
  Add a temporary workaround to the panic on boot with hub attached and
  panic on hub detach bugs that have been reported.  This work around
  detaches the device before deleting it.  This changes the detach order
  from in-order to pre-order.  This avoids uhub's deleting the children
  after its subdevs has been deleted.
  
  This is only a workaround.  This leads to a strange condition in the
  device tree where attached devices are children of detached ones.  I
  really don't know what that's supposed to mean, but does violate my
  sense of POLA.  Fortunately, the violation is short lived, which is
  why I'm going ahead and committing the work around.
  
  # We really need to consider life w/o the multiple nested layers of
  # compatibility macros.  They make finding bugs like this *MUCH*
  # harder.
  
  Patch by: iadowse
  
  MT5 before: next_release(5.3-BETA5) (unless someting better comes along)
  
  Revision  Changes    Path
  1.68      +1 -0      src/sys/dev/usb/usb_port.h


More information about the cvs-src mailing list