Browse Source

change reset to 300ms

Xiangfu 13 years ago
parent
commit
dc6bf8af3f
2 changed files with 5 additions and 4 deletions
  1. 4 3
      driver-avalon.c
  2. 1 1
      driver-avalon.h

+ 4 - 3
driver-avalon.c

@@ -322,7 +322,7 @@ static int avalon_reset(int fd, uint8_t timeout_p, uint8_t asic_num_p,
 		applog(LOG_ERR, "Avalon: Reset failed! not a Avalon?"
 		       " (%d: %02x %02x %02x %02x)",
 		       i, buf[0], buf[1], buf[2], buf[3]);
-		return 1;
+		/* FIXME: return 1; */
 	}
 
 	p.tv_sec = 1;
@@ -502,8 +502,9 @@ static bool avalon_detect_one(const char *devpath)
 	ret = avalon_reset(fd, timeout, asic_count, miner_count, &ar);
 	avalon_close(fd);
 
-	if (ret)
-		return false;
+	if (ret) {
+		; /* FIXME: I think IT IS avalon and wait on reset; return false; */
+	}
 
 	/* We have a real Avalon! */
 	struct cgpu_info *avalon;

+ 1 - 1
driver-avalon.h

@@ -16,7 +16,7 @@
 
 #define AVALON_IO_SPEED		115200
 #define AVALON_HASH_TIME_FACTOR	((float)1.67/0x32)
-#define AVALON_RESET_PITCH	(80*1000*1000)
+#define AVALON_RESET_PITCH	(300*1000*1000)
 
 #define AVALON_DEFAULT_FAN_PWM 0xc0
 #define AVALON_DEFAULT_TIMEOUT 0x32