2.6.8-rc2 long-format changelog
[Posted July 18, 2004 by corbet]
Summary of changes from v2.6.8-rc1 to v2.6.8-rc2
============================================
<wesolows@foobazco.org>
[SPARC32]: Regenerate defconfig
<wesolows@foobazco.org>
[SPARC32]: Move non-PCI DMA definitions out of pgtable.h
This also avoids a cyclic header inclusion problem with dma-mapping.h
and linux/mm.h triggered by the recent change to standard DMA definitions.
<wesolows@foobazco.org>
[SPARC32]: Continue to avoid the use of __builtin_trap for BUG()
gcc 3.3.3 continues to ICE on the BUG_ON() in mm/fremap.c.
<wesolows@foobazco.org>
[SPARC32]: Fix CONFIG_SUN4 build
<shaggy@austin.ibm.com>
JFS: Don't allow reading beyond the inode map's EOF
If we try to read inodes that are beyond the size of the inode map,
__read_metapages would read unitialized pages into the inode map's
address space. If the inode map is later grown in order to allocate
more inodes, the page is initialized and written under a different
address space. Having the stale page in the page cache prevents the
properly initialized page from being read, and results in errors.
This problem can be provoked by an nfs client trying to read an inode
that does not exist.
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<manfred@colorfullife.com>
[PATCH] natsemi updates
- support for external phys, both fibre and twisted pair, added:
* remove the "phy" parameter from mdio_{read,write}: the
function accesses the current phy.
* new functions to access external phys: miiport_{read,write}
* scan for external phys on _probe.
* ethtool support for switching between internal
and external phys.
* introduce an init_phy_fixup helper: a few settings must be
reapplied after reenabling the internal phy.
- move register_netdev to the end of _probe. The current position
could cause races with hotplug.
- do not wait for autonegotiation completed after initialization.
- use pci_name() instead of dev->name until register_netdev has
initialized dev->name.
- read the BMSR register in the link beat interrupt twice:
The link status field is latched, without reading twice a link up
event will be missed (and only noticed a few seconds later in the
media timer)
- restart the autonegotiation after modifying the capabilities.
<akpm@osdl.org>
[PATCH] sis900-fix-phy-transceiver-detection.patch
From: Daniele Venzano <webvenza@libero.it>
Fix PHY transceiver detection code to fall back to known PHY and not to the
last detected.
The code checks every transceiver detected for link status and type, but fails
when ghost transceivers are detected, deciding to use the last one detected.
With this patch the driver should choose the correct transceiver even when
some ghosts are detected by checking for the type of the tranceiver it is
going to use.
<akpm@osdl.org>
[PATCH] raw.c cleanups
- pass the raw_config_request by reference, not by value.
- fix whitespace drainbamage
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<greg@kroah.com>
Driver Core: remove extra space in Kconfig file.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<shaggy@austin.ibm.com>
JFS: Error path released metadata page it shouldn't have
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<manfred@colorfullife.com>
[PATCH] natsemi 1: switch to netdev_priv()
<manfred@colorfullife.com>
[PATCH] natsemi 2: support packets > 1518 bytes
<manfred@colorfullife.com>
[PATCH] Gigabit Ethernet support for forcedeth
- Lots of updates for the gigabit ethernet nic: New ring entry format,
support for RGMII phys, new pci ids.
- Silence interrupt source 0x01: it's rx error, no need to ask the end
user to report it.
- add support for vlan packets: The NvRegOffloadConfig register contains
the maximum packet size, it was set to 1518 which caused vlan to fail.
- fix bit flags for mii access: the wrong bit was polled and the mii
write implementation was just broken.
- Do not stop the rx/tx engines around mii accesses.
- reset and reinit the phy during probe.
<shaggy@austin.ibm.com>
JFS: Updated field isn't always written to disk during truncate
There is a possibility that a change to header.next is not logged
or written to disk if it is the only change to an xtree leaf page.
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<kaos@sgi.com>
[PATCH] ia64: Rename local move_irq to sn_move_irq
Rename SN local function move_irq to sn_move_irq to remove conflict
with global move_irq. Needed since ashok.raj moved move_irq() from
iosapic.c to irq.c.
Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<arun.sharma@intel.com>
[PATCH] ia64: IA-32 sigaltstack bug fix
More code needs to be guarded by if (uss32) { ... }. Without this
patch, if (buf32..) may be checking uninitialized data and may result
in spurious ENOMEMs.
Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<kaos@sgi.com>
[PATCH] ia64: Correct invalid unwind data
ASM_UNW_PRLG_GRSAVE(n) must match the number of input registers in the
following alloc statement. Otherwise you get invalid backtraces :(
Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<margitsw@t-online.de>
[PATCH] prism54 freq to channel incorrect for 5GHz
2004-07-06 Margit Schubert-While <margitsw@t-online.de>
* The frequency to channel conversion is wrong for the 5GHz band
* Although the (known) devices don't/can't use it,
they do report it. (iwlist ethX freq)
<stevef@steveft21.ltcsamba>
fix oops in build_wildcard_path_from_dentry
<shaggy@austin.ibm.com>
JFS: Protect active_ag with a spinlock
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<shaggy@austin.ibm.com>
JFS: prevent concurrent calls to txCommit on the imap inode
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<kaber@trash.net>
[NETFILTER]: Fix two broken checks for options in ipt_LOG
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<shemminger@osdl.org>
[NET]: Deinline sock_i_uid, sock_i_ino
The sock_i_uid and sock_i_ino functions are only called by
/proc type interfaces, so they don't need to be inlined.
Also, the inline functions writeable, rcvtimeo, sndtimeo are test
for value functions that don't change their argument.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<shaggy@austin.ibm.com>
JFS: Check for dmap corruption before using leafidx
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<hirofumi@mail.parknet.co.jp>
[IPV4]: IPMR fixes.
- pim_protocol warning fix
- ipmr_vif_open() and ipmr_mfc_open() allocates the memory, so it
should use seq_release_private().
- ipmr_mfc_seq_xxx is using it->cache, in order to control whether
unlock should be do or not, but it->cache was not initialized in
ipmr_mfc_seq_start(). So it can point the previous state if user
did seek(). This become to the cause of twice unlock.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: David S. Miller <davem@redhat.com>
<hirofumi@mail.parknet.co.jp>
[NET]: Cleanup mis-usage of seq_release_private
These doesn't allocate memory and doesn't use seq->private. However
kfree() ignores NULL, so these are not the problem.
This patch just cleans these up.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: David S. Miller <davem@redhat.com>
<peter@chubb.wattle.id.au>
[PATCH] ia64: Fix OSDL BugMe report 2885: realtime process can't preempt low priority process in kernel
Rearranged code to make it work. There were two problems:
1. The preempt flag was being tested only if code was leaving for
user space (the logic should be: test for RESCHEDULE if we're
switching to a kernel thread, test everything if switching to a
user thread)
2. The check of the user space flags was being repeated even if the
work had been done.
There is one small change in semantics: when returning from a
preemption, the preemption flag will *not* be rechecked. Otherwise, I
found that it was easy to get into a livelock situation where no
forward progress was made.
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<hadi@znyx.com>
[PKT_SCHED]: Another missed tc_stats spinlock conversion.
Signed-off-by: Jamal Hadi Salim <hadi@znyx.com>
Signed-off-by: David S. Miller <davem@redhat.com>
<davem@nuts.davemloft.net>
[TCP]: Type qualifiers, such as const, are ignored on function return type.
<jheffner@psc.edu>
[TCP]: Do not round window to MSS if window scaling.
Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@redhat.com>
<davidm@tiger.hpl.hp.com>
ia64: Nuke two compiler warnings.
<alex@alexdalton.org>
[PATCH] I2C: ADM1030 and Co sensors chips support
Here is a patch against linux-2.6.7-mm1 kernel that adds support for
adm1030 and adm1031 sensors chips.
It has been reviewed several times by Jean Delvare, and he thinks it is
ready for inclusion into 2.6 kernel. So here it is.
Signed-off-by: Alexandre d'Alton <alex@alexdalton.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<ebs@ebshome.net>
[PATCH] I2C PPC4xx IIC driver: 0-length transactions bit-banging implementation
IBM PPC 4xx i2c controller doesn't support 0-length transactions (e.g. used by
SMBUS_QUICK). This patch implements bit-banging emulation for such requests and
removes temporary kludge added earlier.
Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<khali@linux-fr.org>
[PATCH] I2C: Class of scx200_acb
This is needed for the scx200_acb to accept hardware monitoring chips.
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<khali@linux-fr.org>
[PATCH] I2C: Add support for LM86, MAX6657 and MAX6658 to lm90
This adds support for the LM86, MAX6657 and MAX6658 sensor chips to the
lm90 driver. These are less popular than the LM90 and ADM1032 but
several users have reported to use these, so I added support to the lm90
driver. All these chips are fully compatible so that's just a matter of
accepting the new chip ids. I also slightly simplified the detection
code.
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<lcapitulino@prefeitura.sp.gov.br>
[PATCH] I2C: i2c/i2c-dev.c::i2c_dev_init() cleanup.
This patch does the fallowing cleanup for
drivers/i2c/i2c-dev.c::i2c_dev_init():
*) in a error condition, return the error code of register_chrdev()
insted of -EIO;
*) adds missing audit for class_register();
*) in a error condition, only prints "Driver Initialisation Failed",
insted printing the cause. (Note that the error will be printed by
the return of the error code, and the information about what function
caused the problem need to be done by a debug code).
Only compiled, lack of hardware.
Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<khali@linux-fr.org>
[PATCH] I2C: Documentation for i2c-parport
At least, the i2c-parport gets some documentation. I heard several
persons complaining that there was no sample electronics schema for
building their own i2c-over-parallel-port, so I did just that, with the
help of Sylvain Munaut. The documentation also includes the list of
supported adapters, and a short comparison with other drivers using the
parallel port to drive an i2c bus. At the end of the document I included
an updated version of the i2c-velleman doc file (which I then deleted).
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<drewie@freemail.hu>
[PATCH] I2C: Add support for LM77
This patch (against the current stack) adds support for the
LM77 sensor chips made by National Semiconductor. Formerly
this was claimed by the LM75 driver but when I got hold of an
embedded board (built around the National Geode SC1100 CPU),
which was equipped with an LM77, it turned out that the two
chips are not compatible.
It has been developed with help of, reviewed and approved
by Jean Delvare.
Signed-off-by: Andras Bali <drewie@freemail.hu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<bcasavan@sgi.com>
[PATCH] ia64: Fix bug in ia64_atomic64_{add,sub}
Hit this bug just yesterday. I hope the problem and fix require no
explanation. Patched kernel boots and runs just fine.
Signed-off-by: Brent Casavant <bcasavan@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<davem@nuts.davemloft.net>
[IPV4]: Fix multicast socket hangs.
If a multicast packet gets looped back, the sending
socket can hang if a local read just sits and does
not empty its receive queue.
The problem is that when an SKB clone is freed up,
the destructor is only invoked for the head SKB when
there is a fraglist (which is created for fragmentation).
The solution is to account the fragment list SKB lengths
in the top-level head SKB, then it all works out.
Signed-off-by: David S. Miller <davem@redhat.com>
<davidm@tiger.hpl.hp.com>
ia64: Define machvec_noop as "static inline"
This way, non-GENERIC kernels can optimize away the no-op calls
while GENERIC kernels can still take the address of the function
to initialize the machvec vector.
<dtor_core@ameritech.net>
[PATCH] Driver core: add platform_device_register_simple to register platform
Add platform_device_register_simple to register platform devices
requiring minimal resource and memory management. The device
will have standard release function that just frees memory
occupied by the platform device. By having release function in
the driver core modules using such devices can be unloaded
without waiting for the last reference to the device to be
dropped.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<dtor_core@ameritech.net>
[PATCH] Driver core: add default driver attributes to struct bus_type
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<dtor_core@ameritech.net>
[PATCH] Driver core: kset_find_obj should increment refcount of the found object
kset_find_obj should increment refcount of the found object so users of
the function can safely use returned object
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<dtor_core@ameritech.net>
[PATCH] Driver core: add driver_find helper to find a driver by its name
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<eranian@hpl.hp.com>
[PATCH] ia64: fix various problems in pfm_check_task_state()
Commands not requiring the monitored task to be stopped would spin in
wait_task_inactive() forever. After call to wait_task_inactive(),
state may have changed, therefore it needs to be rechecked.
Signed-off-by: Stephane Eranian <eranian@hpl.hp.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<shaggy@austin.ibm.com>
JFS: jfs_dmap build fix
fs/jfs/jfs_dmap.c: In function `dbAllocNear':
fs/jfs/jfs_dmap.c:1343: parse error before `*'
fs/jfs/jfs_dmap.c:1357: `leaf' undeclared (first use in this function)
fs/jfs/jfs_dmap.c:1357: (Each undeclared identifier is reported only once
fs/jfs/jfs_dmap.c:1357: for each function it appears in.)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
<rohit.seth@intel.com>
[PATCH] ia64: nointroute option needs to be parsed early
This patch does an early parsing of kernel command line to check if
no_int_route is present. Sal_init code depends on this option to
enable/disable interrupt routing.
Signed-off-by: Rohit Seth <rohit.seth@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<tony.luck@intel.com>
[PATCH] ia64: allow module core code calls to module init code again
Drop the prohibition for module core code calls to module init code
(this breaks netfilter).
Signed-off-by: <tony.luck@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<peterm@redhat.com>
[PATCH] ia64: add audit support
This patch adds IA64 support to the audit infrastructure. The IA64
audit patch complements the existing audit support for the i386,
PPC64, and x86_64 architectures. This patch is based on work by Ray
Lanza.
Signed-off-by: Peter Martuccelli <peterm@redhat.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<marcel@holtmann.org>
[Bluetooth] Respond to L2CAP info requests
This patch adds the correct behavior when a L2CAP info request is sent
by the peer. The answer should be a L2CAP info response with the result
code set to "not supported".
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
<kenneth.w.chen@intel.com>
[PATCH] ia64: fix interpolation-bug in fsys_gettimeofday()
The order of reading ar.itc is incorrect with respect to all other
variables in fsys_gettimeofday. All variables involved in time
interpolation need to be protected by the sequence lock xtime_lock for
consistency check. However, the first time that fsys_gettimeofday()
takes a time stamp, it reads the count outside the seq lock leading to
the following possible time leap into the future scenario:
fsys_gettimeofday:
read ar.itc
.... <context switch> ....
read_seqbegin
read all other variables (last_nsec_offset, jiffies, xtime)
do time interpolation - elapsed_cycles become a large negative
number and converting it to nsec overflows and make it a
large positive number
read_seqretry success
updates last_nsec_offset (which is several seconds into the future).
All subsequent gettimeofday() calls will be wrong as well because
monotonic property kicks in. It only self-corrects once that future
time actually arrives.
This patch fixes the problem (and moves one instruction to make some room).
Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<marcel@holtmann.org>
[Bluetooth] Don't reset the USB halted bits
The USB halted bits are useless and so there is no need to reset them
after changing the configuration.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
<khali@linux-fr.org>
[PATCH] I2C: remove Documentation for i2c-pport
> > This also raises a question about Documentation/i2c/i2c-pport.
> > Should we keep a document about a driver which is not in the kernel
> > tree (and hasn't even been ported to 2.6 yet)?
>
> No we should not.
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<khali@linux-fr.org>
[PATCH] I2C: adm1025 driver ported to 2.6
This is my port of the adm1025 driver to 2.6. It has been tested by a
few users and reported to work OK.
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<greg@kroah.com>
I2C: sparse cleanups for a few i2c drivers.
<alex@alexdalton.org>
[PATCH] I2C: small ADM1030 fix
Please find an incremental patch that applies on top of the previous one
(the one from the first message of the thread) and that adds parenthesis
to the macro as pointed out by Mark.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<davem@nuts.davemloft.net>
[PKT_SCHED]: Remove CSZ scheduler.
It was an experimental hack and never finished off.
Signed-off-by: David S. Miller <davem@redhat.com>
<shemminger@osdl.org>
[BRIDGE]: Support different MTU sizes.
This patch adds support for different size MTU's to bridging.
It is useful for bridging Ethernet's with jumbo frames, etc.
The mtu of the bridge pseudo-device is maintained as the minimum
of all the underlying ports. And when forwarding a frame through
the bridge, it will drop the frame if the outgoing port's MTU
is less than the frame size (as per 802 standard).
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<greg@kroah.com>
1 Wire: add Dallas 1-wire protocol driver subsystem
This was written and developed by Evgeniy Polyakov <johnpol@2ka.mipt.ru>
with only very minor cleanups by me.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<shemminger@osdl.org>
[PKT_SCHED]: Add jitter support to netem.
This patch adds jitter if desired to the delayed packets in the
netem scheduler. I dropped the rate stuff out and reorganized so
that an underlying pfifo queue is used (next plan is to make it
have class ops).
The jitter is given as sigma to a Gaussian normal distribution. The actual
implementation is a reduced form of the table driven stuff in NISTnet
(free).
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<jmorris@redhat.com>
[CRYPTO]: Remove lazy allocation from deflate.
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: David S. Miller <davem@redhat.com>
<herbert@gondor.apana.org.au>
[XFRM]: Add FLUSHSA and FLUSHPOLICY.
This patch adds FLUSHSA and FLUSHPOLICY to xfrm_user which are
analagous to SADB_FLUSH and SADB_X_SPDFLUSH in af_key.
This is useful in KMs on startup/shutdown so that the system is
reset to a known state.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
<herbert@gondor.apana.org.au>
[IPSEC]: Fix uh->len when doing NATT with IP options.
I just noticed that the UDP header length in esp4_output() is incorrect
when IP options are present (in transport mode). This patch fixes exactly
that.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
<tomd@csds.uidaho.edu>
[CRYPTO]: Set CRYPTO_TFM_RES_BAD_KEY_LEN in twofish.
<davidm@tiger.hpl.hp.com>
ia64: Fix EFI physical-mode stubs to correctly calculate physical address
This fixes a bug in which the Ski simulator ended up getting the wrong
time, since phys_get_time() ended up storing the correct time in the
wrong place if a region-5 virtual address was passed (as would happen
for stack variables of the init-task). On real machines, this bug
likely would have caused a crash on machines which don't support
switching EFI into virtual mode.
<davidm@tiger.hpl.hp.com>
ia64: Nuke a warning due to the syscall auditing patch.
<herbert@gondor.apana.org.au>
[IPSEC]: Move generic encap code into xfrm4_output
I've finally finished merging the general encapsulation code for IPv4.
Here is the patch.
The idea is basically to make x->type->output similar in structure to
x->type->input. That means moving the tunnel encapsulation and other
generic code out.
They have ended up in xfrm4_output.c.
The advantage of this is that we have exactly one copy of the tunnel
encapsulation code. So if we need to change it (e.g., set the TTL
according to the route) then it's easier and less error-prone.
In fact, in doing so I've already noticed that the ECN wasn't being
copied correctly in everything except xfrm4_tunnel.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
<herbert@gondor.apana.org.au>
[IPCOMP6]: Exclude IPCOMP header from props.header_len
Now that the IPv4 encap stuff is out of the way, I'll be sending you
the IPv6 versions.
Here is the one to remove the unnecessary extra space reserved for
IPCOMP.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Yoshifuji Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<yoshfuji@linux-ipv6.org>
[NET]: Fix dst_underflow_bug_msg printk args.
<torvalds@ppc970.osdl.org>
Remove obsoleted drivers/char/h8.c drivers/char/h8.h.
<rmk@flint.arm.linux.org.uk>
[ARM] ohci-omap does not need asm/mach-types.h
<stevef@smfhome.smfdom>
clean up NULL vs. 0 warnings generated by sparse tool
<davem@nuts.davemloft.net>
[SPARC64]: Add CMT register defines.
<bunk@fs.tum.de>
[IPV4]: Remove no longer available URL.
This patch solves Bugzilla #2445 by removing a no longer available URL
from the help text for NET_IPIP.
Noted by Nils Hammar <m4341@bedug.com>.
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: David S. Miller <davem@redhat.com>
<akpm@osdl.org>
[SPARSE]: Fix warnings in net/sctp/
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<gandalf@netfilter.org>
[NETFILTER]: Add timestamping to ipt_ULOG
After Andi's timestamp optimizations we don't have any timestamps on the
packets unless someone requested them. Here's a patch for 2.6 to
explicitly timestamp the packets before we log them.
Harald approved it some time ago, he's pretty busy so I'm sending it
instead.
Signed-off-by: Martin Josefsson <gandalf@netfilter.org>
Signed-off-by: David S. Miller <davem@redhat.com>
<torvalds@ppc970.osdl.org>
x86: fix stackframe ownership confusion in sys_sigaltstack()
gcc doesn't understand that "asmlinkage" routines have the
argument stack owned by the assembly-language caller, and the
recent sparse cleanup made gcc think it owns enough stack
frame space to make a tailcall by overwriting "struct pt_regs"
that is set up by the low-level system call code.
Hide that problem again.
The real fix would be to tell gcc that the caller owns the
stack frame that it set up, but we don't have any such
interfaces, so for now the best we can do is to hide it.
<wesolows@foobazco.org>
[SPARC32]: Don't allow the kernel to read PAGE_NONE pages.
<davem@nuts.davemloft.net>
[SPARC64]: Update defconfig.
<viro@www.linux.org.uk>
[PATCH] sparse: NULL noise in fs/reiserfs
<viro@www.linux.org.uk>
[PATCH] sparse: misc NULL noise in fs/*
<viro@www.linux.org.uk>
[PATCH] sparse: aacraid annotation
<viro@www.linux.org.uk>
[PATCH] sparse: megaraid inline fixes
inlined functions moved, a couple of heavy-weight ones (issue_scb()
and meg_cmd_done()) uninlined.
<viro@www.linux.org.uk>
[PATCH] sparse: megaraid annotation
<viro@www.linux.org.uk>
[PATCH] sparse: NULL noise in drivers/isdn
<viro@www.linux.org.uk>
[PATCH] sparse: misc NULL noise in drivers/*
<viro@www.linux.org.uk>
[PATCH] sparse: ISDN ->readstat() and ->writecmd() annotation
->readstat() and ->writecmd() are always getting a userland pointer;
marked argument as such, killed "user" flag, killed dead code.
<viro@www.linux.org.uk>
[PATCH] sparse: blind dereference of userland pointers in divasproc
<viro@www.linux.org.uk>
[PATCH] sparse: drivers/isdn/* annotation
<viro@www.linux.org.uk>
[PATCH] sparse: dvb_ringbuffer_pkt_write()/dvb_ringbuffer_write() annotation
copy_from_user() moved from dvb_ringbuffer_{write,pkt_write}() to callers;
these functions are always getting kernel pointer now. "usermem" argument
killed, code annotated.
<viro@www.linux.org.uk>
[PATCH] sparse: blind dereference of userland pointers in ac7110
<viro@www.linux.org.uk>
[PATCH] sparse: drivers/media/* annotation
<shaggy@austin.ibm.com>
JFS: Add d_hash and d_compare operations for case-insensitive names
JFS supports OS/2-compatibility with case-insensitive file names.
To avoid multiple dentries for these names, jfs needs to provide
the d_hash and d_compare dentry_operations. The operations are
only used when the volume was created in OS/2 or with the -O flag.
<kaos@sgi.com>
[PATCH] ia64: build fixes for IA64_MCA_DEBUG_INFO
Make mca.c build again with debug enabled.
Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<steiner@sgi.com>
[PATCH] ia64: Reduce TLB flushing during process migration
This patch adds an architecture-specific callout after explicit
processor migrations. The callout allows architectures (or platforms)
to update TLB specific information (ex., cpu_vm_mask).
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
<jelenz@edu.rmk.(none)>
[ARM PATCH] 1958/1: make collie use INIT_MACHINE
Patch from John Lenz
make collie use the new INIT_MACHINE macro instead of arch_initcall.
<ben-linux@org.rmk.(none)>
[ARM PATCH] 1961/1: S3C2410 - fix for UART FIFO size calculation
Patch from Ben Dooks
Fixes calculation of how many bytes in the RX/TX FIFOs.
Previous code failed to check wether the full flags
where set before returning the byte counter. This
should ensure that the serial driver behaves correctly
when the FIFO fills, and not just ignore the input
data
<ben-linux@org.rmk.(none)>
[ARM PATCH] 1962/1: S3C2410 - Rename MACH_VR1000 to Thorcom-VR1000
Patch from Ben Dooks
Place correct machine name for VR1000 in machine
support file.
<stevef@smfhome1.smfdom>
Set Type field when creating block/char/pipe e.g. via mknod.
Fixing problem mentioned by Jeremy Allison
remove spurious warning message logged on mount with credentials file (pointed
out by Richard Hughes)
Signed-off-by: Steve French (sfrench@us.ibm.com)
<stevef@smfhome.smfdom>
Set DevMajor/DevMinor when querying info on remote char/block devices
Signed-off-by: Steve French (sfrench@us.ibm.com)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: switching afs to kvec
- afs and rxrpc switched to kvec; definition of kvec moved to uio.h (duh).
- afs/mntpt.c got missing cast added.
at that point afs is sparse-clean and rxrpc has only one remaining warning
(setsockopt from local variable, protected by set_fs()).
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: VIDIOCSWIN compat_ioctl fixes
In handling of VIDIOCSWIN for 32bit on 64bit platforms:
* switched to compat_alloc_user_space()
* fixed memory corruption in copying arguments from userland
* fixed arithmetic overflows
* added missing checks for get_user() results
and corresponding returns with -EFAULT.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: usb ioctl cleanups
usb ioctls in compat_ioctl.c switched to compat_alloc_user_space()
and cleaned up; ioctl structures annotated.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: isdn compile fix for platforms with HZ > 1000
Division by zero is an ugly thing... We are safe wrt overflows,
since the maximal value we ever pass is 10000 - not enough to overflow
unless you've got a platform with HZ > 200000.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: saa fix
direct write to userland pointer.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: compile fix for rrunner on big-endian platforms
bitrot strikes again...
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: tms380tr.c fix
tms380tr is used both by ISA and PCI drivers. Enabling/disabling
DMA is done only for ISA ones (it's protected by if (dev->dma > 0) and
PCI ones leave it 0), but it's compiled unconditionally. Which breaks
on platforms that don't have that ISA crap at all, but support PCI just
fine. Code in question placed under ifdef CONFIG_ISA.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: NULL noise removal in drivers/sbus
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: drivers/sbus fixes
a) vfc is not 64bit-clean, marked as such in Kconfig
b) aurora is simply broken - still uses tqueues. Marked as broken.
c) vfc does dereferencing of userland pointer, right after having
carefully copied the data to kernel space ;-) Fixed.
d) vfc ->mmap() had missed prototype change. Fixed.
e) BPP ioctls are misdeclared - they should've been _IO(...) instead
of _IOR(..., void). Too late to fix, but we can at least make them
_IOR(..., char) - same value, but doesn't try to find sizeof(void).
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: drivers/sbus annotation
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: alpha NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: alpha sparse infrastructure
* added usual CHECK assignment in Makefile
* switched uaccess.h to __check_uptr()
* added L on long constants (ones missed earlier)
* added __user in osf_sys.c (duh - I've added __user to cast in
the initializer, but forgot to add it in declaration)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: alpha topology.h compile fix
Missing bits of cpumask_t conversion
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: signal annotation
ss_sp in struct sigaltstack made __user
->si_addr and ->sival_ptr made __user
your ->sa_restorer and ->sa_handler changes propagated
users of these guys annotated on i386/amd64/alpha/sparc/sparc64
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: arch/* NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: ipc compat annotations and cleanups
ipc compat code switched to compat_alloc_user_space() and annotated.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: gemtek ioctl fix
Dumb Typo(tm) - the first bug caught by 0/NULL checks (arg is
really a kernel pointer there, so memset() is actually OK - results
will be copied to userland by caller. Or would be, if we would not
oops ;-)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: drivers/media NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: drivers/net partial NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: drivers/usb NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: net/* NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: assorted drivers/* NULL noise removal
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: more fs/* NULL noise removal
(partially based on patch from Mika Kukkonen)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] __vfs_follow_link() made inline again
__vfs_follow_link() really should be inline; that's a special case since
we are in the middle of recursion and really want to conserve stack
space. Moved before the first use, made inline again.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] compat_fillonedir() warning fix
access_ok() expects a pointer, not unsigned long. It's not a
problem on platforms that have this guy done as a macro (or ones that
do not use fs/compat.c at all), but that's still wrong and on some
platforms that care we actually have access_ok() as inlined function.
Bogus cast removed.
<torvalds@ppc970.osdl.org>
ppc64: fix up si_addr usage
Al's last changes mean that it is now annotated as a user
pointer, and we want to avoid warnings.
<eger@havoc.gtf.org>
[PATCH] pmac_zilog: initialize port spinlock on all init paths
pmac_zilog: initialize the serial ports' spinlocks even if console over
serial is not enabled; disable this driver by default for ppc
This lock not being initialized was Oopsing my TiBook :-P
Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<petri.koistinen@iki.fi>
[PATCH] Fix 3c59x.c uses of plain integer as NULL pointer
This patch will fix 3Com "Vortex" and "Boomerang" ethernet driver sparse
warnings about using plain integer as NULL pointer.
Signed-off-by: Petri T. Koistinen <petri.koistinen@iki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hch@lst.de>
[PATCH] small style fixups for the new automount code
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bunk@fs.tum.de>
[PATCH] #ifndef guard percpu_counter.h and blockgroup_lock.h
Insert header guards to allow possible multiple inclusion for
include/linux/percpu_counter.h and include/linux/blockgroup_lock.h
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bunk@fs.tum.de>
[PATCH] floppy.c: remove superfluous variable initialization
From: Kam Leo <A1tmblwd@netscape.net>
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<pluto@pld-linux.org>
[PATCH] `unknown symbol' in sound/oss/kahlua.ko needs unknown symbol udelay
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<akpm@osdl.org>
[PATCH] remove struct_cpy()
Only two architectures implement it, so afs broke the build.
Remove struct_cpy() altogether, and use structure assignments.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hirofumi@mail.parknet.co.jp>
[PATCH] autoselect FAT_FS in config
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hunold@convergence.de>
[PATCH] fix saa7146 compilation
From: Colin Leroy <colin@colino.net>
This patch fixes a compilation error on 2.6.8-rc1. Here's the error:
drivers/media/common/saa7146_video.c:3: conflicting types for `memory'
include/asm-m68k/setup.h:365: previous declaration of `memory' make[3]: ***
[drivers/media/common/saa7146_video.o] Error 1
Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<hunold@convergence.de>
[PATCH] fix return codes after i2c_add_driver() in tea6415c and tea6420
In two of my i2c helper drivers the return value of i2c_add_driver() is
ignored. Thanks to Arthur Othieno for finding these bugs.
Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bunk@fs.tum.de>
[PATCH] remove outdated Stallion contact information
The patch below (applies against both 2.4 and 2.6) removes the bouncing
email address from all files and removes the outdated MAINTAINERS entry.
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<bjorn.helgaas@hp.com>
[PATCH] fix ia64 early_printk build problem
Rename PCDP_TABLE_GUID back to HCDP_TABLE_GUID to get the file to compile
again. This change is against current 2.6 BK and is under
CONFIG_IA64_EARLY_PRINTK_UART.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: read_descriptor_t annotation
We have a fun situation with read_descriptor_t - all its instances end
up passed to some actor; these actors use desc->buf as their private
data; there are 5 of them and they expect resp:
struct lo_read_data *
struct svc_rqst *
struct file *
struct rpc_xprt *
char __user *
IOW, there is no type safety whatsoever; the field is essentially untyped,
we rely on the fact that actor is chosen by the same code that sets ->buf
and expect it to put something of the right type there.
Right now desc->buf is declared as char __user *. Moreover, the last
argument of ->sendfile() (what should be stored in ->buf) is void __user *,
even though it's actually _never_ a userland pointer.
If nothing else, ->sendfile() should take void * instead; that alone removes
a bunch of bogus warnings. I went further and replaced desc->buf with a
union of void * and char __user *.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: missing cpumask_t bits on sparc
(no, it still doesn't fix sparc32-smp - just partial compile
fixes ;-/)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: aout32 sparse fixes for compat
this basically repeats the stuff done to fs/binfmt_aout.c for amd64
and sparc64 aout32.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: __forced added to casts in arch-specific code
Casts from __user to address-space-agnostic in amd64 and i386
made explicit (__force added; in these places we pass userland pointer
to arch-specific code that handles kernel and userland pointers the
same way).
csum_partial_copy_*() annotated properly
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] pointer-to-int done the canonical way
Extraction of int from pointer is slightly broken in several places.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: more drivers/scsi annotations
Almost all are trivial, aacraid/linit.c annotations had caught a bug -
copy_from_user() where copy_in_user() should've been.
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: a couple of inline fixes in drivers'/scsi
Usual "inline used before definition" fixes in nsp32.c and sg.c
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: more drivers/usb/* annotations
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: #if where #ifdef should've been (saa7146)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: (ipv6/netfilter) initializer fix
Missing '=' in C99 initializer
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] sparse: sound compat ioctls annotations
Trivial annotations + typo fix in _snd_ioctl32_hwdep_dsp_image()
(we want to copy 32bit structure from userland, convert it to native one
and do normal ioctl on it; see the first changed line below for what's
really happening...)
<viro@parcelfarce.linux.theplanet.co.uk>
[PATCH] mcdx irq handling cleanup
mcdx has different IRQ numbers for all drives; irq handler needs a
pointer to structure describing the drive in question. However, instead
of passing such pointer at request_irq() time and having it passed to
mcdx_intr() for free, mcdx.c sticks the pointer in question into an
array indexed by IRQ number and has mcdx_intr() go look it up there.
Cleaned up, array killed.
<jbglaw@lug-owl.de>
[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failed
While reading code, I found this buglet. If the TIOCGWINSZ fails,
mconf.c assumes 24/80 as screen size, without honoring the LINES and
COLUMNS environment variables. This is the shorter and IMHO more
correct version.
Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
<mika@osdl.org>
[PATCH] Fix 'unsigned' < 0 checks
Using "-W" found a few places that should probably use signed
variables since they can contain (and check for) negative error
values.
<proski@gnu.org>
[netdrvr pci-skeleton] refresh
Here it is. The patch fixes all compile errors and warnings in
pci-skeleton.c. The "debug" parameter lacks corresponding variable,
so I removed it to avoid a warning on module load. Obsolete
pci_power_on() and pci_power_off() have been replaced with the new
code using pci_set_power_state(), pci_save_state() and
pci_restore_state(). The driver has been tested by compiling it as
module and as part of the kernel.
<trivial@rustcorp.com.au>
[PATCH] [TRIVIAL 2.6] sk98lin: kill dup include
From: a.othieno@bluewin.ch (Arthur Othieno)
<jgarzik@pobox.com>
[netdrvr dmfe] remove ALi pci id
It's tulip driver, and tulip driver performs better than dmfe
(yet some distro installers pick this driver to use).
Requested by ALi.
<margitsw@t-online.de>
[PATCH] prism54 Fix wrong type for BSSID
2004-07-12 Margit Schubert-While <margitsw@t-online.de>
* The OID type for BSSID was incorrectly set to type SSID.
It should be type RAW. This lead to interesting reporting
by "iwpriv ethX g_bssid".
(Which caused garbage output and possibly an out of bound)
* Be ultra-cautious in reporting SSID by changing the "%s"
to "%.*s" and passing the length. (Prompted by the false
type above, whereby length = 0 and a %s on a garbage field)
<akpm@osdl.org>
[PATCH] fix airo oops-on-removal
From: Bill Nottingham <notting@redhat.com>
airo creates /proc/driver/aironet/<device name> on device activation.
However, the device can be renamed - then on teardown it tries to remove
the wrong directory. The removal of /proc/driver/aironet then runs afoul
of the BUG_ON() in remove_proc_entry.
This fixes it by keeping a copy of the name of the directory it created.
(It doesn't actually solve the problem of the stats directory still being
/proc/driver/aironet/eth0 when you rename the device to, say, 'joe'. But
that patch would be a little less trivial.)
Signed-off-by: Andrew Morton <akpm@osdl.org>
<mhoffman@lightlink.com>
[PATCH] I2C: Remove extra inits from lm78 driver
This patch is from the lm_sensors project CVS, from this revision:
1.63 (mds) remove initialization of limits by driver
It is better to set these limits by a combination of /etc/sensors.conf
and 'sensors -s'; "mechanism not policy." Please apply.
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<khali@linux-fr.org>
[PATCH] I2C: Refine detection of LM75 chips
The LM75 detection method was a bit loose so far and would accept
non-LM75-compatible chips from times to times. It should be better now.
Additionally, the help for the lm75 driver was reworked because we now
know that the LM75 and the LM77 are not compatible.
Signed-off-by: Jean Delvare <khali at linux-fr dot org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<anton@samba.org>
[PATCH] tg3 bug
During receive processing, the tg3 card updates rx_producer (the
hardware position in the receive ring) and the opaque cookie. Due to PCI
rules the stores happen in order. However the cpu may reorder the reads.
In these sort of cases there is usually a data dependency between
reading the index and looking up the data (since we use the index to
load the data). I think all cpus except alpha guarantee the reads
happen in order in this case.
However in this particular case we load hw_idx, compare it to sw_idx and
then use sw_idx to locate the opaque cookie. There is no data dependency
in this case. We need a read memory barrier between the read of
rx_producer and the opaque cookie to enforce ordering.
Thanks to Olof Johansson, Michael Chan and Broadcom for their assistance
in finding this bug.
Signed-off-by: Anton Blanchard <anton@samba.org>
<jgarzik@pobox.com>
[netdrvr tg3] bump version and reldate
<g.liakhovetski@gmx.de>
[wireless airo] fix alignment problem (particularly on ARM)
Bugzilla #2905
<janiceg@us.ibm.com>
[netdrvr acenic] fix RX descriptor memory ordering
<Sergio.Gelato@astro.su.se>
[PATCH] libata: fix kunmap() of incorrect page, in PIO data xfer
Obvious bug. Fixes highmem oops.
<jgarzik@pobox.com>
[PCI, libata] Fix "combined mode" PCI quirk for ICH6
The hardware vendor, in their infinite wisdom, make the combined
mode configuration register different between ICH5 and ICH6.
Take this into account.
<greg@kroah.com>
[PATCH] USB: add 3 Phidget device ids to the HID blacklist.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Add usb_kill_urb()
This patch is a slightly revised version of as277c, updated to match the
current source. The only difference from the older version is that this
makes urb->use_count into an atomic_t, to avoid the overhead of an extra
locking step each time an URB is submitted and given back. The important
features of this patch are:
-EPERM added to Documentation/usb/error-codes.txt.
Failure to use URB_ASYNC_UNLINK with usb_unlink_urb() is
deprecated in the documentation.
New ->reject and ->use_count fields added to struct urb.
The reject field is protected by urb->lock, and locking is
required only in usb_kill_urb() which doesn't have to be fast.
Single wait_queue used for all processes waiting inside
usb_kill_urb(). The wait queue is woken up only when an URB
is given back with ->reject set.
usb_rh_status_dequeue() changed to return int. It looks like
this function should be declared static; it's not used outside
the hcd.c file.
Prototype for unlink_urb() in struct usb_operations is changed
to include a status code argument. This is necessary so that
the different unlink paths can return -ENOENT and -ECONNRESET
as appropriate.
Support for synchronous usb_unlink_urb() has been removed;
such calls are passed to usb_kill_urb().
Kerneldoc for usb_unlink_urb() is updated.
usb_kill_urb() added to urb.c.
hc_simple() host driver is partially updated -- it should
compile but it won't really work right.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Make hub driver use usb_kill_urb()
This is a rerun of as278, updated to match the current source. It changes
the hub driver, replacing calls to synchronous usb_unlink_urb() with
usb_kill_urb() and removing the machinery formerly needed to synchronize
the status URB handler with the rest of the driver.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Don't ask for string descriptor lengths
Okay, here's a revised patch (as332b). This tries first to ask for 255
bytes, and if that fails then it asks for the length and the full
descriptor. Hopefully nobody will object to applying this version...
You know, it occurs to me that the have_langid field in usb_device could
easily be eliminated. Just set string_langid to -1 during initialization
and test for whether or not it is >= 0. I'll do that some other time.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Store pointer to usb_device in private hub structure
This patch adds a pointer to the hub's usb_device into the usb_hub private
structure. It's a small change, and permits a small amount of
simplification in a few spots, i.e., avoid calling interface_to_usbdev().
This doesn't really do much in itself, but it's a prerequisite for the
next patch. (A situation arises where we can't use the interface pointer
to find the usb_device because the interface might not exist.)
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<greg@kroah.com>
[PATCH] USB: fix up the wording in the emi26 firmware file to match the other kernel firmware files.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<greg@kroah.com>
[PATCH] USB: more sparse cleanups (all pretty much NULL usages.)
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<olh@suse.de>
[PATCH] USB: fix lockup with 2.6 keyspan_pda driver
I suggest to put the pointer to port instead of the pointer to the
pointer to port to the workqueue data.
Did that driver ever work with 2.6?
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<mika@osdl.org>
[PATCH] USB: Trivial fix to include/linux/usb.h
Hi Greg!
I am compiling allmodconfig with some extra gcc warnings enabled
(-W -Wno-unused -Wno-sign-compare -Winline -Wundef) and got this one:
CC [M] security/root_plug.o
In file included from security/root_plug.c:30:
include/linux/usb.h:358: warning: `inline' is not at beginning of declaration
Patch is trivial:
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Fix endianness bug in UHCI driver
This patch fixes a byte-swapping error in the UHCI driver. It has been
present since 2.6.6 and only got tracked down just now! Thanks a lot to
Michel Roelofs for all his help and testing.
This should be pushed through to Linus in time to appear in 2.6.8, if
possible.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<greg@kroah.com>
[PATCH] USB: more sparse fixups that found a real bug in the se401 driver
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<ddstreet@ieee.org>
[PATCH] USB: fix usbfs mount options ignored bug
Ok here is a patch to make the mount options work. In addition to
implementing the remount function, it removes the parse_options() call
from usb_fill_super and adds a "ignore" flag around the mounting that gets
done in create_special_files. The parse_options call in usb_fill_super is
removed because it is not needed when remount is implemented. The
ignore_mount flag is needed because the simple_pin_fs function calls
remount with no mount options - i.e. it's not a real mount. So the mount
options would be cleared out. The ignore_mount flag causes the remount
function to only act on real mounts.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<lcapitulino@prefeitura.sp.gov.br>
[PATCH] USB: usb/core/file.c::usb_major_init() cleanup.
This patch does a cleanup for usb/core/file.c::usb_major_init(), which
is:
*) in error condition, returns the error code from register_chrdev(),
insted returning -EBUSY;
*) adds missing audit for class_register();
*) only calls devfs_mk_dir() if the prior calls have success.
Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
<stern@rowland.harvard.edu>
[PATCH] USB: Allow NULL argument in usb_unlink_urb() and usb_kill_urb()
It makes sense for APIs involved in cleanup activities (like kfree()) to
accept NULL arguments. Doing so frees drivers from the responsibility of
checking whether each resource was actually acquired before trying to
release it. Accordingly, this patch makes usb_unlink_urb() and
&nb |