git: USB - Clean up address setting and softc allocations
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Aug 10 09:33:29 PDT 2009
commit 76ad0d7d4cc32ebafcc8d1ada4df6c662c1feaf1
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Aug 10 09:30:27 2009 -0700
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 at gmail.com>
Partially-taken-from: FreeBSD
Summary of changes:
sys/bus/usb/ohci.c | 27 +++++++++++++++++++++++----
sys/bus/usb/uhub.c | 2 +-
sys/bus/usb/usb.c | 3 +--
sys/bus/usb/usb_subr.c | 19 +++++++++++++++++--
4 files changed, 42 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/76ad0d7d4cc32ebafcc8d1ada4df6c662c1feaf1
--
DragonFly BSD source repository
More information about the Commits
mailing list