Ian Abbott [Fri, 8 Aug 2003 09:35:07 +0000 (02:35 -0700)]
[PATCH] USB: ftdi_sio - VID/PID for ID TECH IDT1221U USB to RS-232 adapter
This patch adds support for ID TECH's IDT1221U USB to RS-232 adapter
(intended for use and/or supplied with some of their magnetic/smart
card readers). The VID and PID were provided by Steve Briggs on
the ftdi-usb-sio-devel list.
Michal Sojka [Wed, 6 Aug 2003 09:02:14 +0000 (02:02 -0700)]
[PATCH] USB: fixes for usb-skeleton.c
I've found minor errors in usb-skeleton.c. First, there is no valid
value of interface->minor in assignment to dev->minor. Second, when
calling usb_deregister_dev the interface->minor must be valid or else
minor isn't deregistered.
David Brownell [Wed, 6 Aug 2003 09:02:01 +0000 (02:02 -0700)]
[PATCH] USB: usbnet, prevent exotic rtnl deadlock
Turns out that when PM is in use, some D3cold resume paths
could have one thread, holding the network lock, deadlock
in flush_scheduled_work() since an event task is waiting
for that same lock. Fix is to call that later, when the
lock isn't held.
Oliver Neukum [Wed, 6 Aug 2003 08:51:53 +0000 (01:51 -0700)]
[PATCH] USB: use of __devinit in st5481
> But you CAN NOT mark the usb_device_id table as __devinitdata or
> __initdata as that will be touched later on if a new USB device is
> added, or if a new usb module is loaded.
So these need to go.
- remove __devinit from anything called from probe()
David Brownell [Wed, 6 Aug 2003 08:51:29 +0000 (01:51 -0700)]
[PATCH] USB: usb_new_device() updates
Changes a handful of things in enumeration error paths.
Bugfixes:
- consistent cleanup, and consistent return of -Ewhatever/0;
- a usb_put_dev() gets rid of the extra refcount; this
one's in bugzilla at osdl.
Diagnostics:
- new diagnostic for when there's a choice of configurations;
- merges some diagnostics, for slight rodata reduction.
Alan Stern [Wed, 6 Aug 2003 08:50:53 +0000 (01:50 -0700)]
[PATCH] USB: usb-storage: Move static string out of initializers.h
This patch seems to have fallen through the cracks. It takes a string
constant defined as a macro in initializers.h and instead makes it a
static string in initializers.c. It also subtracts 1 from the sizeof()
value to avoid transmitting the terminating NUL.
Finally, the patch removes an unnecessary debugging printout -- the value
printed is an _output_ buffer, so of course it won't change.
David Brownell [Wed, 6 Aug 2003 08:50:39 +0000 (01:50 -0700)]
[PATCH] USB: ohci-hcd, minor d3cold resume fix
The ohci d3cold resume path kept re-creating the sysfs files,
and that seemed eventually to cause an oops. This patch
only creates them on first initialization, not re-init;
and includes some minor debug message tweaks.
Neil Brown [Tue, 5 Aug 2003 16:52:41 +0000 (09:52 -0700)]
[PATCH] Fix the sunrpc cache/reader management properly.
A recent patch changed the rpc/*/channel files to behave
differently depending on whether they were open for read or not.
This hadn't been tested thoroughly. The cache_reader structure
that was now only allocated when opening for read, had a field that
was iused when writing.
This patch removes that field and takes a different approach to solving
the issue it addressed.
Roland McGrath [Tue, 5 Aug 2003 15:30:45 +0000 (08:30 -0700)]
[PATCH] spurious SIGCHLD from dying thread group leader
A dying initial thread (thread group leader) sends SIGCHLD when it exits,
but it ought to wait until all other threads exit as well. The cases of
secondary threads exitting first were handled properly, but not this one.
This exit.c patch fixes that test case, and I think catches the other
potential bugs of this kind as well. The signal.c change adds some bug
catchers, the second of which will trip on the test case in the absence
of the exit.c fix.
Adam Belay [Tue, 5 Aug 2003 21:21:39 +0000 (21:21 +0000)]
[PNP] Remove device naming based on id
This patch removes the pnp name database code. Most buses, including
pnp, will be using userspace to name devices in the near future. Also
dev->name will be removed from the driver model soon.
Adam Belay [Tue, 5 Aug 2003 20:34:05 +0000 (20:34 +0000)]
[PNPBIOS] Move low level code into a separate file
This patch moves the low level bios calls to a separate file,
"bioscalls.c". It is a cleanup that will improve organization of the
pnpbios driver code.
Adam Belay [Tue, 5 Aug 2003 20:15:00 +0000 (20:15 +0000)]
[PNPBIOS] Move Parsing Functions to the PnPBIOS driver
This patch moves the resource parsing functions from support.c to the
pnpbios driver. Originally these functions were intended for other
pnp protocols but in reality they are only used by the PnPBIOS driver.
This patch greatly cleans up the code in both the parsing functions
and their connection with the pnpbios driver. Also note that
pnpbios.h has been added for local pnpbios functions.
Russell King [Tue, 5 Aug 2003 22:22:57 +0000 (23:22 +0100)]
[ARM] Fix two Acorn SCSI drivers
ARXESCSI does not have the interrupt routed to the host
machine, so we need to babysit the host interface. We
do this via a variant of the normal command function in
fas216.c
Fix a bug in the procfs file handling in the EESOX SCSI
driver.
Neil Brown [Tue, 5 Aug 2003 06:21:13 +0000 (23:21 -0700)]
[PATCH] nfsv4 page boundary handling fixes.
From: Galen Michael Elias <gme@citi.umich.edu>
This patch fixes two places where the handling of page boundaries was
incorrect and caused to IO_ERR's when it shouldn't have.
1. In decode_write it was just a small typo.
2. In decode_compound we avoid using READ_BUF, but don't provide all of
it's functionality, specifically crosses a page boundary.
Neil Brown [Tue, 5 Aug 2003 06:20:40 +0000 (23:20 -0700)]
[PATCH] Create a mountpoint for the nfsd filesystem.
Though the nfsd module can create this, having it always
there makes auto-loading-on-mount work better.
Note: it was previously recommended that the nfsd filesystem be mounted
on /proc/fs/nfs, which I was never comfortable with.
Henceforth the recommended location will be /proc/fs/nfsd.
nfs-utils 1.0.6 and later will support both.
Neil Brown [Tue, 5 Aug 2003 06:19:58 +0000 (23:19 -0700)]
[PATCH] Protect against NFS requests to create symlinks bigger than one page
Such a request would cause the nul terminator to be written
to some other page, and cause havoc.
Also rearrange two tests to avoid the possibility of testing the byte
just past the end of a buffer - doing so can causes an oops with appropriate
kernel-debug config options
Neil Brown [Tue, 5 Aug 2003 06:19:41 +0000 (23:19 -0700)]
[PATCH] Remove some unused export flags and reserve a new one.
The 'acl' folks would like an export flag, so this patch
reserves one and also discards some that aren't used and never
will be (for the named purpose).
Neil Brown [Tue, 5 Aug 2003 06:19:29 +0000 (23:19 -0700)]
[PATCH] Change NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT
NFSEXP_CROSSMNT used to mean something different, so
using a different name reduces the chance of confusion.
Also there is currently a surplus of vowels, so there is
no need to be frugal
Neil Brown [Tue, 5 Aug 2003 06:19:20 +0000 (23:19 -0700)]
[PATCH] Make sure sunrpc/cache doesn't confuse writers with readers.
When a sunrpc/cache channel is not open for reading, the
cache doesn't bother making and waiting for up-calls.
However it doesn't currently distingish between open-for-read/write
and open-for-write, so an op-for-write will look like a reader
and will cause inappropriate waiting.
This patch checks if a file is open-for-read and will only register
a file as a reader if it really is one.
Linus Torvalds [Tue, 5 Aug 2003 03:13:37 +0000 (20:13 -0700)]
Make "static const" initializer to zero explicit, since truly
constant values should not end up in the BSS.
We're better off having the compiler put it in the .rodata
section (which it will, thanks to the initializer and the
"const"), since that will result in it being nicely cacheable
in shared SMP caches.
use module_param, removed __setup code,
general cleanup (mostly of comments and trailing spaces, also removed include of config.h),
made the watchdog's timeout a module_param.
Chas Williams [Mon, 4 Aug 2003 10:49:39 +0000 (03:49 -0700)]
[ATM]: Minor LANAI fixes from mitch@sfgoth.com.
1. pci_device_id structures shouldn't be __devinitdata. Greg removed
all of the instances of this in the 2.6.0-test1 tree, but unforunately
my recent coversion of lanai.c introduced another one.
2. The lanai PCI id constants have now been merged into the kernel headers
so we don't need to define our own copies.
3. The ioctl's exported by lanai shouldn't be - they were intended for
debugging only, never for release. For now they're just '#if 0'ed out.
They're somewhat dangerous since they don't check any capabilities so
any user could DoS the interface.
Patrick Mochel [Mon, 4 Aug 2003 10:35:30 +0000 (03:35 -0700)]
[power] Divorce suspend console code from swsusp.
- Create kernel/power/console.c
- Rename prepare_suspend_console() to pm_prepare_console() and
restore_console() to pm_restore_console().
- Add prototypes to include/linux/suspend.h.
- Make kernel/power/console.o dependent only on CONFIG_PM
- Simplify logic for SUSPEND_CONSOLE define
- Make software_resume() prepare console much earlier, so we can localize
the loglevel variables in console.c.
- Remove #ifdef CONFIG_VT from console.c, and just check for SUSPEND_CONSOLE.
(Perhaps we should make entire file dependent on CONFIG_VT_CONSOLE?)
- Add kernel/power/power.h to share things across local files.
Patrick Mochel [Mon, 4 Aug 2003 10:14:08 +0000 (03:14 -0700)]
[power] Minor swsusp cleanups.
- Call blk_run_queues() from do_software_suspend() directly, instead of
wrapping it in helper function.
- Get rid of ominous compiler warning.
- Change BUG_ON(in_interrupt()) to might_sleep() in software_suspend(), so
we still get back trace, but don't actually BUG().
Russell King [Tue, 5 Aug 2003 00:15:49 +0000 (01:15 +0100)]
[ARM] Fix do_settimeofday()
ARM seems to have missed an update for the time keeping code; this
cset fixes a problem where the altering the system time changes the
reported uptime.
Jens Axboe [Mon, 4 Aug 2003 02:32:01 +0000 (19:32 -0700)]
[PATCH] AS barrier bug
There's a bug in AS, it sets HARDBARRIER on a request when it should be
setting it as a softbarrier. IO scheduler has no business using that
bit, if it needs to put barriers there they should be soft. Hard
barriers involve hardware operations.