29 Apr, 2011

2 commits


31 Mar, 2011

1 commit


15 Mar, 2011

4 commits


19 Feb, 2011

1 commit

  • The interface is identical EMC6D102, so all that needs to be added are
    some definitions and their uses.

    Registers apparently missing in EMC6D103S/EMC6D103:A2 compared to EMC6D103:A0,
    EMC6D103:A1, and EMC6D102 (according to the data sheets), but used
    unconditionally in the driver: 62[5:7], 6D[0:7], and 6E[0:7]. For that
    reason, EMC6D103S chips don't get enabled for the time being.

    Signed-off-by: Jan Beulich
    (Guenter Roeck: Replaced EMC6D103_A2 with EMC6D103S per EMC6D103S datasheet)
    Signed-off-by: Guenter Roeck
    Cc: stable@kernel.org

    Jan Beulich
     

29 Oct, 2010

2 commits


15 Dec, 2009

3 commits


10 Dec, 2009

1 commit


15 Sep, 2009

1 commit

  • The Winbond/Nuvoton WPCD377I is the reduced version of a Super-I/O
    which emulates the National Semiconductor LM96000 hardware monitoring
    chips, but without the hardware monitoring part. Instead of plain
    disabling the emulation, the vendor left the emulated chip visible,
    but all monitored values are always zero. This is rather confusing for
    the users. So detect this case and refuse to bind to such fake chips.

    This fixes lm-sensors ticket #2182:
    http://www.lm-sensors.org/ticket/2182

    Signed-off-by: Jean Delvare

    Jean Delvare
     

11 Mar, 2009

2 commits

  • The adt7468 chip supports VRM10 sensors just like the adt7463; add a
    missing check for it.

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

    Darrick J. Wong
     
  • The verstep check in the lm85 driver fails because the upper nibble of
    the version register is 0x7, not 0x6, on the adt7468 chip. Probing of
    all adt7468s was broken by 69fc1feba2d5856ff74dedb6ae9d8c490210825c
    ("hwmon: (lm85) Rework the device detection"), and this patch fixes
    that. Also add in a missing i2c_device_id that accidentally got dropped
    from the original patch.

    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

  • The adt7468 is a follow-on to the adt7463, so plumb in adt7468 support
    along the same code paths.

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

    Darrick J. Wong
     

17 Oct, 2008

7 commits


01 Aug, 2008

5 commits

  • Clean up and simplify the device initialization function:
    * Degrade error messages to warnings - what they really are.
    * Stop warning about VxI mode, we don't really care.
    * Drop comment about lack of limit initialization - that's the standard
    way, all hardware monitoring drivers do that.
    * Only read the configuration register once.
    * Only write back to the configuration register if needed.
    * Don't attempt to clear the lock bit, it locks itself to 1.
    * Move the function to before it's called, so that we no longer need to
    forware declare it.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Misc cleanups to the lm85 hardware monitoring driver:
    * Mark constant arrays as const.
    * Remove useless masks.
    * Have lm85_write_value return void - nobody is checking the returned
    value anyway and in some cases it was plain wrong.
    * Remove useless initializations.
    * Rename new_client to client in lm85_detect.
    * Replace cascaded if/else with a switch/case in lm85_detect.
    * Group similar loops in lm85_update_device.
    * Remove legacy comments.

    Signed-off-by: Jean Delvare
    Acked-by: Juerg Haefliger
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • In set_pwm_auto_pwm_minctl, we write cached register bits back to the
    chip. This is a bad idea as we have no guarantee that the cache is
    up-to-date. Better read a fresh register value from the chip, it's
    safer and in fact it is also more simple.

    Signed-off-by: Jean Delvare
    Acked-by: Juerg Haefliger
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Drop a lot of useless register defines, conversion macros, data structure
    members and update code. All these register values were read from the
    device but nothing is done out of them, so this is all dead code in
    practice.

    Signed-off-by: Jean Delvare
    Acked-by: Juerg Haefliger
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Fix most style issues reported by checkpatch, including:
    * Trailing, missing and extra whitespace
    * Extra parentheses, curly braces and semi-colons
    * Broken indentation
    * Lines too long

    I verified that the generated code is the same before and after
    these changes.

    Signed-off-by: Jean Delvare
    Acked-by: Juerg Haefliger
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     

19 Jun, 2008

1 commit

  • Function RANGE_TO_REG() is broken. For a requested range of 2000 (2
    degrees C), it will return an index value of 15, i.e. 80.0 degrees C,
    instead of the expected index value of 0. All other values are handled
    properly, just 2000 isn't.

    The bug was introduced back in November 2004 by this patch:
    http://git.kernel.org/?p=linux/kernel/git/tglx/history.git;a=commit;h=1c28d80f1992240373099d863e4996cdd5d646d0

    While this can be fixed easily with the current code, I'd rather
    rewrite the whole function in a way which is more obviously correct.

    Signed-off-by: Jean Delvare
    Cc: Justin Thiessen
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     

19 Feb, 2008

1 commit


08 Feb, 2008

4 commits

  • What was true of reading the VRM value is also true of writing it: not
    being a register value, it doesn't need hardware access, so we don't
    need a reference to the i2c client. This allows for a minor code
    cleanup. As gcc appears to be smart enough to simplify the generated
    code by itself, this cleanup only affects the source code, the
    generated binaries are unchanged.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Many I2C hwmon drivers define a driver ID but no other code references
    these, meaning that they are useless. Discard them, along with a few
    IDs which are defined but never used at all.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • Make the pwmN_enable files writable. This makes it possible to use
    standard fan speed control tools (pwmconfig, fancontrol) with the lm85
    driver.

    I left the non-standard pwmN_auto_channels files in place, as they
    give additional control for the automatic mode, and some users might
    be used to them by now.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • The values returned by the lm85 driver in pwmN_enable sysfs files do
    not match the standard. Fix that.

    Signed-off-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     

10 Oct, 2007

4 commits