From d0aa741310827933f03f54a327c7943ac8bab8e1 Mon Sep 17 00:00:00 2001 From: thompsa Date: Mon, 28 Sep 2009 07:01:54 +0000 Subject: 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 --- sys/dev/usb/usb_device.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/dev/usb/usb_device.h') 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 { -- cgit v1.1