On Tue, May 18, 2010 at 10:08 PM, Uwe Bonnes <[email protected]> wrote: > > Xiaofan> As mentioned before, libftdi-1.0 should not return error if the > Xiaofan> detach_errorno is LIBUSB_NOT_FOUND (Linux, kernel driver > Xiaofan> already detached) or LIBUSB_NOT_SUPPORTED (Windows and Mac OS > Xiaofan> X/Darwin). > > > Argh, I mistook the return value form libusb and errno. > > What about the patch below? > > Only if the errno from the libusb_detach_kernel_driver() call is EPERM, the > code path is changed. >
Looks about right. However, I am not so sure if EPERM is now a valid return error number in libusb-1.0. http://libusb.sourceforge.net/api-1.0/group__dev.html#ga0bc7a17090debf6d2b2711c505ad9725 -- Xiaofan http://mcuee.blogspot.com -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
