03 Jul, 2015

1 commit


20 Oct, 2014

1 commit


30 Jan, 2014

1 commit


12 Aug, 2013

2 commits


22 Jun, 2013

1 commit


08 Apr, 2013

1 commit


26 Jan, 2013

1 commit

  • SENSORS_LIMIT and the generic clamp_val have the same functionality,
    and clamp_val is more efficient.

    This patch reduces text size by 9052 bytes and bss size by 11624 bytes
    for x86_64 builds.

    Signed-off-by: Guenter Roeck
    Acked-by: George Joseph
    Acked-by: Jean Delvare

    Guenter Roeck
     

20 Dec, 2012

2 commits

  • The smatch static code analyzer complains:

    drivers/hwmon/w83627ehf.c:911 w83627ehf_update_device() error: buffer overflow 'W83627EHF_REG_TEMP_OFFSET' 3 have_temp_offset can be set so the
    write is never attempted with i >= 3. However this shows that the code
    isn't very robust and future changes could easily introduce a buffer
    overflow. So let's add a safety check to prevent that and make smatch
    happy.

    Signed-off-by: Jean Delvare
    Cc: Peter Huewe
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • On suspend some register values are lost, most notably the Value RAM
    areas but also other limits and settings. Restore them on resume.

    Signed-off-by: Jean Delvare
    Reviewed-by: Guenter Roeck
    Tested-by: Guenter Roeck

    Jean Delvare
     

29 Nov, 2012

3 commits

  • CONFIG_HOTPLUG is going away as an option so __devexit is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Hans de Goede
    Cc: Jean Delvare
    Cc: Alistair John Strachan
    Cc: Fenghua Yu
    Cc: Juerg Haefliger
    Cc: Andreas Herrmann
    Cc: Clemens Ladisch
    Cc: Rudolf Marek
    Cc: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Acked-by: Guenter Roeck
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

06 Nov, 2012

1 commit

  • Don't assume bank 0 is selected at device probe time. This may not be
    the case. Force bank selection at first register access to guarantee
    that we read the right registers upon driver loading.

    Signed-off-by: Jean Delvare
    Reviewed-by: Guenter Roeck
    Cc: stable@vger.kernel.org

    Jean Delvare
     

22 Jul, 2012

1 commit


02 Apr, 2012

1 commit

  • As long as there is no other non-const variable marked __initdata in the
    same compilation unit it doesn't hurt. If there were one however
    compilation would fail with

    error: $variablename causes a section type conflict

    because a section containing const variables is marked read only and so
    cannot contain non-const variables.

    Signed-off-by: Uwe Kleine-König
    Cc: Jean Delvare
    Cc: Guenter Roeck
    Cc: lm-sensors@lm-sensors.org
    Signed-off-by: Guenter Roeck

    Uwe Kleine-König
     

19 Mar, 2012

2 commits


13 Mar, 2012

3 commits


09 Feb, 2012

1 commit


05 Feb, 2012

1 commit


30 Jan, 2012

1 commit


06 Jan, 2012

1 commit


07 Nov, 2011

1 commit

  • Commit 2265cef2 (hwmon: (w83627ehf) Properly report PECI and AMD-SI
    sensor types) results in kernel panic if data->temp_label was not
    initialized.
    The problem was found with chip W83627DHG-P.

    Add check if data->temp->label was set before use.

    Based on incomplete patch by Alexander Beregalov.

    Reported-by: Alexander Beregalov
    Tested-by: Alexander Beregalov
    Cc: stable@kernel.org
    Signed-off-by: Guenter Roeck
    Signed-off-by: Jean Delvare

    Guenter Roeck
     

04 Nov, 2011

3 commits

  • This is essentially a stripped down version of the W83627DHG. Noticeable
    difference is that it is still powered with +5V, as older models, even
    though the ADC resolution is 8 mV as newer models have.

    Thanks to Ulf Bruman (Saab Group) for doing all the testing.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck

    Jean Delvare
     
  • The probe function has grown pretty large, I think it's time for some
    cleanups, starting with these two simple ones:
    * Move temp3/in6 check for the W83667HG later in the function, where
    it is done for all other chip types.
    * Move temperature register setting to a separate function, to avoid
    code duplication.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck

    Jean Delvare
     
  • When temperature sources are PECI or AMD-SI agents, it makes no sense
    to report their type as diode or thermistor. Instead we must report
    their digital nature.

    Signed-off-by: Jean Delvare
    Cc: stable@kernel.org
    Acked-by: Guenter Roeck

    Jean Delvare
     

25 Oct, 2011

5 commits


20 Oct, 2011

1 commit

  • Since 8-bit temperature values are now handled in 16-bit struct
    members, values have to be cast to s8 for negative temperatures to be
    properly handled. This is broken since kernel version 2.6.39
    (commit bce26c58df86599c9570cee83eac58bdaae760e4.)

    Signed-off-by: Jean Delvare
    Cc: Guenter Roeck
    Cc: stable@kernel.org # 2.6.39+
    Signed-off-by: Guenter Roeck

    Jean Delvare
     

14 Oct, 2011

1 commit

  • The w83627ehf driver is improperly reporting thermal diode sensors as
    type 2, instead of 3. This caused "sensors" and possibly other
    monitoring tools to report these sensors as "transistor" instead of
    "thermal diode".

    Furthermore, diode subtype selection (CPU vs. external) is only
    supported by the original W83627EHF/EHG. All later models only support
    CPU diode type, and some (NCT6776F) don't even have the register in
    question so we should avoid reading from it.

    Signed-off-by: Jean Delvare
    Cc: stable@kernel.org
    Signed-off-by: Guenter Roeck

    Jean Delvare
     

15 Mar, 2011

4 commits

  • Systems with NCT6775F reported temperature sensor labels for systems with
    NCT6776F. This patch fixes the problem.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • NCT6776F and NCT6775F support debouncing the fan RPM signal. This can
    help improve the stability of th RPM signal for some fans (Arctic cooling
    fans for example).
    This patch adds a module parameter fan_debounce, which when set to 1 enables
    debounce for all fans that the chip supports.

    Signed-off-by: Ian Dobson
    Signed-off-by: Guenter Roeck

    Ian Dobson
     
  • Since the fan speed value can be above 0xff, we can no longer use
    that value to determine if the fan speed reading is valid. This
    makes it difficult to manipulate the stored fan speed register value.

    If we store rpm instead of the fan speed register value, we do not
    need to correct it if the fan divisor value is changed, and the above
    mentioned problem no longer exists.

    Signed-off-by: Guenter Roeck
    Acked-by: Ian Dobson

    Guenter Roeck
     
  • Some of the chips supported by this driver have 13 bit or 16 bit fan count
    registers. This patch improves support for those registers, specifically for
    NCT6775F. With the changes in this patch, fan speed is reported correctly even
    if the fan divider is set to a low value, which results in a fan speed reading
    above 0xff.

    With this patch, the width of fan count registers is no longer used to determine
    if the chip has fan divider register(s) or not. A dedicated flag is used instead
    to determine if this is the case.

    Signed-off-by: Guenter Roeck
    Acked-by: Ian Dobson

    Guenter Roeck