Bug 445

Summary: Remove the need for "rmmod usbtest"
Product: libsigrok Reporter: Uwe Hermann <uwe>
Component: Driver: fx2lafwAssignee: Soeren Apel <soeren>
Severity: normal CC: soeren
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Uwe Hermann 2014-10-12 19:32:09 CEST
FX2 based devices supported by fx2lafw that have the standard Cypress VID/PID will be grabbed by the "usbtest" Linux kernel driver per default on most systems.

Currently users have to "rmmod usbtest" before they can use fx2lafw, and/or they have to manually blacklist the driver, which is quite cumbersome.

Using libusb_detach_kernel_driver() like we already do in other drivers should remove the need for these manual fixes and make the life of users a lot simpler.
Comment 2 Uwe Hermann 2015-07-10 18:20:55 CEST
Thanks, merged in 39e4517759d391e5572e81d9796d4d8c6892d25e, with a follow-up fix to prevent a segfault though.

Tested on two devices here, works fine now.