09 Sep, 2007

1 commit

  • Fix an off-by-one error in the I/O region declaration of two
    hardware monitoring drivers (lm78 and w83781d.) We were requesting
    one extra port at the end of the region.

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

    Jean Delvare
     

13 Aug, 2007

3 commits

  • The smsc47m1 driver no longer creates the name attribute used by
    libsensors to identify chip types. It was lost during the conversion
    to a platform driver. I was fooled by the fact that we do have a
    group with all attributes, but only to delete them all at once. The
    group is not used to create the attributes, so we have to explicitly
    create the name attribute.

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

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

    Jean Delvare
     
  • Don't assume that the default bank is 0. For one thing, we don't even
    set it to 0 when the driver is loaded, so the initial state might be
    different. For another, something (say, the BIOS) might access the chip
    and leave with the bank set to something different, so assuming that
    the bank value is 0 is not safe.

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

    Jean Delvare
     
  • This patch forces the driver to read the fan divider values during early init.
    Otherwise, a call to store_fan_min() could access uninitialized variables.

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

    Mark M. Hoffman
     

12 Aug, 2007

1 commit


31 Jul, 2007

11 commits

  • Here is a small fscher bugfix for 2.6.23 merging, lifted from my other fscher
    work, as requested by Jean. The current driver has a control sysfs attribute,
    which shows the contents of the control register, but the underlying
    global_control value in the data structure currently never gets filled with
    the actual contents of this register.

    Signed-off-by: Hans de Goede
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Hans de Goede
     
  • abituguru3_read_increment_offset() can become static.

    Signed-off-by: Adrian Bunk
    Acked-by: Hans de Goede
    Signed-off-by: Mark M. Hoffman

    Adrian Bunk
     
  • The commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=32c82a934759b2c9939c9e25865c2d7d1204b9e8
    broke lm90 for my (Asus V6VA) laptop.

    Before 2.6.23-rc1 and with the following patch, I get:

    [g ~]$ sensors
    max6657-i2c-0-4c
    Adapter: SMBus I801 adapter at 0400
    M/B Temp: +64°C (low = +0°C, high = +127°C)
    CPU Temp: +78.9°C (low = +73.2°C, high = +88.2°C)
    M/B Crit: +105°C (hyst = +95°C)
    CPU Crit: +105°C (hyst = +95°C)

    Which regressed into:

    [g ~]$ sensors
    No sensors found!
    Make sure you loaded all the kernel drivers you need.
    Try sensors-detect to find out which these are.
    zsh: 2701 exit 1 sensors

    and dmesg contains:

    i2c-adapter i2c-0: Unsupported chip (man_id=0x4D, chip_id=0x4D).

    It seems to be a typo, as address 0X4F is mentionned nowhere else in the file,
    and my chip is actually at 0x4C.

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

    Guillaume Chazarain
     
  • Signed-off-by: Nicolas Boichat
    Acked-by: Jean Delvare
    Cc: Martin Szulecki
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Mark M. Hoffman

    Martin Szulecki
     
  • Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
    while reviewing my other bugfix. The driver was updating its copy of the
    control register as if it was clear to write, but its regular read/write. This
    patch fixes this.

    Signed-off-by: Hans de Goede
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Hans de Goede
     
  • Fix temp?_fault attribute. The temp was incorrectly compared against
    0x0800 rather than 0x8000. Only the upper 8 bits are compared as the
    datasheet doesn't specify what happens to the lower bits in case of a
    diode fault.

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

    Juerg Haefliger
     
  • On Sun, 22 Jul 2007 00:30:56 +0200, Gabriel C wrote:
    > I noticed this warnings on current git:
    >
    > drivers/hwmon/pc87360.c:1082: warning: 'pc87360_remove' defined but not used
    > drivers/hwmon/sis5595.c:580: warning: 'sis5595_remove' defined but not used
    > drivers/hwmon/smsc47m1.c:608: warning: 'smsc47m1_remove' defined but not used
    > drivers/hwmon/via686a.c:648: warning: 'via686a_remove' defined but not used
    > drivers/hwmon/vt8231.c:755: warning: 'vt8231_remove' defined but not used

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

    Jean Delvare
     
  • This patch cleans up duplicate includes in
    drivers/hwmon/

    Signed-off-by: Jesper Juhl
    Signed-off-by: Mark M. Hoffman

    Jesper Juhl
     
  • Here is a small but important bugfix to the lm78 driver. I found out about this
    problem because a Fedora user filed a bug that the lm78 driver no longer worked
    on his system: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=249428

    The problem is that sometime ago the isa lm78 detection was made more stringent
    and this new code now checks the chip-id, but does not accept a chip-id of 20h,
    however a chip-id of 20h is valid, and is excepted in the main probe function
    of the driver, see line 551. This fixed also makes the isa detection code
    accept the chip-id of 0x20 fixing this issue.

    Signed-off-by: Hans de Goede
    Signed-off-by: Mark M. Hoffman

    Hans de Goede
     
  • This fixes an array overflow bug. We have 4 pairs of min/max temperature
    limits, not 3.

    Signed-off-by: Hans J. Koch
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Hans-Jürgen Koch
     
  • This patch adds support for THMC50 and ADM1022 hardware monitoring chips.

    Signed-off-by: Krzysztof Helt
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Krzysztof Helt
     

20 Jul, 2007

24 commits