08 Nov, 2007
16 commits
-
Fix value check in set_pwm_mode(). Instead of checking for chip variant there,
make pwmX_mode sysfs nodes only writable on f75375 variant.Signed-off-by: Riku Voipio
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
On thecus n2100, the bootloader does not setup fans to run. In order
to protect the user from frying their gear, start up fans on boot.Signed-off-by: Riku Voipio
Acked-by: Lennert Buytenhek
Signed-off-by: Mark M. Hoffman -
Allow initializing fans on systems where BIOS does not do that by
default.- define f75375s_platform_data in new file f75375s.h
- if platform_data was provided, set fans accordingly in f75375_init()
- split set_pwm_enable() to a sysfs callback and directly usable
set_pwm_enable_direct()Signed-off-by: Riku Voipio
Signed-off-by: Mark M. Hoffman -
Following the example of David Brownell's work on lm75:
- Create a second driver struct, using new-style driver binding methods.
- Rename the old driver struct as f75375_legacy_driver.
- Make the legacy bind/unbind logic delegate all its work.
Signed-off-by: Riku Voipio
Signed-off-by: Mark M. Hoffman -
Signed-off-by: Matthias Kaehlcke
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
At least the 2x Quad-Core Apple Mac Pro appears to have some over-heat
protection which suddenly powers off the whole box under load. This adds
support for the fans and temerature sensors in the Mac Pro - later some
"windwarm" a-like code should probably monitor the values. For now
manually tweaking the fans prevents the sudden shutdown for me.cd /sys/devices/platform/applesmc.768
for x in fan{1,2,3,4}; do
echo 1 > ${x}_manual
echo 1285 > ${x}_output
doneTwo sensors are 0, while four are 129 °C, those might be removed again,
later.Signed-off-by: René Rebe
Cc: Nicolas Boichat
Cc: Jean Delvare
Signed-off-by: Andrew Morton
Signed-off-by: Mark M. Hoffman -
Signed-of-by: Hans de Goede
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Clean up printk use in ibmpex.
Signed-off-by: Darrick J. Wong
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
New driver to read FB-DIMM temperature sensors on systems with the
Intel 5000 series chipsets.Signed-off-by: Darrick J. Wong
Signed-off-by: Mark M. Hoffman -
Spotted by the Coverity checker. (Thanks Adrian Bunk)
Signed-off-by: Riku Voipio
Signed-off-by: Mark M. Hoffman -
Don't dereference "data" when we know for sure it's NULL.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk
Signed-off-by: Mark M. Hoffman -
Use sysfs_create_group instead of individual calls to device_create_file by
splitting sis5595_attributes_opt into sis5595_attributes_in4 and
sis5595_attributes_temp1.Signed-off-by: Ivo Manca
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Add individual alarm files needed by the new libsensors.
Signed-off-by: Ivo Manca
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
patch changes 2 macros to incorporate the +1, and drops the +1 from all the
callers. This also allows a 'reroll' of an expanded loop, and adjusting
indexes and loop limits on another.Signed-off-by: Jim Cromie
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
This hoists nr-1 offset out of (show|store)_temp_*(.*) callbacks, and into
SENSOR_DEVICE_ATTRs for sysfs tempN_X files. It also combines
temp[1] and temp_add[2] (array) fields in w83627hf_data into 3 elem arrays,
which simplifies special-case handling of nr, allowing simplification
of callback bodies and rerolling a flattened loop in
w83627hf_update_device(struct device *dev).The array conversion changes temp[1] from u8 to u16, but this was
happening implicitly via the helper functions anyway.Signed-off-by: Jim Cromie
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman -
Update the hwmon sysfs interface documentation to include a specification
for power meters.Signed-off-by: Darrick J. Wong
Acked-by: Jean Delvare
Signed-off-by: Mark M. Hoffman
07 Nov, 2007
2 commits
-
Reported by Al Viro.
This fixes it:
[AC]FLAGS -> KBUILD_[AC]FLAGS conversion in Makefile-i386.
Signed-off-by: Jeff Dike
Cc: Al Viro
Cc: Sam Ravnborg
Signed-off-by: Linus Torvalds
06 Nov, 2007
22 commits
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
9p: add missing end-of-options record for trans_fd
9p: return NULL when trans not found
9p: use copy of the options value instead of original
9p: fix memory leak in v9fs_get_sb -
The list of options that the fd transport accepts is missing end-of-options
marker. This patch adds it.Signed-off-by: Latchesar Ionkov
Acked-by: Eric Van Hensbergen -
v9fs_match_trans function returns arbitrary transport module instead of NULL
when the requested transport is not registered. This patch modifies the
function to return NULL in that case.Signed-off-by: Latchesar Ionkov
Acked-by: Eric Van Hensbergen -
v9fs_parse_options function uses strsep which modifies the value of the
v9ses->options field. That modified value is later passed to the function
that creates the transport potentially making the transport creation
function to fail.This patch creates a copy of v9ses->option field that v9fs_parse_options
function uses instead of the original value.Signed-off-by: Latchesar Ionkov
Acked-by: Eric Van Hensbergen -
This patch fixes a memory leak in v9fs_get_sb.
Signed-off-by: Latchesar Ionkov
Acked-by: Eric Van Hensbergen -
* 'drm-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6:
drm: DRM: fix memset size error
drm: remove remnants of DRM_COPY_FROM/TO_USER_IOCTL
drm: remove second forward decleration of drm device struct. -
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
libata: handle broken cable reporting
pata_hpt37x: Fix outstanding bug reports on the HPT374 and 37x cable detect
ata_piix: Add additional PCI identifier for 40 wire short cable
pata_serverworks: Fix problem with some drive combinations
libata: Don't disable dipm with SET FEATURES
libata and bogus LBA48 drives -
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
phylib: Silence driver registration
phylib: Add ID for Marvell 88E1240
82596: free nonexistent resource fix
SUNHME: Fix missing NETIF_F_VLAN_CHALLENGED on PCI happy meals -
The size passing to memset is wrong.
Signed-off-by: Li Zefan
Signed-off-by: Dave Airlie -
This is a bug in the savage driver since I introduced these changes.
Signed-off-by: Dave Airlie
-
Signed-off-by: Dave Airlie
-
Keeping the list in sync with the old IDE driver
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Li Zefan
Cc: Thomas Gleixner
Cc: john stultz
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Fix system call defines for system call 180 and 181 to match the underlying
system call table function entries. System call 180 calls sys_pread64, and
181 calls sys_pwrite64, so make the definitions match.Signed-off-by: Greg Ungerer
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Release the crypt_stat hash mutex on allocation error. Check for error
conditions when doing crypto hash calls.Signed-off-by: Michael Halcrow
Reported-by: Kazuki Ohta
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The extent_offset is getting incremented twice per loop iteration through any
given page. It should only be getting incremented once. This bug should only
impact hosts with >4K page sizes.Signed-off-by: Michael Halcrow
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Remove panic from phonedev. See
http://bugzilla.kernel.org/show_bug.cgi?id=9266
for details (phonedev panics if unregistering device not registered).
Signed-off-by: Matti Linnanvuori
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
commit 4ae3f847e49e3787eca91bced31f8fd328d50496 ("md: raid5: fix
clearing of biofill operations") did not get applied correctly,
presumably due to substantial similarities between handle_stripe5 and
handle_stripe6.This patch moves the chunk of new code from handle_stripe6 (where it isn't
needed (yet)) to handle_stripe5.Signed-off-by: Neil Brown
Cc: "Dan Williams"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Make virtcons_probe() __devinit.
Fixes this section warning:WARNING: vmlinux.o(.text+0x14c10b): Section mismatch: reference to .init.text:hvc_alloc (between 'virtcons_probe' and 'ac_register_board')
Signed-off-by: Randy Dunlap
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Change the name of this data to use a name (suffix) that is whitelisted
by MODPOST so that the section warning is fixed (not generated).WARNING: vmlinux.o(.data+0x1b140): Section mismatch: reference to .init.text:m48t59_rtc_probe (between 'm48t59_rtc_platdrv' and 'm48t59_nvram_attr')
Signed-off-by: Randy Dunlap
Acked-by: Alessandro Zummo
Cc: David Brownell
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
KERNEL_DEFINES needs whitespace trimmed, otherwise the whitespace crunching
done by make fools the patsubst which is used to remove KERNEL_DEFINES from
USER_CFLAGS.Signed-off-by: Jeff Dike
Cc: Sam Ravnborg
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Fix an incompatible-pointer warning.
Signed-off-by: WANG Cong
Signed-off-by: Jeff Dike
Cc: Jens Axboe
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds