20 Sep, 2008

3 commits


16 Aug, 2008

1 commit

  • Not all AMD K8 have 6 VID pins, contrary to what was assumed in
    commit 116d0486bdefc11f71e567cadf0c47f788b4dd06. This commit broke
    support of older CPU models which have only 5 VID pins:
    http://bugzilla.kernel.org/show_bug.cgi?id=11329

    We need two entries in the hwmon-vid table, one for 5-bit VID models
    (K8 revision = F).
    This fixes bug #11329.

    Signed-off-by: Jean Delvare
    Acked-by: Frank Myhr
    Tested-by: Jean-Luc Coulon
    Signed-off-by: Linus Torvalds

    Jean Delvare
     

15 Aug, 2008

10 commits

  • Add in the CPUID for Nehalem chips.

    Signed-off-by: Darrick J. Wong
    Cc: Kent Liu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     
  • Currently, all sensors are read when the energy meter is queried via
    sysfs. This introduces a considerable amount of delay and variation in
    the sysfs reading, which is not desirable when trying to profile energy
    use. Therefore, read only the energy meters when a sysfs query comes in
    for them, and don't cache the results so that we always get the latest
    reading.

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

    Darrick J. Wong
     
  • On older machines, probing for a nonexistent AEM interface returned an
    IPMI error; when we saw this, we'd stop probing. On the x3650 M2 and
    (presumably) later, we are returned a value indicating success and a
    buffer full of garbage or zeroes. This causes the probe function to run
    in an infinite loop. To fix this, we add one last check--if the
    interface number we're looking for is higher than the number of
    interfaces that AEM claims to have, stop probing.

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

    Darrick J. Wong
     
  • Minor documentation update to reflect the current full name of the power
    management hardware interface and reflows the text a bit.

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

    Darrick J. Wong
     
  • Previously the driver was only using DMI to prevent smbus probing on
    non-Abit motherboards. However, since the manual probing method is
    brittle and prone to failure on some Abit motherboards (esp. the Abit
    IP35 Pro) it is better to use DMI to also read the board name and then
    decide whether or not to probe the bus.

    At the moment, we do not have a list of valid DMI name strings to use
    for existing and supported motherboards. This patch only implements DMI
    probing for the IP35 Pro. For motherboards that can not yet use DMI
    probing, a warning will be printed to the kernel log asking those users
    to email me their dmidecode output.

    The existing manual probing mechanism will be used if CONFIG_DMI is not
    enabled, if DMI probing fails (for DMI-unsupported motherboards), or if
    DMI probing fails and the "force" option is set (for DMI-supported
    motherboards). Ideally in the longer term this manual probing method
    would be removed.

    This patch should be safe to apply as it does not change the probing
    behaviour for most of the supported motherboards, just the IP35 Pro,
    which already has regressions filed against it in 2.6.26.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=11212

    Signed-off-by: Alistair John Strachan
    Acked-by: Hans de Goede
    Cc: "Mark M. Hoffman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alistair John Strachan
     
  • Export the sensor -> channel/dimm mapping in tempX_label.

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

    Darrick J. Wong
     
  • SPI driver for analog to digital converters national semiconductor
    ADC081S101, ADC124S501, ...

    Code for 8 channels by Tobias Himmer.

    This driver adds support for National Semiconductor ADCS chip
    family, where:

    * bb is the resolution in number of bits (8, 10, 12)
    * c is the number of channels (1, 2, 4, 8)
    * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500
    kSPS and 101 for 1 MSPS)

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Marc Pignat
    Cc: Tobias Himmer
    Cc: "Mark M. Hoffman"
    Cc: Jean Delvare
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marc Pignat
     
  • drivers/hwmon/w83791d.c: In function `w83791d_probe':
    drivers/hwmon/w83791d.c:1049: warning: unused variable `val1'

    Signed-off-by: Michael Borisov
    Cc: "Mark M. Hoffman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Borisov
     
  • Add support for Macbook v3 (sensors and accelerometer).

    Signed-off-by: Nicolas Boichat
    Cc: "Mark M. Hoffman"
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Guilherme M. Schroeder
     
  • This adds support for fans and temperature sensors on intel iMac.

    Tested on iMac 24" 2.8ghz (iMac8,1), it supports the following sensors:

    cpu A
    ambient
    gpu
    gpu diode
    gpu heatsink
    hd bay 1
    memory controller
    optical drive
    power

    Signed-off-by: Roberto De Ioris
    Cc: Nicolas Boichat
    Cc: Jean Delvare
    Cc: Mark M. Hoffman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roberto De Ioris
     

11 Aug, 2008

1 commit


07 Aug, 2008

14 commits


02 Aug, 2008

1 commit

  • * 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6:
    hwmon: needs new maintainer
    hwmon: (lm85) Simplify device initialization function
    hwmon: (lm85) Misc cleanups
    hwmon: (lm85) Don't write back cached values
    hwmon: (lm85) Drop dead code
    hwmon: (lm85) Coding-style cleanups
    hwmon: (lm75) add new-style driver binding
    hwmon: (lm75) cleanup/reorg
    hwmon: (adt7473) clarify an awkward bit of code
    hwmon: (adt7473) Remove unused defines
    hwmon: (dme1737) fix voltage scaling
    hwmon: (dme1737) probe all addresses
    hwmon: (dme1737) demacrofy for readability

    Linus Torvalds
     

01 Aug, 2008

10 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
     
  • More LM75 updates:

    - Teach the LM75 driver to use new-style driver binding:

    * Create a second driver struct, using new-style driver binding
    methods cribbed from the legacy code.

    * Add a MODULE_DEVICE_TABLE (for "newER-style binding")

    * The legacy probe logic delegates its work to this new code.

    * The legacy driver now uses the name "lm75_legacy".

    - More careful initialization. Chips are put into 9-bit mode so
    the current interconversion routines will never fail.

    - Save the original chip configuration, and restore it on exit.
    (Among other things, this normally turns off the mode where
    the chip is constantly sampling ... and thus saves power.)

    So the new-style code should catch all chips that boards declare,
    while the legacy code catches others. This particular coexistence
    strategy may need some work yet ... legacy modes might best be set
    up explicitly by some tool not unlike "sensors-detect". (Or else
    completely eradicated...)

    Signed-off-by: David Brownell
    Acked-by: Jean Delvare
    Signed-off-by: Mark M. Hoffman

    David Brownell
     
  • Minor cleanup and reorg of the lm75 code.

    - Kconfig provides a larger list of lm75-compatible chips

    - A top comment now says what the driver does (!) ... as in, just
    what sort of sensor is this??

    - Section comments now delineate the various sections of the driver:
    hwmon attributes, driver binding, register access, module glue.
    One driver binding function moved out of the attribute section,
    as did the driver struct itself.

    - Minor tweaks to legacy probe logic: correct a comment, and
    remove a pointless variable.

    - Whitespace, linelength, and comment fixes.

    This patch should include no functional changes. It's preparation
    for adding new-style (driver model) I2C driver binding.

    Signed-off-by: David Brownell
    Acked-by: Jean Delvare
    Acked-by: Laurent Pinchart
    Signed-off-by: Mark M. Hoffman

    David Brownell
     
  • Signed-off-by: Mark M. Hoffman
    Acked-by: Jean Delvare

    Mark M. Hoffman
     
  • All the *_MAX_ADDR defines are never used, so remove them. The number
    of registers of each type is already expressed by the *_COUNT defines.

    Signed-off-by: Jean Delvare
    Acked-by: Darrick J. Wong
    Signed-off-by: Mark M. Hoffman

    Jean Delvare
     
  • This patch fixes a voltage scaling issue for the sch311x device.

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

    Juerg Haefliger