mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-10 05:54:21 +00:00
Temporarily limit usb transfer sizes to 512 till we provide a way for each driver to choose the upper limit.
This commit is contained in:
parent
f105d2e17e
commit
f4508b6a34
@ -2186,8 +2186,12 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle,
|
|||||||
|
|
||||||
/* Limit length of transfer to the largest this descriptor supports
|
/* Limit length of transfer to the largest this descriptor supports
|
||||||
* and leave the higher level functions to transfer more if needed. */
|
* and leave the higher level functions to transfer more if needed. */
|
||||||
|
#if 0
|
||||||
if (length > cgpu->usbdev->found->wMaxPacketSize)
|
if (length > cgpu->usbdev->found->wMaxPacketSize)
|
||||||
length = cgpu->usbdev->found->wMaxPacketSize;
|
length = cgpu->usbdev->found->wMaxPacketSize;
|
||||||
|
#endif
|
||||||
|
if (length > 512)
|
||||||
|
length = 512;
|
||||||
|
|
||||||
cg_rlock(&cgusb_fd_lock);
|
cg_rlock(&cgusb_fd_lock);
|
||||||
err = libusb_bulk_transfer(dev_handle, endpoint, data, length,
|
err = libusb_bulk_transfer(dev_handle, endpoint, data, length,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user