On Wed, Oct 6, 2010 at 4:15 PM, Thomas Klose <[email protected]> wrote: >> I just sent a patch to libusb-devel, that checks in >> libusb_kernel_driver_active() for itself ("usbfs") and returns another >> value, so that above libftdi patch works as expected.
For reference: thread is here. http://libusb.6.n5.nabble.com/Patch-libusb-os-linux-usbfs-c-Distingush-between-usbfs-and-other-kernel-mode-drivers-td3199947.html > If this works as expected, it would solve my problem since no driver is > loaded for our device to begin with. > > However, if this must be the default way to open a ftdi device which is > already attached to a driver, would you consider to re-attach the driver > if the device is closed? I think libusb_attach_kernel_driver() can do > that. This would leave the system in the original state at least. I tend to think it is better to leave for the user to decide to re-attach the kernel driver or not. Some user may really not want to use the original sio driver. -- Xiaofan -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
