Commit 992a97a396c4181a3e17c5a5ad243959db29a92e

Con Kolivas 2013-08-13T14:52:17

Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-avalon.c b/driver-avalon.c
index 752c49f..72a8d4b 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -249,12 +249,6 @@ static int avalon_read(struct cgpu_info *avalon, unsigned char *buf,
 	if (amount < 2)
 		goto out;
 
-	/* Use the fact that we're reading the status with the buffer to tell
-	 * the write thread it should send more work without needing to call
-	 * avalon_buffer_full directly. */
-	if (avalon_cts(readbuf[0]))
-		cgsem_post(&info->write_sem);
-
 	/* The first 2 of every 64 bytes are status on FTDIRL */
 	while (amount > 2) {
 		cp = amount - 2;