Browse Source

Revert "x6500: Whenever we get a hardware error, purge buffers just in case of read/write desync"

This reverts commit 816c777022bc255059fe6c6bdd7528d293c3086a.

Conflicts:
	driver-x6500.c
Luke Dashjr 13 years ago
parent
commit
6cb932045d
1 changed files with 0 additions and 6 deletions
  1. 0 6
      driver-x6500.c

+ 0 - 6
driver-x6500.c

@@ -660,12 +660,6 @@ int64_t x6500_process_results(struct thr_info *thr, struct work *work)
 
 				dclk_gotNonces(&fpga->dclk);
 				dclk_errorCount(&fpga->dclk, 1.);
-
-				// Purge buffers just in case of read/write desync
-				mutex_lock(&x6500->device_mutex);
-				ft232r_purge_buffers(jtag->a->ftdi, FTDI_PURGE_BOTH);
-				mutex_unlock(&x6500->device_mutex);
-				jtag->a->bufread = 0;
 			}
 			// Keep reading nonce buffer until it's empty
 			// This is necessary to avoid getting hw errors from Freq B after we've moved on to Freq A