13 Jan, 2012

1 commit


09 Jan, 2011

1 commit


17 Dec, 2009

1 commit


10 Dec, 2009

2 commits


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
     

07 Aug, 2008

2 commits

  • Drop the reset parameter of the w83627hf driver. It seems it wasn't
    that useful. It was dropped from the Linux 2.4 version of this driver
    back in July 2004.

    The only users who have reported that they were still using this
    parameter, needed it to switch the chip from automatic fan speed
    control back to manual mode. Now that the driver creates pwmN_enable
    sysfs files, users will be able to use these files instead, which is
    way less agressive.

    Signed-off-by: Jean Delvare
    Acked-by: Dominik Geyer

    Jean Delvare
     
  • Adds support for pwm_enable sysfs interface for the w83627hf driver.

    Signed-off-by: Dominik Geyer
    Signed-off-by: Jean Delvare

    Dominik Geyer
     

08 Feb, 2008

4 commits

  • We can handle the beep enable bit as any other beep mask bit for
    slightly smaller code.

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

    Jean Delvare
     
  • The new libsensors needs these individual alarm and beep files. The
    code was copied from the w83781d driver. I've tested the alarm files
    on a W83627THF. I couldn't test the beep files as the system in
    question doesn't have a speaker.

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

    Jean Delvare
     
  • If VBAT monitoring is disabled, enable it. Bug reported on the
    lm-sensors trac system:
    http://lm-sensors.org/ticket/2282
    This is the exact same patch that was applied to the w83627ehf driver
    6 months ago.

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

    Jean Delvare
     
  • 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
     

08 Nov, 2007

2 commits

  • patch changes 2 macros to incorporate the +1, and drops the +1 from all the
    callers. This also allows a 'reroll' of an expanded loop, and adjusting
    indexes and loop limits on another.

    Signed-off-by: Jim Cromie
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jim Cromie
     
  • This hoists nr-1 offset out of (show|store)_temp_*(.*) callbacks, and into
    SENSOR_DEVICE_ATTRs for sysfs tempN_X files. It also combines
    temp[1] and temp_add[2] (array) fields in w83627hf_data into 3 elem arrays,
    which simplifies special-case handling of nr, allowing simplification
    of callback bodies and rerolling a flattened loop in
    w83627hf_update_device(struct device *dev).

    The array conversion changes temp[1] from u8 to u16, but this was
    happening implicitly via the helper functions anyway.

    Signed-off-by: Jim Cromie
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    Jim Cromie
     

14 Oct, 2007

3 commits

  • The bank switching code assumes that the bank selector is set to 0
    when the driver is loaded. This might not be the case. This is exactly
    the same bug as was fixed in the w83627ehf driver two months ago:
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0956895aa6f8dc6a33210967252fd7787652537d

    In practice, this bug was causing the sensor thermal types to be
    improperly reported for my W83627THF the first time I was loading the
    w83627hf driver. From the driver history, I'd say that it has been
    broken since September 2005 (when we stopped resetting the chip by
    default at driver load.)

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

    Jean Delvare
     
  • We need to read the fan clock dividers at initialization time,
    otherwise the code in store_fan_min() may use uninitialized values.
    That's pretty much the same bug and same fix as for the w83627ehf
    driver last month.

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

    Jean Delvare
     
  • This patch to drivers/hwmon/w83627hf converts many sysfs items from DEVICE_ATTRs
    to SENSOR_DEVICE_ATTRs, and replaces macros which expand to define redundant
    callbacks, with callbacks which use the SENSOR_DEV.nr to know what to do.

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

    Jim Cromie
     

10 Oct, 2007

4 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

3 commits


28 May, 2007

1 commit


08 May, 2007

3 commits

  • Convert the w83627hf driver from the nonsensical i2c-isa hack to a
    regular platform driver.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Some preliminary cleanups to the w83627hf hardware monitoring driver,
    to make its conversion to a platform driver easier:

    * Add missing include ioport.h
    * Drop unused enum value any_chip
    * Group module parameters
    * Define and use DRVNAME
    * Drop unused struct member lm75
    * Move the handling of force_addr and device activation to
    w83627hf_find
    * Consistently use local type in w83627hf_init_client

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Some hardware monitoring drivers create the VID/VRM interface files
    conditionally depending on the chip model or configuration. We should
    only call vid_which_vrm() when we are actually going to create the
    files. Not only it is more logical and efficient that way, but it also
    prevents printing unnecessary warnings such as the one reported here:
    http://lists.lm-sensors.org/pipermail/lm-sensors/2007-February/018954.html

    Signed-off-by: Jean Delvare

    Jean Delvare
     

15 Feb, 2007

1 commit


29 Sep, 2006

1 commit


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
     

27 Jun, 2006

1 commit

  • acquired (aquired)
    contiguous (contigious)
    successful (succesful, succesfull)
    surprise (suprise)
    whether (weather)
    some other misspellings

    Signed-off-by: Andreas Mohr
    Signed-off-by: Adrian Bunk

    Andreas Mohr
     

24 Mar, 2006

3 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
     
  • Add support for the Winbond W83687THF chip to the w83627hf hardware
    monitoring driver. This new chip is almost similar to the already
    supported W83627THF chip, except for VID and a few other minor
    changes.

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

    Jean Delvare
     
  • 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
     

06 Jan, 2006

3 commits