Commit 79196e6aa678c9dbb6fcee8b24700799a64e5d08

Con Kolivas 2013-11-07T22:34:05

Send errors are basically fatal in avalon driver so break out of the send tasks loop.

diff --git a/driver-avalon.c b/driver-avalon.c
index 2643c95..c9a196f 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -1146,11 +1146,11 @@ static void *avalon_send_tasks(void *userdata)
 			ret = avalon_send_task(&at, avalon);
 
 			if (unlikely(ret == AVA_SEND_ERROR)) {
+				/* Send errors are fatal */
 				applog(LOG_ERR, "%s%i: Comms error(buffer)",
 				       avalon->drv->name, avalon->device_id);
 				dev_error(avalon, REASON_DEV_COMMS_ERROR);
-				info->reset = true;
-				break;
+				goto out;
 			}
 		}
 
@@ -1170,6 +1170,7 @@ static void *avalon_send_tasks(void *userdata)
 		 * fall short of the full duration. */
 		cgsleep_us_r(&ts_start, us_timeout);
 	}
+out:
 	return NULL;
 }