08 Oct, 2009

1 commit


05 Oct, 2009

1 commit

  • There is no point in implementing a detect callback for the LTC4215
    and LTC4245, as these devices can't be detected. It was there solely
    to handle "force" module parameters to instantiate devices, but now
    we have a better sysfs interface that can do the same.

    So we can get rid of the ugly module parameters and the detect
    callbacks. This shrinks the binary module sizes by 36% and 46%,
    respectively.

    Signed-off-by: Jean Delvare
    Cc: Ira W. Snyder

    Jean Delvare
     

02 Oct, 2009

1 commit


24 Sep, 2009

8 commits


23 Sep, 2009

4 commits

  • This makes it consistent with other buses (platform, i2c, vio, ...). I'm
    not sure why we use the prefixes, but there must be a reason.

    This was easy enough to do it, and I did it.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Cc: Dmitry Torokhov
    Cc: Samuel Ortiz
    Cc: "John W. Linville"
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • Make the code a little bit nicer, and shorter.

    Signed-off-by: Anton Vorontsov
    Cc: Kaiwan N Billimoria
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • Make the code a little bit nicer, and shorter.

    Signed-off-by: Anton Vorontsov
    Cc: Marc Pignat
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Acked-by: Marc Pignat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • 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
     

22 Sep, 2009

8 commits

  • On resume from suspend, the driver currently resets the logical state as
    if it was brought up from halt. This patch uses the
    dev_pm_ops.resume/restore methods to synchronize the hardware with the
    memorized logical state, in effect bringing back the accelerometer and
    backlight to the state prior to suspend. Works for both suspend to ram
    and hibernation. The patch has zero effect on the running state.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     
  • If already requested, gpio_data and irq should be freed in the case of an
    error.

    Signed-off-by: Roel Kluin
    Acked-by: Jonathan Cameron
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Occasionally it is helpful to be able to turn a temperature sensor off
    (for example if it's making unwanted electrical noise). This patch
    adds a sysfs node to put any adm1021 compatible device into low power mode.

    Signed-off-by: Michael Abbott
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Abbott
     
  • The ADM1023 temperature sensor supports higher resolution for its external
    sensor (sensitivity of 1/8 deg C). This patch makes this higher
    resolution available through the appropriate temperature sysfs nodes.

    Curiously, this functionality was available in the 2.4 kernel driver (but
    formatted in a less helpful manner).

    Cc: Jean Delvare
    Signed-off-by: Michael Abbott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Abbott
     
  • Signed-off-by: Daniel Mack
    Acked-by: Pavel Machek
    Cc: Eric Piel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     
  • This enabled power management functions for the SPI transport layer of the
    lis3 devices. The device's suspend mode is only entered in case no wakeup
    threshold has been given. In this case, the device is supposed to wake up
    the system and must thus not be put to deep sleep.

    [randy.dunlap@oracle.com: fix lis3-spi for CONFIG_PM=n]
    Signed-off-by: Daniel Mack
    Acked-by: Pavel Machek
    Cc: Eric Piel
    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     
  • This offers a way for platforms to define flags and thresholds for the
    free-fall/wakeup functions of the lis302d chips.

    More registers needed to be seperated as they are specific to the

    Signed-off-by: Daniel Mack
    Acked-by: Pavel Machek
    Cc: Eric Piel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     
  • Enable the coretemp driver on an Intel Atom.

    I'm not sure if the readings are correct, however - on my 330, the driver
    reports values between 27 and 41 °C (with core1 being about 8°C hotter
    than core0, given the same load). Maybe the maximum temperature of 100 °C
    is wrong for Atom CPUs.

    Cc: Arjan van de Ven
    Cc: Rudolf Marek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Riepe
     

19 Sep, 2009

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (55 commits)
    regulator: Voltage count for AB3100
    mfd: Convert WM8350 to use request_threaded_irq()
    mfd: Update MAINTAINERS patterns for WM831x
    mfd: Fix twl4030-power warnings
    regulator: AB3100 support
    rtc: AB3100 RTC support
    mfd: Fix ab3100-otp build failure
    mfd: OMAP: Board-specifc twl4030 DPS scripts for RX51 board
    mfd: Print warning for twl4030 out-of-order script loading
    mfd: Add support for TWL4030/5030 dynamic power switching
    mfd: AB3100 OTP readout
    regulator: Add Freescale MC13783 driver
    mfd: Add Freescale MC13783 driver
    mfd: AB3100 disable irq nosync
    mfd: AB3100 alter default setting
    mfd: AB3100 propagate error
    mfd: AB3100 accessor function cleanups
    rtc: Add support for RTCs on Wolfson WM831x devices
    regulator: get pcap data from the parent device
    input: PCAP2 misc input driver
    ...

    Linus Torvalds
     

17 Sep, 2009

2 commits

  • This driver adds support for the hardware monitoring features of
    the WM831x PMICs to the hwmon API. Monitoring is provided for
    the system voltages supported natively by the WM831x, the chip
    temperature, the battery temperature and the auxiliary inputs
    of the WM831x.

    Currently no alarms are supported, though digital comparators on
    the WM831x devices would allow these to be provided.

    Since the auxiliary and battery temperature input scaling depends
    on the system configuration the value is reported as a voltage to
    userspace.

    Signed-off-by: Mark Brown
    Acked-by: Jean Delvare
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • This driver provides reporting of the status supply voltage rails
    of the WM835x series of PMICs via the hwmon API.

    Signed-off-by: Mark Brown
    Acked-by: Jean Delvare
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

15 Sep, 2009

7 commits

  • The Winbond/Nuvoton WPCD377I is the reduced version of a Super-I/O
    which emulates the National Semiconductor LM96000 hardware monitoring
    chips, but without the hardware monitoring part. Instead of plain
    disabling the emulation, the vendor left the emulated chip visible,
    but all monitored values are always zero. This is rather confusing for
    the users. So detect this case and refuse to bind to such fake chips.

    This fixes lm-sensors ticket #2182:
    http://www.lm-sensors.org/ticket/2182

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Now that we have ACPI-based hardware monitoring drivers, and we will
    start telling users to use them instead of native drivers when I/O
    resources conflict, I think it would be good to clearly mark ACPI
    drivers as such in Kconfig.

    Also, in the case of monolithic kernels, I think the ACPI drivers
    should take precedence over native drivers, so they should be listed
    first in Makefile.

    Signed-off-by: Jean Delvare
    Cc: Luca Tettamanti

    Jean Delvare
     
  • Use the function resource_size, which reduces the chance of introducing
    off-by-one errors in calculating the resource size.

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    struct resource *res;
    @@

    - (res->end - res->start) + 1
    + resource_size(res)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jean Delvare

    Julia Lawall
     
  • Drivers should be including instead of .

    Signed-off-by: H Hartley Sweeten
    Cc: Alistair John Strachan
    Cc: Nicolas Boichat
    Cc: Juerg Haefliger
    Cc: Frank Seidel
    Acked-by: Jim Cromie
    Cc: "Mark M. Hoffman"
    Cc: Roger Lucas
    Signed-off-by: Jean Delvare

    H Hartley Sweeten
     
  • Add support for Texas Instruments TMP421/422/423 temperature sensor IC.

    TI's TMP421/422/423 are I2C temperature sensor chips. These chips are
    similar to TI's TMP401/411 chips, but with reduced functionality (only
    temperature measurement). The chips have one local sensor and up to
    three (TMP423) remote sensors.

    Signed-off-by: Andre Prendel
    Acked-by: Hans de Goede
    Signed-off-by: Jean Delvare

    Andre Prendel
     
  • We had a report about a mainboard for AMD family 0Fh processors not
    routing the 6th VID pin from the CPU to the hardware monitoring chip.

    While the vendor should have wired the pin (or, failing that, should
    have hardwired it to level high rather than low), the fact is that
    none of these processors are currently known to operate at the lower
    voltage levels which require the 6th VID pin. So, as a practical
    workaround, I propose to ignore the 6th VID pin for these CPUs.

    If this decision ever causes problems, we'll reconsider.

    Signed-off-by: Jean Delvare
    Cc: Frank Myhr
    Tested-by: Hleb Valoshka
    Cc: Rudolf Marek
    Cc: Andreas Herrmann

    Jean Delvare
     
  • Most known Abit motherboards have unique uguru chip IDs. However,
    some "refresh" boards keep the same chip ID but have a different
    DMI string. As our DMI board string matching is (necessarily)
    strict, some boards were failing DMI detection, and as the old
    probe method was also failing, the driver would not load.

    The only known boards affected by this problem are the IP35 Pro XE
    (vs IP35 Pro) and the AB9 Pro (vs AB9). Is it not sufficient to
    relax the match criteria, as some boards (e.g. the AB9 Quad GT)
    have different uguru chip IDs.

    This patch replaces the dmi_name string with a NULL terminated
    array of strings to be matched per uguru chip ID. It has been
    compile and runtime tested (thanks Rune).

    References: https://bugs.launchpad.net/bugs/298798

    Signed-off-by: Alistair John Strachan
    Tested-by: Rune Svendsen
    Acked-by: Hans de Goede
    Signed-off-by: Jean Delvare

    Alistair John Strachan
     

14 Aug, 2009

1 commit


28 Jul, 2009

2 commits


18 Jul, 2009

1 commit


11 Jul, 2009

3 commits