Commit 1a0b19077bdf3b8b676743976d589ccc0592b9c9

Con Kolivas 2014-02-06T09:51:44

Disable fan/die clock control in hfa if the firmware does not support it, with notification.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-hashfast.c b/driver-hashfast.c
index fb7c2ca..5608743 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -936,6 +936,12 @@ static void *hfa_read(void *arg)
 				/* Do nothing */
 				break;
 			default:
+				if (h->operation_code == OP_FAN) {
+					applog(LOG_NOTICE, "%s %d: Firmware upgrade required to support fan control",
+					       hashfast->drv->name, hashfast->device_id);
+					opt_hfa_target = 0;
+					break;
+				}
 				applog(LOG_WARNING, "%s %d: Unhandled operation code %d",
 				       hashfast->drv->name, hashfast->device_id, h->operation_code);
 				break;