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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-02-08 at 12:56 -0500, Nikolaus Schulz wrote:
> From: Nikolaus Schulz <schulz@xxxxxxxxxxx>
> 
> 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.
> 
> Signed-off-by: Nikolaus Schulz <mail@xxxxxxxxxxxxxx>
> Cc: stable@xxxxxxxxxx
> ---
>  drivers/hwmon/f75375s.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c
> index eedf574..c81ad45 100644
> --- a/drivers/hwmon/f75375s.c
> +++ b/drivers/hwmon/f75375s.c
> @@ -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
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux