Browse Source

Merge commit '669fc38' into update_old_avalon_20130513

Luke Dashjr 13 years ago
parent
commit
c462042b90
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-avalon.c

+ 2 - 0
driver-avalon.c

@@ -914,6 +914,8 @@ static int64_t avalon_scanhash(struct thr_info *thr, struct work **work,
 		applog(LOG_ERR,
 		       "AVA%i: FPGA controller mess up", avalon->device_id);
 		dev_error(avalon, REASON_DEV_COMMS_ERROR);
+		do_avalon_close(thr);
+		avalon_init(avalon);
 		return 0;
 	}