> > I will ask again in the libusb mailing list.
> 
> Here is the answer from Alan Stern (Linux USB kernel 
> developer) in the libusb mailing list.
> http://article.gmane.org/gmane.comp.lib.libusb.devel.general/6569
> "If the reset causes the device to disconnect and reconnect 
> or change its descriptors, then yes -- the device list will 
> have changed and consequently libusb will need to rescan the 
> set of devices to find the new one.  If the reset doesn't 
> cause such drastic changes then the list of devices won't 
> change and usb_init() won't be needed.  But you'll still have 
> reopen the device handle, since the reset will invalidate the 
> old handle."
> 
> I think my suggestion is safer.
> 

Again i disagree, as the rescan is not done by usb_reset - it is done by
usb_find_busses();
usb_find_devices();

If you look at the source for either win32/linux you can see this.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to