08 Oct, 2009
1 commit
-
In module unload, lis3lv02d core driver sysfs clean up was not called.
Signed-off-by: Samu Onkalo
Acked-by: Daniel Mack
Cc: Éric Piel
Cc: "Trisal, Kalhan"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
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
02 Oct, 2009
1 commit
-
[akpm@linux-foundation.org: fix KVM]
Signed-off-by: Alexey Dobriyan
Acked-by: Mike Frysinger
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
24 Sep, 2009
8 commits
-
* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
hwmon: (ltc4245) Clear faults at startup
hwmon: (ltc4215) Clear faults at startup
hwmon: (coretemp) Add Lynnfield CPU
hwmon: (coretemp) Add support for Penryn mobile CPUs
hwmon: (coretemp) Fix Atom CPUs support
hwmon: Delete deprecated FSC drivers
hwmon: (adm1031) Add sysfs files for temperature offsets -
When power is applied to the ltc4245 chip it sometimes reports spurious
faults, which are exposed as alarms in the hwmon output. Clear the fault
register when the driver is installed to clear the alarms.Signed-off-by: Ira W. Snyder
Signed-off-by: Jean Delvare -
When power is applied to the ltc4215 chip it sometimes reports spurious
faults. The faults are not yet exposed via sysfs, however it may be useful
for userspace to read the fault register directly with the i2cget command.
Clear the fault register when the driver is installed so userspace doesn't
have to worry about spurious fault indications.Signed-off-by: Ira W. Snyder
Signed-off-by: Jean Delvare -
Add Lynnfield processor support. Lynnfield is a quad-core Nehalem
based microprocessor for Desktop market, which is introduced in
September 2009.Signed-off-by: Huaxu Wan
Signed-off-by: Kent Liu
Acked-by: Rudolf Marek
Signed-off-by: Jean Delvare -
Following patch adds support for mobile Penryn CPUs. Intel documents this
poorly. I asked the Coretemp author for some help. This is totally untested and
may not work. Please test!Signed-off-by: Rudolf Marek
Cc: Huaxu Wan
Cc: Kent Liu
Signed-off-by: Jean Delvare -
Fix Atom CPUs support. Intel documents TjMax at 90 degrees C but
some Atoms may have 125 degrees C (this is undocumented speculation).Signed-off-by: Rudolf Marek
Cc: Huaxu Wan
Cc: Kent Liu
Signed-off-by: Jean Delvare -
The legacy fscpos and fscher drivers have been replaced by the unified
fschmd driver. The transition period is over now, we can delete them.Signed-off-by: Jean Delvare
Acked-by: Hans de Goede -
The ADM1030/ADM1031 chips have temperature offset registers, for both the
local and remote temperature sensors. Following the example set forth in
the LM90/ADM1032 driver, expose the offset registers to userspace.Signed-off-by: Ira W. Snyder
Signed-off-by: Jean Delvare
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 -
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 -
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 -
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
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 -
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 -
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 -
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 -
Signed-off-by: Daniel Mack
Acked-by: Pavel Machek
Cc: Eric Piel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
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 -
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 -
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
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
...
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 -
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
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/2182Signed-off-by: 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 -
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 -
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 -
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 -
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 -
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
14 Aug, 2009
1 commit
28 Jul, 2009
2 commits
-
On newer Asus boards the "upper" limit of a sensor is encoded as
delta from the "lower" limit. Fix the driver to correctly handle
this case.Signed-off-by: Luca Tettamanti
Tested-by: Alex Macfarlane Smith
Signed-off-by: Jean Delvare -
The SMSC LPC47M233 and LPC47M292 chips have the same device ID but
are not compatible.Signed-off-by: Jean Delvare
Cc: Juerg Haefliger
Acked-by: Hans de Goede
18 Jul, 2009
1 commit
-
Add support for the ADC controller on the S3C series of processors to
drivers/hwmon for use with hardware monitoring systems.Signed-off-by: Ben Dooks
Acked-by: Jean Delvare
Signed-off-by: Ben Dooks
11 Jul, 2009
3 commits
-
Switch the AB9, AB9 QuadQT and IX38 QuadGT over from port
probing to the preferred DMI probe method.Signed-off-by: Alistair John Strachan
Tested-by: dan
Tested-by: Nygel Lyndley
Tested-by: Dmitriy Fedchenko
Acked-by: Hans de Goede
Signed-off-by: Jean Delvare -
Signed-off-by: Joe Perches
Signed-off-by: Jean Delvare -
Add omitted update_lock to one switch/case in set_div.
Signed-off-by: Jiri Slaby
Acked-by: Hans J. Koch
Signed-off-by: Jean Delvare