mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Reattach the kernel driver on linux on usb_uninit.
This commit is contained in:
parent
3ef9fa3b88
commit
39c2e662a7
@ -1273,6 +1273,9 @@ static void _usb_uninit(struct cgpu_info *cgpu)
|
||||
libusb_release_interface(cgpu->usbdev->handle,
|
||||
THISIF(cgpu->usbdev->found, ifinfo));
|
||||
}
|
||||
#ifdef LINUX
|
||||
libusb_attach_kernel_driver(cgpu->usbdev->handle, THISIF(cgpu->usbdev->found, ifinfo));
|
||||
#endif
|
||||
cg_wlock(&cgusb_fd_lock);
|
||||
libusb_close(cgpu->usbdev->handle);
|
||||
cgpu->usbdev->handle = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user