|
|
@ -1273,6 +1273,9 @@ static void _usb_uninit(struct cgpu_info *cgpu) |
|
|
|
libusb_release_interface(cgpu->usbdev->handle, |
|
|
|
libusb_release_interface(cgpu->usbdev->handle, |
|
|
|
THISIF(cgpu->usbdev->found, ifinfo)); |
|
|
|
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); |
|
|
|
cg_wlock(&cgusb_fd_lock); |
|
|
|
libusb_close(cgpu->usbdev->handle); |
|
|
|
libusb_close(cgpu->usbdev->handle); |
|
|
|
cgpu->usbdev->handle = NULL; |
|
|
|
cgpu->usbdev->handle = NULL; |
|
|
|