15 Aug, 2010
13 commits
-
Add support for W83667HG-B (very similar to the W83667HG).
Signed-off-by: Guenter Roeck
Signed-off-by: Jean Delvare -
- Moved fan pwm register array pointers into per-instance data.
- Only read fan pwm data for installed/supported fans.
- Update fan max output and fan step output information from data in
registers.
- Create max_output and step_output attribute files only if respective
fan pwm registers exist.Signed-off-by: Guenter Roeck
Signed-off-by: Jean Delvare -
SMSC's EMC2103 family of temperature/fan controllers have 1
onboard and up to 3 external temperature sensors, and allow
closed-loop control of one fan. This patch adds support for
them.Signed-off-by: Steve Glendinning
Signed-off-by: Jean Delvare -
Fault files are for hardware failures that can be reported. So far
we've seen chips reporting such failures for temperature sensors and
fans, but not for voltages. Remove in[0-*]_fault for now. It can be
added back later if really needed, but I doubt it.Signed-off-by: Jean Delvare
Acked-by: Guenter Roeck -
Add currX_alarm, currX_min_alarm, currX_max_alarm and currX_beep
attributes to the hwmon sysfs API.currX_min_alarm and currX_max_alarm are already supported by the LTC4215
and LTC4245 drivers. currX_alarm is supported by the LTC4261 driver.Signed-off-by: Guenter Roeck
Signed-off-by: Jean Delvare -
Added _lcrit and _crit to voltage attributes.
Added _lcrit to temperature attributes.Signed-off-by: Guenter Roeck
Signed-off-by: Jean Delvare -
* The dev variable is never used.
* Detect functions only need to set info->type, not client->name.
* Include the device address in the log message.Signed-off-by: Jean Delvare
Cc: George Joseph
Cc: Ken Milmore -
Some voltage sensors can be wired internally to the IT87xxF chip's own
power supply channels. In that case, we can inform user-space that the
wiring is known by exporting proper labels for these sensors.Signed-off-by: Jean Delvare
-
There is a shutdown feature at suspend it can be enabled to
reduce current consumption and resume it can be switched off.Signed-off-by: Shubhrajyoti Datta
Signed-off-by: Jean Delvare -
Add back the power interface we lost due to a slight misunderstanding of
the maintainers wishes.Signed-off-by: Alan Cox
Signed-off-by: Jean Delvare -
Add support for exposing all GPIO pins as analog voltages. Though this is
not an ideal use of the chip, some hardware engineers may decide that the
LTC4245 meets their design requirements when studying the datasheet.The GPIO pins are sampled in round-robin fashion, meaning that a slow
reader will see stale data. A userspace application can detect this,
because it will get -EAGAIN when reading from a sysfs file which contains
stale data.Users can choose to use this feature on a per-chip basis by using either
platform data or the OF device tree (where applicable).Signed-off-by: Ira W. Snyder
Signed-off-by: Jean Delvare -
It's not OK to call platform_device_add_resources() multiple times
in a row. Despite its name, this functions sets the resources, it
doesn't add them. So we have to prepare an array with all the
resources, and then call platform_device_add_resources() once.Before this fix, only the last I/O resource would be actually
registered. The other I/O resources were leaked.Signed-off-by: Jean Delvare
Cc: Jim Cromie
Cc: stable@kernel.org -
Move the if(err) statement after the if into the if branch indicated by its
indentation. The preceding if(err) test implies that err cannot be nonzero
unless the if branch is taken.The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r disable braces5@
position p1,p2;
statement S1,S2;
@@(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)@script:python@
p1 << r.p1;
p2 << r.p2;
@@if (p1[0].column == p2[0].column):
cocci.print_main("branch",p4)
cocci.print_secs("after",p5)
//Signed-off-by: Julia Lawall
Signed-off-by: Jean Delvare
14 Aug, 2010
27 commits
-
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
[IA64] Add latest crop of syscalls
[IA64] Fix 64-bit atomic routines to return "long" -
Three new syscalls for 2.6.36: prlimit64, fanotify_init and
fanotify_mark. Wire up the ia64 syscall table for them.Signed-off-by: Tony Luck
-
* 'msm-mmc_sdcc' of git://codeaurora.org/quic/kernel/dwalker/linux-msm:
mmc: msm_sdcc: Rename config MMC_MSM7X00A to MMC_MSM
mmc: msm_sdcc: Compile the driver for msm7x30
mmc: msm: fix up build breakage on !PM -
* 'stable/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6:
firmware: ibft depends on SCSI
ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present. -
* git://git.infradead.org/~dwmw2/ideapad-2.6:
Call acpi_video_register() in intel_opregion_init() failure path
ideapad: Only allow camera state to be set to 0 or 1
ideapad: Stop using global variables
Add Lenovo ideapad driver -
* 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86, UV: Make kdump avoid stack dumps - fix !CONFIG_KEXEC breakage
x86, UV: Initialize BAU hub map
x86, UV: Make kdump avoid stack dumps -
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
ext4: clean up compiler warning in start_this_handle() -
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
[CPUFREQ] acpi-cpufreq: add missing __percpu markup -
* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
watchdog: hpwdt (12/12): Make NMI decoding a compile-time option
watchdog: hpwdt (11/12): move NMI-decoding init and exit to seperate functions
watchdog: hpwdt (10/12): Use "decoding" instead of "sourcing"
watchdog: hpwdt (9/12): hpwdt_pretimeout reorganization
watchdog: hpwdt (8/12): implement WDIOC_GETTIMELEFT
watchdog: hpwdt (7/12): allow full range of timer values supported by hardware
watchdog: hpwdt (6/12): Introduce SECS_TO_TICKS() macro
watchdog: hpwdt (5/12): Make x86 assembly ifdef guard more strict
watchdog: hpwdt (4/12): Despecificate driver from iLO2
watchdog: hpwdt (3/12): Group NMI sourcing specific items together
watchdog: hpwdt (2/12): Group options that affect watchdog behavior together
watchdog: hpwdt (1/12): clean-up include-files. -
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
setlocalversion: fix version for untaged nontip mercurial revs
Fix CONFIG_CROSS_COMPILE issue in .config -
* 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
kconfig: Fix warning: ignoring return value of 'fgets'
kconfig: Fix warning: ignoring return value of 'fwrite'
nconfig: Fix segfault when menu is empty
kconfig: fix tristate choice with minimal config
kconfig: fix savedefconfig for tristate choices -
* 'bkl/ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing:
bkl: Remove locked .ioctl file operation
v4l: Remove reference to bkl ioctl in compat ioctl handling
logfs: kill BKL -
We need to set io_lines to 10 unconditionally.
Reported-by: Komuro
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski
Signed-off-by: Linus Torvalds -
Remove an extraneous no_printk() in mm/nommu.c that got missed when the
function got generalised from several things that used it in commit
12fdff3fc248 ("Add a dummy printk function for the maintenance of unused
printks").Without this, the following error is observed:
mm/nommu.c:41: error: conflicting types for 'no_printk'
include/linux/kernel.h:314: error: previous definition of 'no_printk' was hereReported-by: Michal Simek
Signed-off-by: David Howells
Signed-off-by: Linus Torvalds -
Mark arguments to certain system calls as being const where they should be but
aren't. The list includes:(*) The filename arguments of various stat syscalls, execve(), various utimes
syscalls and some mount syscalls.(*) The filename arguments of some syscall helpers relating to the above.
(*) The buffer argument of various write syscalls.
Signed-off-by: David Howells
Acked-by: David S. Miller
Signed-off-by: Linus Torvalds -
These have been broken (returning "int") since the dawn of
time. But there were no users that needed the whole value
until commit
424acaaeb3a3932d64a9b4bd59df6cf72c22d8f3
rwsem: wake queued readers when writer blocks on active read lockmade this change:
- (rwsem_atomic_update(0, sem) & RWSEM_ACTIVE_MASK))
- /* Someone grabbed the sem already */
+ rwsem_atomic_update(0, sem) < RWSEM_WAITING_BIAS)
+ /* Someone grabbed the sem for write already */RWSEM_ACTIVE_MASK is 0xffffffffL, so the old code only looked
at the low order 32-bits. The new code needs to see all 64 bits.Signed-off-by: Tony Luck
-
The last user is gone, so we can safely remove this
Signed-off-by: Arnd Bergmann
Cc: John Kacur
Cc: Al Viro
Cc: Thomas Gleixner
Signed-off-by: Frederic Weisbecker -
There are no more users of struct file_operations:ioctl. These
can be safely removed.Signed-off-by: Frederic Weisbecker
Cc: Arnd Bergmann
Cc: Mauro Carvalho Chehab
Cc: John Kacur
Cc: Hans Verkuil -
logfs does not need the BKL, so use ->unlocked_ioctl instead
of ->ioctl in file operations.Signed-off-by: Arnd Bergmann
Signed-off-by: Joern Engel
[ fixed trivial conflict ]
Signed-off-by: Frederic Weisbecker -
hpwdt is quite functional without the NMI decoding feature.
This change lets users disable the NMI portion at compile-time
via the new HPWDT_NMI_DECODING config option.Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
Move NMI-decoding initialisation and exit code to seperate functions so that
we can ifdef-out parts of it in the future.Also, this is for a device, so let's use dev_info instead of printk.
Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
The term "decoding" more clearly explains what hpwdt is doing. It isn't
just finding the source of the interrupt, but rather aids in decoding what
the interrupt means.Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
Reorganize this function to remove excess indentation and highlight
the single return code. (No functional change).Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
Let applications check the amount of time left before the watchdog will fire.
Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
The hpwdt timer is a 16 bit value with 128ms resolution.
Let applications use this entire range.Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
Define a macro to convert from seconds to timer ticks.
Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck -
The 32-bit assembly is guarded by an #ifndef CONFIG_X86_64. Kconfig prevents
us from building this driver on !X86, so that happens to suffice - but we
should really lock it down to #ifdef CONFIG_X86_32.Signed-off-by: dann frazier
Acked-by: Thomas Mingarelli
Signed-off-by: Wim Van Sebroeck