Skip to contentSkip to conversation

hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375

PATCH Applied Nikolaus Schulz 2 participants 2 messages Feb 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375

From: Nikolaus Schulz <[email protected]>

In order to enable temperature mode aka automatic mode for the F75373 and F75375 chips, the two FANx_MODE bits in the fan configuration register need be set to 01, not 10.

---
 drivers/hwmon/f75375s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/f75375s.c +1 -1
index eedf574..c81ad45 100644
@@ -369,7 +369,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
 			fanmode  |= (3 << FAN_CTRL_MODE(nr));
 			break;
 		case 2: /* AUTOMATIC*/
-			fanmode  |= (2 << FAN_CTRL_MODE(nr));
+			fanmode  |= (1 << FAN_CTRL_MODE(nr));
 			break;
 		case 3: /* fan speed */
 			break;
Signature · 7 lines
1.7.9


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 17 lines · Nikolaus Schulz

From: Nikolaus Schulz <[email protected]>

In order to enable temperature mode aka automatic mode for the F75373 and F75375 chips, the two FANx_MODE bits in the fan configuration register need be set to 01, not 10.

---
 drivers/hwmon/f75375s.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/f75375s.c +0 -0
index eedf574..c81ad45 100644

drivers/hwmon/f75375s.c static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val) · line 375

Quoted 8 lines
drivers/hwmon/f75375s.c +1 -1
@@ -369,7 +369,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
 			fanmode  |= (3 << FAN_CTRL_MODE(nr));
 			break;
 		case 2: /* AUTOMATIC*/
-			fanmode  |= (2 << FAN_CTRL_MODE(nr));
+			fanmode  |= (1 << FAN_CTRL_MODE(nr));
 			break;
 		case 3: /* fan speed */
 			break;

Nice catch.

Thanks, applied.

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors