|
@@ -182,6 +182,7 @@ bool gridseed_prepare_work(struct thr_info __maybe_unused *thr, struct work *wor
|
|
|
if (sizeof(cmd) != gc3355_write(device->device_fd, cmd, sizeof(cmd)))
|
|
if (sizeof(cmd) != gc3355_write(device->device_fd, cmd, sizeof(cmd)))
|
|
|
{
|
|
{
|
|
|
applog(LOG_ERR, "%s: Failed to send work", device->dev_repr);
|
|
applog(LOG_ERR, "%s: Failed to send work", device->dev_repr);
|
|
|
|
|
+ dev_error(device, REASON_DEV_COMMS_ERROR);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -252,6 +253,12 @@ int64_t gridseed_scanhash(struct thr_info *thr, struct work *work, int64_t __may
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (read == -1)
|
|
|
|
|
+ {
|
|
|
|
|
+ applog(LOG_ERR, "%s: Failed to read result", device->dev_repr);
|
|
|
|
|
+ dev_error(device, REASON_DEV_COMMS_ERROR);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
gridseed_hashes_done(thr);
|
|
gridseed_hashes_done(thr);
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|