07 Jan, 2009

4 commits

  • It turns out that the adt7470's automatic fan control algorithm only works
    when the temperature sensors get updated. This in turn happens only when
    someone tells the chip to read its temperature sensors. Regrettably, this
    means that we have to drive the chip periodically.

    Signed-off-by: Darrick J. Wong
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     
  • The adt7470 driver currently assumes that 1s is the proper time to wait to
    read all temperature sensors. However, the correct time is 200ms *
    number_of_sensors. This patch sets the default time to provide for 10
    sensors and then lowers it based on the number of sensor inputs that have
    nozero values.

    Signed-off-by: Darrick J. Wong
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     
  • In the small window that it takes to read the temperature sensors, the pwm
    outputs momentarily drop to 0. This causes a noticeable hiccup in fan
    speed, which is slightly annoying. The solution is to manually program
    the pwm output with whatever the automatic value is and then shift the
    fans to manual control while reading temperatures. Once that is done, put
    the fans back to whatever mode of control was there before.

    Signed-off-by: Darrick J. Wong
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     
  • Modify some hwmon drivers to use DIV_ROUND_CLOSEST instead of bloating
    source with (naughty) macros.

    Signed-off-by: Darrick J. Wong
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     

13 Nov, 2008

1 commit

  • Implement correct range checking for adt7470 to prevent userland from
    writing impossible values into the chip, and cap out-of-range values per
    standard hwmon conventions.

    Implement correct rounding of input values per standard hwmon conventions.

    Signed-off-by: Darrick J. Wong
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     

17 Jul, 2008

1 commit


19 Feb, 2008

1 commit


08 Feb, 2008

2 commits


10 Oct, 2007

2 commits