10 Oct, 2007

3 commits


31 Jul, 2007

1 commit

  • 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
     

20 Jul, 2007

2 commits


15 Feb, 2007

3 commits

  • Cleanup a bogus legacy comment that has been replicated to many
    hardware monitoring drivers.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Many hardware monitoring drivers use two different mutexes, one to
    protect their per-device data structure, and one to protect the
    access to the device registers. These mutexes are essentially
    redundant, as the drivers are transfering values between the device
    registers and the data cache, so they almost always end up holding
    both mutexes at the same time. Using a single mutex will make the
    code more simple and faster.

    I am changing only two of the affected drivers here, the authors
    of the other affected drivers are welcome to submit similar patches
    if they want.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Let the user select the base PWM frequency when using the it87
    hardware monitoring driver. Different frequencies can give better
    control on some fans.

    Also update the documentation to mention the PWM frequency control
    files, with misc cleanups to the PWM section.

    Signed-off-by: Jean Delvare

    Jean Delvare
     

13 Dec, 2006

1 commit

  • This interface was useless as the LPC ISA-like interface is always
    available, is faster, and is more reliable. This cuts the driver
    size by some 20%.

    This change is also required to later convert the it87 driver to a
    platform driver, so that we can get rid of i2c-isa in a near future.

    Signed-off-by: Jean Delvare

    Jean Delvare
     

29 Sep, 2006

9 commits

  • hwmon: Fix unchecked return status, batch 5

    Fix up some hwmon drivers so that they no longer ignore return status
    from device_create_file().

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Copyright update

    I think my contributions to the it87 driver over the past two
    years qualify me as a co-author of this driver.

    Also drop old comments of dubious usefulness.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Overwrite broken default limits

    Some IT8716F chips where seen with unreasonable defaults for low
    voltage and high temperature limits. Overwrite them with sane defaults
    so as to not generate meaningless alarms.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Add support for the IT8718F

    The IT8718F is a Super-I/O chip with integrated hardware monitoring
    functions. It is very similar to the IT8716F, so adding support to the
    it87 driver was pretty straightforward. The most significant difference
    is that the IT8718F has up to 8 VID pins, instead of 6 for the older
    chips.

    For the IT8718F, the VID value can only be read from Super-I/O space.

    Userspace support is already in lm_sensors SVN (to be soon released
    as 2.10.1.)

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Cleanup set_fan_div

    We only change one fan clock divider at a time, so there is only one
    fan min which needs to be saved and restored.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: in8 has no limit registers

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Prevent overflow on fan clock divider write

    The highest possible clock divider for fan1 and fan2 is 128.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: No sysfs files for disabled fans

    Only create the fan attributes for enabled fan tachometers. Some
    motherboards have a nice BIOS which only enables the fan inputs which
    are wired to a fan header on the board. This makes the configuration
    easier for the user.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • it87: Add support for the IT8716F

    The IT8716F is a Super-I/O chip with integrated hardware monitoring
    functions. It is very similar to the IT8712F, so adding support to the
    it87 driver was pretty straightforward. The most significant change here
    is that the IT8716F has 16-bit fan speed counters, so the user no more
    needs to tweak the fan clock dividers to get the best readings.

    Userspace support is already in lm_sensors SVN (to be soon released
    as 2.10.1.)

    Thanks to Stian Oksavik, Olivier Nicolas, Prakash Punnoor and
    Juergen Kilb for testing the early versions of this patch.

    Thanks also to ITE for providing datasheets and answering my questions.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

27 Sep, 2006

1 commit

  • i2c-isa: Restore driver owner

    Commit 2b48716d1d2f2edb1e7cbc5ecf1cb2cb39373e33 back in January
    2006 was a bit overzealous. It removed .owner from all i2c drivers,
    including i2c-isa ones, while they still need it.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

24 Mar, 2006

2 commits

  • "register" is a reserved keyword so using it as a parameter name
    can confuse some compilers, most notably ICC.

    The patch below just renames all occurences to reg which fits the actual
    function declarations.

    Signed-off-by: Darren Jenkins
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Darren Jenkins
     
  • convert drivers/hwmon/*.c semaphore use to mutexes.

    the conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    all affected hwmon drivers were build-tested.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Ingo Molnar
     

14 Feb, 2006

1 commit


07 Feb, 2006

1 commit

  • Only scan I2C address 0x2d. This is the default address and no IT87xxF
    chip was ever seen on I2C at a different address. These chips are
    better accessed through their ISA interface anyway.

    This fixes bug #5889, although it doesn't address the whole class
    of problems. We'd need the ability to blacklist arbitrary I2C addresses
    on systems known to contain I2C devices which behave badly when probed.

    Plan the I2C interface for removal as well. If nobody complains within
    a year, it will confirm my impression that the I2C interface isn't
    actually needed by anyone.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

06 Jan, 2006

4 commits


24 Nov, 2005

1 commit

  • Fix a bug where setting the low fan speed limits will not work if no
    data was ever read through the sysfs interface and the fan clock
    dividers have not been explicitely set yet either. The reason is that
    data->fan_div[nr] may currently be used before it is initialized from
    the chip register values. The fix is to explicitely initialize
    data->fan_div[nr] before using it.

    Bug reported, and fix tested, by Nicolas Mailhot.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Jean Delvare
     

29 Oct, 2005

3 commits


06 Sep, 2005

8 commits

  • The only part left in i2c-sensor is the VRM/VRD/VID handling code.
    This is in no way related to i2c, so it doesn't belong there. Move
    the code to hwmon, where it belongs.

    Note that not all hardware monitoring drivers do VRM/VRD/VID
    operations, so less drivers depend on hwmon-vid than there were
    depending on i2c-sensor.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • The only thing left in i2c-sensor.h are module parameter definition
    macros. It's only an extension of what i2c.h offers, and this extension
    is not sensors-specific. As a matter of fact, a few non-sensors drivers
    use them. So we better merge them in i2c.h, and get rid of i2c-sensor.h
    altogether.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • i2c_probe and i2c_detect now do the exact same thing and operate on
    the same data structure, so we can have everyone call i2c_probe.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Super-I/O find functions in hardware monitoring drivers can be tagged
    __init as they are only called from functions themselves tagged __init.
    Two of them (smsc47b397 and w83627ehf) already do, but the other four
    of them (it87, pc87360, smsc47m1 and w83627hf) did not.

    This saves a few bytes of memory after the drivers are loaded, 192 in
    the case of the it87 driver.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • We could refactor the error message 34 different i2c drivers print if
    i2c_detach_client() fails in this function itself. Saves quite a few
    lines of code. Documentation is updated to reflect that change.

    Note that this patch should be applied after Rudolf Marek's w83792d
    patches.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Kill normal_isa in header files, documentation and all chip drivers, as
    it is no more used.

    normal_i2c could be renamed to normal, but I decided not to do so at the
    moment, so as to limit the number of changes. This might be done later
    as part of the i2c_probe/i2c_detect merge.

    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Call the ISA chip drivers detection function directly instead of relying
    on i2c_detect. The net effect is that address lists won't be handled
    anymore, but they were mostly useless in the ISA case anyway (pc87360,
    smsc47m1, smsc47b397 had already dropped them).

    We don't need to handle multiple devices, all we may need is a way to
    force a given address instead of the original one (some drivers already
    do: sis5595, via686a, w83627hf), and, for drivers supporting multiple
    chips, a way to force one given kind. All this may be added later on
    demand, but I actually don't think there will be much demand.

    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Convert the 10 ISA hardware monitoring drivers (it87, lm78, pc87360,
    sis5595, smsc47b397, smsc47m1, via686a, w83627hf, w83627ehf, w83781d) to
    explicitely register with i2c-isa. For hybrid drivers (it87, lm78,
    w83781d), we now have two separate instances of i2c_driver, one for the
    I2C interface of the chip, and one for ISA interface. In the long run,
    the one for ISA will be replaced with a different driver type.

    At this point, all drivers are working again, except for missing
    dependencies in Kconfig.

    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare