Bug 445 - Remove the need for "rmmod usbtest"
Summary: Remove the need for "rmmod usbtest"
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: fx2lafw (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Soeren Apel
Depends on:
Reported: 2014-10-12 19:32 CEST by Uwe Hermann
Modified: 2015-07-10 18:20 CEST (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
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.