Commit a7f89391f3e17976ee62810352b0f83ec91aecd3

Con Kolivas 2014-01-09T15:49:12

Only perform spi reset on init, not with each transaction.

diff --git a/driver-bitfury.c b/driver-bitfury.c
index e358e57..e5f7a0e 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -301,6 +301,7 @@ static bool nf1_reinit(struct cgpu_info *bitfury, struct bitfury_info *info)
 	spi_set_freq(info);
 	spi_send_conf(info);
 	spi_send_init(info);
+	spi_reset(bitfury, info);
 	return spi_txrx(bitfury, info);
 }
 
diff --git a/libbitfury.c b/libbitfury.c
index e48fd07..e32828b 100644
--- a/libbitfury.c
+++ b/libbitfury.c
@@ -247,8 +247,6 @@ bool spi_txrx(struct cgpu_info *bitfury, struct bitfury_info *info)
 	unsigned int length, sendrcv;
 	int offset = 0;
 
-	if (!spi_reset(bitfury, info))
-		return false;
 	length = info->spibufsz;
 	applog(LOG_DEBUG, "%s %d: SPI sending %u bytes total", bitfury->drv->name,
 	       bitfury->device_id, length);