@ -2310,7 +2310,7 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
@@ -2310,7 +2310,7 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
USB_REJECT(cgpu,MODE_BULK_READ);
err=LIBUSB_ERROR_NO_DEVICE;
gotoout_unlock;
gotoout_noerrmsg;
}
usbdev=cgpu->usbdev;
@ -2554,6 +2554,11 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
@@ -2554,6 +2554,11 @@ int _usb_read(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_t
release_cgpu(cgpu);
out_unlock:
if(err&&err!=LIBUSB_ERROR_TIMEOUT){
applog(LOG_WARNING,"%s %i usb read error: %s",cgpu->drv->name,cgpu->device_id,
libusb_error_name(err));
}
out_noerrmsg:
DEVUNLOCK(cgpu,pstate);
returnerr;
@ -2578,7 +2583,7 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
@@ -2578,7 +2583,7 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
USB_REJECT(cgpu,MODE_BULK_WRITE);
err=LIBUSB_ERROR_NO_DEVICE;
gotoout_unlock;
gotoout_noerrmsg;
}
usbdev=cgpu->usbdev;
@ -2645,7 +2650,11 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
@@ -2645,7 +2650,11 @@ int _usb_write(struct cgpu_info *cgpu, int intinfo, int epinfo, char *buf, size_
if(NODEV(err))
release_cgpu(cgpu);
out_unlock:
if(err&&err!=LIBUSB_ERROR_TIMEOUT){
applog(LOG_WARNING,"%s %i usb write error: %s",cgpu->drv->name,cgpu->device_id,