Commit dab4a154b962fd221d726feb6b03503adb2b3881

Con Kolivas 2014-02-20T20:30:36

Update the per die hash clock data on a running reset on hfa devices.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 2bf54e9..b8e740a 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1267,6 +1267,7 @@ dies_only:
 static bool hfa_running_reset(struct cgpu_info *hashfast, struct hashfast_info *info)
 {
 	bool ret;
+	int i;
 
 	ret = hfa_send_shutdown(hashfast);
 	if (!ret)
@@ -1279,6 +1280,8 @@ static bool hfa_running_reset(struct cgpu_info *hashfast, struct hashfast_info *
 	ret = hfa_clear_readbuf(hashfast);
 	if (ret)
 		ret = hfa_reset(hashfast, info);
+	for (i = 0; i < info->asic_count; i++)
+		info->die_data[i].hash_clock = info->base_clock;
 	mutex_unlock(&info->rlock);
 
 out: