[Ftdi-usb-sio-devel] usb_detatch_kernel_driver
Brought to you by:
bryder
From: T. H. <ts...@mr...> - 2009-11-02 14:01:54
|
Hi, I've just started with libftdi, and am getting an error during ftdi_open_usb_dev when it tries to detatch any existing ftdi_sio module, when running as a non-root user. Everything works OK when I run as root. Presuming that a user-mode prog wasnt able to do the usb_detach_kernel_driver_np, I did 'rmmod ftdi_sio', and commented out the 'usb_detach_kernel_driver_np' line in the library, but I now get a -3 error at the 'usb_set_configuration' step, unless I run as root. What permissions do I need to set on what files to be able to do things as a non-root user? Many thanks, Terry |