> i checked -- usb_detach_kernel_driver_np() is failing with errno 61
> (ENODATA)
Looking at the kernel source:
/* disconnect kernel driver from interface */
case USBDEVFS_DISCONNECT:
if (intf->dev.driver) {
driver = to_usb_driver(intf->dev.driver);
dev_dbg(&intf->dev, "disconnect by usbfs\n");
usb_driver_release_interface(driver, intf);
} else
retval = -ENODATA;
break;
That just means you didn't have a kernel driver bound to that device
anyway.
> and dmesg reports
> "usbfs: process 9346 (flashrom) did not claim interface 1 before
> use"
Is the usb_claim_interface returning nonzero? Which interface is
libftdi trying to claim?
> (looking at the ftdi.c source, it does look like the detach is
> attempted before the claim. but i don't know if that's right or
> wrong.)
It's right, check libusb docs for usb_detach_kernel_driver_np
-jim
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|