From 1c4d1ac863dee6da3c0ca2c0a06dad3dbdf6191f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 8 Apr 2013 14:08:54 +1000 Subject: [PATCH] Reinstate wrong work count to reset avalon regardless and display number of wrong results. --- driver-avalon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver-avalon.c b/driver-avalon.c index 6b7da561..e179a8de 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -939,12 +939,12 @@ static int64_t avalon_scanhash(struct thr_info *thr) elapsed.tv_sec, elapsed.tv_usec); } } - if (result_wrong >= avalon_get_work_count && ret != AVA_GETS_RESTART) { - /* This mean FPGA controller gave all wrong results, so + if (result_wrong >= avalon_get_work_count) { + /* This means FPGA controller gave all wrong results, so * try to reset the Avalon */ do_avalon_close(thr); applog(LOG_ERR, - "AVA%i: FPGA controller mess up", avalon->device_id); + "AVA%i: FPGA controller mess up, %d wrong results", avalon->device_id, result_wrong); dev_error(avalon, REASON_DEV_COMMS_ERROR); sleep(1); avalon_init(avalon);