sys_usbd: Don't detach kernel drivers from santroller devices

This commit is contained in:
Sanjay Govind 2025-01-29 13:45:13 +13:00
parent 665bb83297
commit a4a45f0338

View file

@ -386,10 +386,6 @@ void usb_handler_thread::perform_scan()
libusb_device_handle* lusb_handle;
if (libusb_open(dev, &lusb_handle) == LIBUSB_SUCCESS)
{
#ifdef __linux__
libusb_set_auto_detach_kernel_driver(lusb_handle, true);
libusb_claim_interface(lusb_handle, 2);
#endif
libusb_control_transfer(lusb_handle, +LIBUSB_ENDPOINT_IN | +LIBUSB_REQUEST_TYPE_CLASS | +LIBUSB_RECIPIENT_INTERFACE, 0x01, 0x03f2, 2, nullptr, 0, 5000);
libusb_close(lusb_handle);
}