libftdi Archives

Subject: Re: Claiming devices has no effect under Linux

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 6 Oct 2010 16:31:28 +0800
On Wed, Oct 6, 2010 at 4:30 PM, Thomas Klose <thomas.klose@xxxxxxxxxxxxx> wrote:
> Am Mittwoch, den 06.10.2010, 16:21 +0800 schrieb Xiaofan Chen:
>> 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.
>
> But is is not libftdi's place to solve this kind of problem. That is
> what the module loading mechanism with modprobe, /etc/modprobe.d, et
> cetera is for.
>
> If I call a library function like ftdi_usb_open(), I would never expect
> it to change my global system configuration. This is just not the Linux
> way to do things.
>

Sorry but this is the way how libusb works. I do not under why you say
this is not the Linux way to do things. If you use libusb, you have
to detach the kernel driver.

-- 
Xiaofan

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

Current Thread