Bug 242131 - libusb_set_auto_detach_kernel_driver(3) causes libusb_claim_interface(3) to fail
Summary: libusb_set_auto_detach_kernel_driver(3) causes libusb_claim_interface(3) to fail
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-21 06:41 UTC by Yuri Victorovich
Modified: 2019-11-21 07:30 UTC (History)
0 users

See Also:


Attachments
usb.cpp (1.10 KB, text/plain)
2019-11-21 06:41 UTC, Yuri Victorovich
no flags Details

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