USB - Clean up address setting and softc allocations
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 16:30:27 +0000 (09:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 16:30:27 +0000 (09:30 -0700)
commit76ad0d7d4cc32ebafcc8d1ada4df6c662c1feaf1
tree906b24f5a167d7bcdb664a5c0976fd8188251ad0
parent7728b40a01dd76863722a443387f4ab5e30b4f2f
USB - Clean up address setting and softc allocations

* Zero out the softc structure being allocated for ehci and ohci.

* When establishing a new connection and allocating an address for
  further communications, disconnect and reconnect the default pipe
  instead of just ripping up the underlying address.

Research-done-by: Rumko <rumcic@gmail.com>
Partially-taken-from: FreeBSD
sys/bus/usb/ohci.c
sys/bus/usb/uhub.c
sys/bus/usb/usb.c
sys/bus/usb/usb_subr.c