Date: Mon, 28 Sep 2009 07:01:54 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/usb usb_device.c usb_device.h usb_hub.c usb_transfer.c src/sys/dev/usb/controller usb_controller.c Message-ID: <200909280702.n8S72D6t033459@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
thompsa 2009-09-28 07:01:54 UTC
FreeBSD src repository
Modified files:
sys/dev/usb usb_device.c usb_device.h usb_hub.c
usb_transfer.c
sys/dev/usb/controller usb_controller.c
Log:
SVN rev 197553 on 2009-09-28 07:01:54Z by thompsa
MFp4 @ 168387
- clean up USB detach logic. There seems to be some problems detaching multiple
USB HUBs connected in series from the root.
- after this patch the rule is:
1) Always use device_detach() on the USB HUB first.
2) Never just device_delete_child() on the USB HUB, because that function
will traverse to all the device leaves and free them first, and then the USB
stack will free the devices twice which doesn't work very well.
- make sure the did DMA delay gets set after the timeout has elapsed to make
logic more clear. There is no functional difference.
Submitted by: Hans Petter Selasky
Revision Changes Path
1.25 +2 -4 src/sys/dev/usb/controller/usb_controller.c
1.46 +13 -17 src/sys/dev/usb/usb_device.c
1.29 +0 -1 src/sys/dev/usb/usb_device.h
1.31 +41 -22 src/sys/dev/usb/usb_hub.c
1.30 +3 -3 src/sys/dev/usb/usb_transfer.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909280702.n8S72D6t033459>
