On Thu, 1 Jul 2004, Joerg Albert wrote: > Hi David and Alan, > > On Mon, 3 May 2004, Alan Stern wrote: > > > This patch imports the changes that David Brownell has made to the > > device-reset functions in his gadget-2.6 tree. Once these ongoing > > troubling questions about locking are settled, I'll add support for the > > "descriptors changed" case. > > thanks for the usb_reset_device() change in 2.6.7! > > I can call __usb_reset_device() in my probe, but as my DFU device (Atmel > AT76C503A) changes its _interface_ descriptors only, no re-enumeration is > triggered. I tried to trick it by > dev->udev->descriptor.bDeviceSubClass++; > __usb_reset_device(dev->udev); > which fails, too > (dev->udev->actconfig->interface[0]->altsetting[0].desc.bNumEndpoints==0 > after the reset). > > My current workaround until 2.6.6 was to call usb_reset_device in keventd > and retrieve and parse the interface descriptors myself afterwards. > > Is there any more reasonable way for this DFU device with 2.6.7 ?
Just last week I sent in a bunch of patches that make device resets work correctly in all circumstances. They haven't been accepted yet, and when they are it might not be in time for 2.6.8. But eventually they should get into the kernel. If you're interested in trying them out in the meantime, I can tell you what BK respository to start with and what patches to apply. If you want to stick with the standard kernels, then I don't think 2.6.7 is much more advanced than 2.6.6. Alan Stern ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel