13 Jan, 2012

1 commit


04 Jan, 2012

1 commit


13 Jan, 2011

2 commits


09 Jan, 2011

1 commit


28 May, 2010

1 commit


15 Dec, 2009

3 commits


10 Dec, 2009

1 commit

  • As kind is now hard-coded to -1, there is room for code clean-ups.

    Signed-off-by: Jean Delvare
    Acked-by: Corentin Labbe
    Cc: "Mark M. Hoffman"
    Cc: Juerg Haefliger
    Cc: Riku Voipio
    Acked-by: "Hans J. Koch"
    Cc: Rudolf Marek

    Jean Delvare
     

24 Oct, 2009

1 commit


23 Sep, 2009

1 commit

  • The static code scanner "Parfait" reported this because pwm_config is
    only 3 bytes - pwm_config[3] is out of range.

    Since this code path is never called with ix == 3 (the device has no PWM4
    output) this doesn't change anything in practice. But to encourage
    testing with Parfait, lets make the warning go away...

    Signed-off-by: Roel Kluin
    Acked-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     

15 Sep, 2009

1 commit


07 Jan, 2009

1 commit

  • Check for ACPI resource conflicts in hwmon drivers. I've included
    all Super-I/O and PCI drivers.

    I've voluntarily left out:
    * Vendor-specific drivers: if they conflicted on any system, this would
    pretty much mean that they conflict on all systems, and we would know
    by now.
    * Legacy ISA drivers (lm78 and w83781d): they only support chips found
    on old designs were ACPI either wasn't supported or didn't deal with
    thermal management.
    * Drivers accessing the I/O resources indirectly (e.g. through SMBus):
    the checks are already done where they belong, i.e. in the bus drivers.

    Signed-off-by: Jean Delvare
    Acked-by: David Hubbard

    Jean Delvare
     

14 Oct, 2008

2 commits

  • The new-style dme1737 driver implements the optional detect() callback
    to cover the use cases of the legacy driver. I don't actually expect
    any new-style device for that driver, but as the old i2c API is going
    away soon, we have to switch to the new one.

    Signed-off-by: Jean Delvare
    Cc: Juerg Haefliger

    Jean Delvare
     
  • The dme1737 driver support both LPC (ISA) and SMBus devices. At the
    moment it's rather i2c-centric, and LPC variants use a fake i2c_client
    for some operations.

    In a near future, i2c_client will be allocated by i2c-core rather than
    by the device drivers, so non-i2c drivers will not have one. As a
    preparation step, change the driver code to no longer assume that
    an i2c_client structure is always available. No functional change.

    Signed-off-by: Jean Delvare
    Cc: Juerg Haefliger

    Jean Delvare
     

07 Aug, 2008

3 commits


01 Aug, 2008

3 commits


19 Feb, 2008

1 commit


08 Feb, 2008

3 commits

  • The dme1737 has a second place where the Super-IO device ID is
    checked. This has been missed by Jean's initial patch that adds
    support for user-controlled Super-IO device ID override. This patch
    fixes this issue.

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

    Juerg Haefliger
     
  • This patch fixes a possible divide-by-0 and a minor bug in the
    FAN_FROM_REG macro (in TPC mode).

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

    Juerg Haefliger
     
  • While it is possible to force SMBus-based hardware monitoring chip
    drivers to drive a not officially supported device, we do not have this
    possibility for Super-I/O-based drivers. That's unfortunate because
    sometimes newer chips are fully compatible and just forcing the driver
    to load would work. Instead of that we have to tell the users to
    recompile the kernel driver, which isn't an easy task for everyone.

    So, I propose that we add a module parameter to all Super-I/O based
    hardware monitoring drivers, letting advanced users force the driver
    to load on their machine. The user has to provide the device ID of a
    supposedly compatible device. This requires looking at the source code or
    a datasheet, so I am confident that users can't randomly force a driver
    without knowing what they are doing. Thus this should be relatively safe.

    As you can see from the code, the implementation is pretty simple and
    unintrusive.

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

    Jean Delvare
     

11 Oct, 2007

4 commits

  • This patch adds support for the SMSC SCH3112, SCH3114, and SCH3116 Super-I/O
    chips. These chips feature identical hardware monitoring capabilites with the
    expection that some of the fan inputs and pmw outputs don't exist.

    The hardware monitoring features of the SCH311x chips can only be accessed via
    the ISA bus. The driver therefore registers as a platform driver, if such a
    chip is detected.

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

    Juerg Haefliger
     
  • class_dev -> hwmon_dev

    Signed-off-by: Mark M. Hoffman

    Mark M. Hoffman
     
  • Move functions to group them logically. Device and I2C functions go in separate
    places. No functional changes (really!).

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

    Juerg Haefliger
     
  • This patch cleans up and prepares the dme1737 driver for support of the sch311x
    chips. (Almost) no functional changes.

    - Replaced whitespaces with tabs.
    - Removed empty lines.
    - Added _i2c_ to names of functions that are strictly I2C related.
    - Added 4 new functions: dme1737_create_files, dme1737_remove_files,
    dme1737_sio_enter, and dme1737_sio_exit.
    - Added error messages in case client attach/detach fails.

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

    Juerg Haefliger
     

10 Oct, 2007

1 commit


31 Jul, 2007

1 commit

  • 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
     

20 Jul, 2007

1 commit

  • Add support for the hardware monitoring and fan control
    capabilities of the SMSC DME1737 and Asus A8000 Super-I/O chips.

    The hardware monitoring logic of this chip is similar to the LM85 but
    has some additional features that this driver supports. Even though
    it's a Super-I/O chip, the hardware monitoring logic can only be
    accessed via SMBus.

    Signed-off-by: Juerg Haefliger
    Signed-off-by: Jean Delvare

    Juerg Haefliger