On Friday, 3. June 2011 13:45:11 Michael Plante wrote: > libftdi detaches ftdi_sio so it can use libusb which uses usbfs. > ftdi_usb_open_dev() calls libusb_detach_kernel_driver() in libftdi-1 and > usb_detach_kernel_driver_np() in libftdi-0. Maybe the corresponding > reattach call will help at the end of your program, after you close the > device. Alternatively, I think there might be something you can do from > the shell in /proc or /sys or something if you don't want to modify your > code or if it crashes before it can clean up, but I don't remember what. > ftdi_sio is responsible for /dev/ttyUSB* on ftdi devices.
Maybe Thomas Klose's new AUTO_DETACH_SIO_MODULE feature might be of help here. I just forward-ported it to libftdi 1.x, so it's now part of both libftdi git trees. Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
