From: libusb T. <tr...@li...> - 2011-01-18 17:15:11
|
#86: [PATCH] reduce log spew on certain darwin configurations ---------------------------------------------------------------------------------------+ Reporter: www.google.com/accounts/o8/id?id=aitoawmz93igogrpknbehv21jdxrf37ft8ksncg | Owner: Type: enhancement | Status: new Component: libusb-1.0 | Resolution: Keywords: | Blocks: Blocked By: | ---------------------------------------------------------------------------------------+ Comment (by hjelmn): The patch needs some tweeks/more info: - A USB device does not need to be opened to get the device descriptor unless it needs to be unsuspended first. In most (all?) cases IOKit returns a cached copy of the descriptor when DeviceRequest is called with with the kUSBRqGetDescriptor request. - Please do not use c++ style // comments. These should be changed to the ANSI C /* */ style. - Is there an actual scenario where DeviceRequest returns kIOReturnNotResponding when using kUSBRqGetDescriptor (I haven't seen this)? As mentioned above, IOKit does not actually issue a request to the device so this return code should not be seen in this case. -- Ticket URL: <http://libusb.org/ticket/86#comment:2> libusb <http://libusb.org/> C library for writing portable USB drivers in userspace |