Bug 242131

Summary: libusb_set_auto_detach_kernel_driver(3) causes libusb_claim_interface(3) to fail
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
usb.cpp none

Description Yuri Victorovich freebsd_committer 2019-11-21 06:41:07 UTC
Created attachment 209310 [details]
usb.cpp

The attached usb.cpp fails (when the supported device is present) at libusb_claim_interface when libusb_set_auto_detach_kernel_driver is called before it.

Removing libusb_set_auto_detach_kernel_driver makes libusb_claim_interface to succeed.

I had to patch the port misc/openhantek with the workaround for this issue in order to make it to work.