libftdi Archives

Subject: Kernel driver auto attach/detach

From: Robby McKilliam <robby.mckilliam@xxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 15 Dec 2017 15:22:28 +1030
I've used libusb's libusb_set_auto_detach_kernel_driver  


to automatically detach and attach the kernel driver. 

Patch here 


This should leave the driver unattached (same behaviour as before) in the case that the host does not support auto attaching/detaching.

Tested on linux (Ubuntu 16.04 and Raspbian Stretch) with an FT230X. On OSX it still appears to be necessary to unload the kernels FTDI drivers as described here


Cheers,
Robby
Dr Robby McKilliam
Senior Communications Engineer
Myriota Pty Ltd 
25 Chesser St 
Adelaide, SA, 5000 
robby.mckilliam@xxxxxxxxxxx 
myriota.com
F T L
MYRIOTA         
   


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread