hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375
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
@@ -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
Guenter Roeck
AppliedQuoted 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_MODEbits in the fan configuration register need be set to 01, not 10.Signed-off-by Nikolaus Schulz <[email protected]>--- drivers/hwmon/f75375s.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/hwmon/f75375s.c +0
-0
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