24 Aug, 2011

1 commit


23 Aug, 2011

1 commit

  • Replace unnecessary if with else statement.

    This fixes the following (false) compile warning reported with some combinations
    of C compiler version and configuration.

    drivers/hwmon/ntc_thermistor.c: In function 'ntc_show_temp':
    drivers/hwmon/ntc_thermistor.c:225: warning: 'low' may be used uninitialized in
    this function
    drivers/hwmon/ntc_thermistor.c:225: note: 'low' was declared here
    drivers/hwmon/ntc_thermistor.c:225: warning: 'high' may be used uninitialized in
    this function
    drivers/hwmon/ntc_thermistor.c:225: note: 'high' was declared here
    drivers/hwmon/ntc_thermistor.c:294: warning: 'temp' may be used uninitialized in
    this function

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     

12 Aug, 2011

3 commits

  • rs_resp is dynamically allocated in aem_read_sensor(), so it should be freed
    before exiting in every case. This collects the kfree and the return at
    the end of the function.

    Signed-off-by: Julia Lawall
    Signed-off-by: Guenter Roeck
    Cc: stable@kernel.org # 2.6.27+

    Julia Lawall
     
  • pmbus_clear_faults() attempts to clear faults on non-existing real pages.
    As a result, the command error bit in the status register is set, and faults
    are not really cleared.

    All byte writes to non-zero pages are requests to clear the status register
    on that page. Since non-zero pages are virtual and do not exist on the chip,
    there is nothing to do, and such requests have to be ignored. This fixes
    above problem.

    Signed-off-by: Guenter Roeck
    Reviewed-by: Robert Coulson

    Guenter Roeck
     
  • With virtual pages and to be able to handle more chips, it is necessary to
    virtualise pmbus_write_byte().

    Signed-off-by: Guenter Roeck
    Reviewed-by: Robert Coulson

    Guenter Roeck
     

31 Jul, 2011

1 commit

  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging: (24 commits)
    hwmon: (lm90) Refactor reading of config2 register
    hwmon: (lm90) Make SA56004 detection more robust
    hwmon: (lm90) Simplify handling of extended local temp register
    hwmon: (pmbus) Add client driver for LM25066, LM5064, and LM5066
    hwmon: (max34440) Add support for peak attributes
    hwmon: (max8688) Add support for peak attributes
    hwmon: (max16064) Add support for peak attributes
    hwmon: (adm1275) Add support for peak attributes
    hwmon: (pmbus) Add support for peak attributes
    hwmon: Add new attributes to sysfs ABI
    hwmon: (pmbus) Strengthen check for status register existence
    hwmon: (pmbus) Add support for virtual pages
    hwmon: (pmbus) Support reading and writing of word registers in device specific code
    hwmon: (pmbus) Increase attribute name size
    hwmon: (pmbus) Add ADP4000, NCP4200 and NCP4208 to list of supported devices
    hwmon: (pmbus) Add support for VID output voltage mode
    hwmon: (pmbus) Move PMBus drivers to drivers/hwmon/pmbus
    hwmon: (coretemp) Add core/pkg threshold support to Coretemp
    hwmon: (lm95241) Add support for LM95231
    hwmon: LM95245 driver
    ...

    Linus Torvalds
     

29 Jul, 2011

16 commits


28 Jul, 2011

7 commits

  • This patch adds the core and pkg support to coretemp.
    These thresholds can be configured via the sysfs interfaces tempX_max
    and tempX_max_hyst. An interrupt is generated when CPU temperature reaches
    or crosses above tempX_max OR drops below tempX_max_hyst.

    This patch is based on the documentation in IA Manual vol 3A, that can be
    downloaded from here:
    http://download.intel.com/design/processor/manuals/253668.pdf

    Signed-off-by: Durgadoss R
    Signed-off-by: Guenter Roeck

    Durgadoss R
     
  • LM95231 is fully compatible to LM95241; only necessary change is to add
    chip detection.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • A hwmon driver for the National Semiconductor LM95245 dual temperature
    sensors chip.

    Signed-off-by: Alexander Stein
    Signed-off-by: Guenter Roeck

    Alexander Stein
     
  • Add support for Philips SA56004, an LM86 compatible temperature sensor.

    Signed-off-by: Stijn Devriendt
    Signed-off-by: Guenter Roeck

    Stijn Devriendt
     
  • Add support for NTC Thermistor series. In this release, the
    following thermistors are supported: NCP15WB473, NCP18WB473, NCP03WB473,
    and NCP15WL333. This driver is based on the datasheet of MURATA.

    The driver in the patch does conversion from the raw ADC value
    (either voltage or resistence) to temperature. In order to use
    voltage values as input, the circuit schematics should be provided
    with the platform data. A compensation table for each type of thermistor
    is provided for the conversion.

    Signed-off-by: Donggeun Kim
    Signed-off-by: MyungJoo Ham
    Signed-off-by: KyungMin Park
    Reviewed-by: Shubhrajyoti D
    Signed-off-by: Guenter Roeck

    Donggeun Kim
     
  • MAX1668 and compatibles have several external temperature sensors, but only a
    single FAULT status bit. If a fault occurs, the temperature reported on the
    affected sensors is 127 degrees C. Use this knowledge to report fault on
    external sensors.

    Signed-off-by: Guenter Roeck
    Acked-by: Jean Delvare

    Guenter Roeck
     
  • This patch adds support for MAX1668 and compatible temperature sensors.

    Signed-off-by: David George
    [guenter.roeck@ericsson.com: minor cleanup of probe error path]
    Signed-off-by: Guenter Roeck

    David George
     

27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

26 Jul, 2011

10 commits

  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (lm78) Become the maintainer
    hwmon: (lm78) Make ISA interface depend on CONFIG_ISA
    hwmon: (lm78) Avoid forward declarations
    hwmon: (sht15) Correct a comment mistake
    hwmon: (max1111) Avoid extra memory allocations
    hwmon: (it87) Add chassis intrusion detection support
    hwmon: (via-cputemp) Add VID reporting support
    hwmon-vid: Add support for VIA family 6 model D CPU
    hwmon: New driver sch5636
    hwmon: (sch5627) Factor out some code shared with sch5636 driver

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    fs: Merge split strings
    treewide: fix potentially dangerous trailing ';' in #defined values/expressions
    uwb: Fix misspelling of neighbourhood in comment
    net, netfilter: Remove redundant goto in ebt_ulog_packet
    trivial: don't touch files that are removed in the staging tree
    lib/vsprintf: replace link to Draft by final RFC number
    doc: Kconfig: `to be' -> `be'
    doc: Kconfig: Typo: square -> squared
    doc: Konfig: Documentation/power/{pm => apm-acpi}.txt
    drivers/net: static should be at beginning of declaration
    drivers/media: static should be at beginning of declaration
    drivers/i2c: static should be at beginning of declaration
    XTENSA: static should be at beginning of declaration
    SH: static should be at beginning of declaration
    MIPS: static should be at beginning of declaration
    ARM: static should be at beginning of declaration
    rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
    Update my e-mail address
    PCIe ASPM: forcedly -> forcibly
    gma500: push through device driver tree
    ...

    Fix up trivial conflicts:
    - arch/arm/mach-ep93xx/dma-m2p.c (deleted)
    - drivers/gpio/gpio-ep93xx.c (renamed and context nearby)
    - drivers/net/r8169.c (just context changes)

    Linus Torvalds
     
  • Declare myself the maintainer of the lm78 driver. I still have a
    running system with one of these chips.

    Also count myself as a co-author of the driver. With 34 commits over
    6 years, it seems fair.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • We should only include support for the ISA interface of the LM78/LM79
    if CONFIG_ISA is set. Not only this makes the driver somewhat smaller
    on most architectures, but this also avoids poking at random I/O
    ports on these architectures.

    This is very similiar to what was done for the w83781d driver in
    October 2008.

    Signed-off-by: Jean Delvare
    Cc: Dean Nelson

    Jean Delvare
     
  • Move code around to avoid several forward declarations. Also group
    ISA-related functions together, to make future changes easier.

    Signed-off-by: Jean Delvare
    Cc: Dean Nelson

    Jean Delvare
     
  • sht15_store_heater() is called on _write_ access to heater_enable.

    Signed-off-by: Vivien Didelot
    Signed-off-by: Jean Delvare

    Vivien Didelot
     
  • We can allocate the tx and rx buffers as part of our data structure.
    Doing so is faster and spares memory.

    Signed-off-by: Jean Delvare
    Tested-by: Stanislav Brabec

    Jean Delvare
     
  • Add chassis intrusion detection support for all supported devices,
    using the standard interface.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • At least VIA family 6 model D CPU report the VID settings in a MSR,
    so expose the value to user-space. Not sure about model A.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck
    Tested-by: Jeff Rickman

    Jean Delvare
     
  • The VIA family 6 model D CPU (C7-D, Eden 90 nm) can use two different
    VID tables, we have to check the value of a MSR to decide which one to
    use.

    Signed-off-by: Jean Delvare
    Acked-by: Guenter Roeck
    Tested-by: Jeff Rickman

    Jean Delvare