summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_device.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-09-28 07:01:54 +0000
committerthompsa <thompsa@FreeBSD.org>2009-09-28 07:01:54 +0000
commitd0aa741310827933f03f54a327c7943ac8bab8e1 (patch)
tree37f27b26a180d3ca763d43c1482ba0f009e8cf51 /sys/dev/usb/usb_device.h
parentd2f83e3acde61a67c746b7a212a0ee867691028d (diff)
downloadFreeBSD-src-d0aa741310827933f03f54a327c7943ac8bab8e1.zip
FreeBSD-src-d0aa741310827933f03f54a327c7943ac8bab8e1.tar.gz
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
Diffstat (limited to 'sys/dev/usb/usb_device.h')
-rw-r--r--sys/dev/usb/usb_device.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.h b/sys/dev/usb/usb_device.h
index 682e200..66f975a 100644
--- a/sys/dev/usb/usb_device.h
+++ b/sys/dev/usb/usb_device.h
@@ -41,7 +41,6 @@ struct usb_device; /* linux compat */
/* "usb_unconfigure()" flags */
#define USB_UNCFG_FLAG_NONE 0x00
-#define USB_UNCFG_FLAG_FREE_SUBDEV 0x01 /* subdevices are freed */
#define USB_UNCFG_FLAG_FREE_EP0 0x02 /* endpoint zero is freed */
struct usb_clear_stall_msg {
OpenPOWER on IntegriCloud