On Sat, Nov 14, 2009 at 1:43 PM, Xiaofan Chen wrote: > Try to add usb_reset_device(devh) before exiting. If it > does not help, I am sure you will get better advice in the libusb > mailing list. Often, they will ask you to use usbmon to see what > really happens. Alan Stern is on the libusb mailing list and he > is one of the main contributor to the Linux USB subsystem. > > If usb_reset_device(devh) helps, this may well point to a > potential firmware bug. > It should be usb_reset() for libusb 0.1. For libusb 1.0, it is libusb_reset_device(). http://libusb.sourceforge.net/doc/ref.deviceops.html http://libusb.sourceforge.net/api-1.0/group__dev.html -- Xiaofan http://mcuee.blogspot.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist