Dave Jones [Tue, 10 Feb 2004 17:06:57 +0000 (17:06 +0000)]
Merge delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus
into delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/cpufreq
Dave Jones [Tue, 10 Feb 2004 16:54:06 +0000 (16:54 +0000)]
[CPUFREQ] Geode register fixes.
From: Hiroshi Miura <miura at da-cha.org>
I mistook a Geode chipset's register meanings. (-.-;
ON is not 'CPU is ON' but 'cpu modulation is ON' that is stops cpu.
this causes a bad freq setting.
This patch fixes this and minor bug that is,
if (new_khz == stock_freq) { /* if new khz == 100% of CPU speed, it is special case */
local_irq_save(flags);
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
cpufreq_notify_transition() called after local_irq_save();
this makes not update cpu_khz.
Here's a new version of the patch according to our discussion.
This allows the platform to add its own platform files to the
sysfs PCI device node through a "pcibios_add_platform_entries()"
call.
I added an empty pcibios_add_platform_entries() inline to all
archs that apparently have PCI and implemented the OF stuff for
ppc and ppc64. The name is still "devspec" for now, I doubt
it will conflict and that's consistent with our use of the
"devspec" name in other places.
Andrew Morton [Mon, 9 Feb 2004 10:58:33 +0000 (02:58 -0800)]
[PATCH] getxattr error checking fix
From: Nathan Scott <nathans@sgi.com>,
Andreas Gruenbacher <agruen@suse.de>
XFS regression tests tripped a couple of problems with the recent xattr fix.
When a size of 0 is passed in, the getxattr and listxattr syscalls return the
size that would be required for the value or list of names, without actually
returning the value. The previous patch accidentally removed this test, and
so querying the required size broke.
Andrew Morton [Mon, 9 Feb 2004 10:58:23 +0000 (02:58 -0800)]
[PATCH] Remove duplicated HPPA bits in kernel/sysctl.c
From: "Art Haas" <ahaas@airmail.net>
The following patch removes the duplicated sysctl entries for 'soft-power'
and 'unaligned-trap' for HPPA users. Immediately before these lines these
two entries exist in a C99-style format.
Jean Tourrilhes [Mon, 9 Feb 2004 10:35:34 +0000 (02:35 -0800)]
[IRDA]: Ultra sendto support.
<Original patch from Stephen Hemminger>
o [CORRECT] Always initialise Ultra packet/header size.
o [CORRECT] Don't allow Ultra send on unbound sockets if no
dest address is given.
o [FEATURE] Properly support Ultra sendto on unbound sockets.
Jean Delvare [Mon, 9 Feb 2004 05:18:09 +0000 (21:18 -0800)]
[PATCH] I2C: add new chip driver: fscher
This is a new ported driver, fscher, which supports the FSC Hermes chip.
The original driver was written by Reinhard Nissl, who also ported it to
Linux 2.6, as discussed on the lm_sensors mailing list during the last
two weeks. I reviewed the code and we made the necessary changes, so
that what we have now looks good to me. Please apply on top of your i2c
patches stack.
Alan Stern [Mon, 9 Feb 2004 04:17:18 +0000 (20:17 -0800)]
[PATCH] USB: fix unneeded SubClass entry in unusual_devs.h
On Sat, 7 Feb 2004, Brendan Arthurs wrote:
> I'm getting the following message when I power on my USB external
> enclosure (a MAP-K51U) with a Maxtor IDE hard drive in it. I'm running
> kernel 2.6.2. Hope this is of some use to you.
>
> Feb 7 11:03:13 europa kernel: hub 4-0:1.0: new USB device on port 2,
> assigned address 2
> Feb 7 11:03:13 europa kernel: usb 4-2: Product: USB Mass Storage
> Device
> Feb 7 11:03:13 europa kernel: usb 4-2: Manufacturer: Genesyslogic
> Feb 7 11:03:13 europa kernel: usb-storage: This device
> (05e3,0701,0002 S 06 P 50) has an unneeded SubClass entry in
> unusual_devs.h
> Feb 7 11:03:13 europa kernel: Please send a copy of this message
> to <linux-usb-devel@lists.sourceforge.net>
Thank you for sending this in. Here's a patch to take care of it.
Alexander, does this work for you?
David Brownell [Mon, 9 Feb 2004 04:16:07 +0000 (20:16 -0800)]
[PATCH] USB: re-factor enumeration/reset paths
This patch starts dis-entangling some of the enumeration logic by
moving initialization code into the usb_alloc_dev() constructor.
Some call signatures changed; a usbcore-internal declaration was
moved in <linux/usb.h> to a more appropriate location.
With the driver model init now more centralized, it's safer to
use driver model calls (including dev_info) a lot earlier, so
the "new device at address N" message now does that. It also
reports the device speed, which may not be evident otherwise.
PC300 MLPPP support is currently marked broken in 2.6.x.
To fix that, attached patch implements tiocmset/tiocmget methods on the
pc300_tty.c driver, which is the new method tty drivers are supposed to
use instead ioctl.
This fixes two related issues in the ioctl handler:
- ioctl requesting RTS signal would affect DTR signal
- The RTS signal is now handled.
[PATCH] fix OOPS for multiple IDE PCI modules and CONFIG_PROC_FS=y
The problem is that when loading next IDE PCI module memory used by
previously registered ide_pci_host_proc_list entry is already unmapped
(because of __{dev}initdata). This doesn't happen in built-in case
because this memory is freed after all drivers are initialized.
Fix it by removing __{dev}initdata from all ide_pci_host_proc_t.
Thanks to Andre Tomt <andre@tomt.net> for help in debugging this.
Adam Belay [Sun, 8 Feb 2004 15:44:15 +0000 (15:44 +0000)]
[PNP]: Card matching code fix
This patch updates the matching code to ensure that all requested
devices are present on the card, even if they are in use. It is
necessary for some ALSA drivers to work properly because early vendors
would have different sets of devices on the same card ids. It is from
Takashi Iwai <tiwai@suse.de>.
Adam Belay [Sun, 8 Feb 2004 15:31:19 +0000 (15:31 +0000)]
[PNP]: Disable resources fix
Some PnPBIOSes do not follow the specifications with regard to
disabling devices. This patch preserves the tag bits, while zeroing
the resource settings. Previously we would zero the entire buffer.
It has been tested and appears to correct the issue while remaining
compatible with unbroken PnPBIOSes.
Adam Belay [Sun, 8 Feb 2004 15:28:23 +0000 (15:28 +0000)]
[PNP]: Resource flags update
This patch reorganizes resource flags to ensure that manual resource
settings are properly recognized. This fix is necessary for many ALSA
drivers. It also prevents comparisons between unset resource
structures. The bug was discovered by Rene Herman
<rene.herman@keyaccess.nl>, who also wrote an initial version of this
patch. I made further improvements to ensure that the pnp subsystem
was compatible with this initial change.
Adam Belay [Sun, 8 Feb 2004 15:23:01 +0000 (15:23 +0000)]
[PNP]: Fix Serial PnP driver
The serial driver currently fails to unregister its pnp driver upon
module unload. This patch corrects the problem by calling
pnp_unregister_driver and implementing a proper remove function.