deliverable/linux.git
19 years ago[PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers
Jean Delvare [Tue, 19 Apr 2005 04:16:59 +0000 (21:16 -0700)] 
[PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers

The it87 and via686a hardware monitoring drivers each create a sysfs
file named "alarms" in R/W mode, while they should really create it in
read-only mode. Since we don't provide a store function for these files,
write attempts to these files will do something undefined (I guess) and
bad (I am sure). My own try resulted in a locked terminal (where I
attempted the write) and a 100% CPU load until next reboot.

As a side note, wouldn't it make sense to check, when creating sysfs
files, that readable files have a non-NULL show method, and writable
files have a non-NULL store method? I know drivers are not supposed to
do stupid things, but there is already a BUG_ON for several conditions
in sysfs_create_file, so maybe we could add two more?

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 years ago[PATCH] I2C: via686a cleanups
Jean Delvare [Tue, 19 Apr 2005 04:16:58 +0000 (21:16 -0700)] 
[PATCH] I2C: via686a cleanups

Here comes a small cleanup patch for the via686a driver. I noticed the
following two non-fatal problems:

1* The device parent is explicitely set, but it's not needed because the
i2c core will do as the client is registered.

2* snprintf is used where strlcpy would suffice.

Fixing them brings the via686a driver in line with what other similar
drivers do.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 years ago[PATCH] w1_smem: w1 ID is only 8 bytes long.
johnpol@2ka.mipt.ru [Tue, 19 Apr 2005 04:16:57 +0000 (21:16 -0700)] 
[PATCH] w1_smem: w1 ID is only 8 bytes long.

w1 ID is only 8 bytes long.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 years ago[PATCH] w1: real fix for big endian machines.
johnpol@2ka.mipt.ru [Tue, 19 Apr 2005 04:16:57 +0000 (21:16 -0700)] 
[PATCH] w1: real fix for big endian machines.

Real fix for big endian machines - crc must be calculated
using little endian byte order.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 years agofully merge up to scsi-misc-2.6
James Bottomley [Tue, 19 Apr 2005 01:55:09 +0000 (20:55 -0500)] 
fully merge up to scsi-misc-2.6

19 years agoMerge with master.kernel.org:/home/rmk/linux-2.6-rmk.git
Linus Torvalds [Mon, 18 Apr 2005 23:25:10 +0000 (16:25 -0700)] 
Merge ... kernel.org:/home/rmk/linux-2.6-rmk.git

This adds the missing arch/arm/lib/bitops.h file.

19 years ago[PATCH] sparc64: Fix stat
David S. Miller [Mon, 18 Apr 2005 22:13:15 +0000 (15:13 -0700)] 
[PATCH] sparc64: Fix stat

Like Alpha, sparc64's struct stat was defined before we had the
nanosecond et al.  fields added.  So like Alpha I have to cons up a
struct stat64 to get this stuff.  I'll work on the glibc bits soon.

Also, we were forgetting to fill in the nanosecond fields in the sparc
compat stat64 syscalls.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years ago[PATCH] ARM: Add missing new file for bitops patch
Russell King [Mon, 18 Apr 2005 21:50:01 +0000 (22:50 +0100)] 
[PATCH] ARM: Add missing new file for bitops patch

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
19 years agoMerge SCSI tree from James Bottomley.
Linus Torvalds [Mon, 18 Apr 2005 21:25:40 +0000 (14:25 -0700)] 
Merge SCSI tree from James Bottomley.

Done with "git-pull-script rsync://www.parisc-linux.org/~jejb/scsi-rc-fixes-2.6.git"
together with an automated content merge.

19 years agoaic7xxx: convert to SPI transport class Domain Validation