Commit c8c9d87f5b715ea3b1329e30420bcf7f64064aaf

Con Kolivas 2014-03-18T22:15:17

Drop a failed restart icarus device to allow it to be rehotplugged if possible.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-icarus.c b/driver-icarus.c
index 29d6d8d..cf77334 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -1300,6 +1300,7 @@ static int64_t icarus_scanwork(struct thr_info *thr)
 			if (share_work_tdiff(icarus) > info->fail_time + 60) {
 				applog(LOG_ERR, "%s %d: Device failed to respond to restart",
 				       icarus->drv->name, icarus->device_id);
+				usb_nodev(icarus);
 				return -1;
 			}
 		} else {