Commit 2f856df305ac86520dcdf738c6bec99b3d6aa4fe

Con Kolivas 2014-05-25T09:40:50

Increase timeout on reset in cta driver to 5 seconds

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-cointerra.c b/driver-cointerra.c
index 6d02cd3..a11f390 100644
--- a/driver-cointerra.c
+++ b/driver-cointerra.c
@@ -903,7 +903,7 @@ resend:
 	if (reset_type == CTA_RESET_NEW) {
 		ret = cgsem_mswait(&info->reset_sem, CTA_RESET_TIMEOUT);
 		if (ret) {
-			if (++retries < 3) {
+			if (++retries < 5) {
 				applog(LOG_INFO, "%s %d: Timed out waiting for reset done msg, retrying",
 				       cointerra->drv->name, cointerra->device_id);
 				goto resend;