]> Git Repo - linux.git/log
linux.git
15 years agojsm: removing ch_old_baud field
Breno Leitão [Tue, 29 Sep 2009 18:16:56 +0000 (15:16 -0300)]
jsm: removing ch_old_baud field

Currently the field jsm_channel->ch_old_baud is not used, just
assigned in a lot of places but never used. This patches removes
this field.

Signed-off-by: Breno Leitão <[email protected]>
Cc: Scott Kilau <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agojsm: remove the ch_custom_speed field
Breno Leitão [Tue, 29 Sep 2009 18:16:55 +0000 (15:16 -0300)]
jsm: remove the ch_custom_speed field

Currently the ch_custom_speed field exists but is never used,
so, this patch removes it.

Signed-off-by: Breno Leitão <[email protected]>
Cc: Scott Kilau <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agojsm: Rewriting a bad log message
Breno Leitão [Thu, 24 Sep 2009 19:58:23 +0000 (16:58 -0300)]
jsm: Rewriting a bad log message

Actually jsm displays "Device Added" 8 times (for a 8 port device).
This silly patch just makes things more informative, showing
the port (instead of the device) that was added.

Signed-off-by: Breno Leitão <[email protected]>
Cc: Scott Kilau <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agojsm: IRQ handlers doesn't need to have IRQ_DISABLED enabled
Breno Leitão [Thu, 24 Sep 2009 19:58:22 +0000 (16:58 -0300)]
jsm: IRQ handlers doesn't need to have IRQ_DISABLED enabled

Currently jsm is showing the following message when loaded:

IRQ 432/JSM: IRQF_DISABLED is not guaranteed on shared IRQs

It's because the request_irq() is called using IRQF_DISABLED
and IRQF_SHARED.
Actually there is no need to use IRQF_DISABLED in this driver.

Signed-off-by: Breno Leitão <[email protected]>
Cc: Scott Kilau <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agonet: Handle NETREG_UNINITIALIZED devices correctly
Krishna Kumar [Tue, 8 Dec 2009 22:26:02 +0000 (22:26 +0000)]
net: Handle NETREG_UNINITIALIZED devices correctly

Fix two problems:

1. If unregister_netdevice_many() is called with both registered
   and unregistered devices, rollback_registered_many() bails out
   when it reaches the first unregistered device. The processing
   of the prior registered devices is unfinished, and the
   remaining devices are skipped, and possible registered netdev's
   are leaked/unregistered.

2. System hangs or panics depending on how the devices are passed,
   since when netdev_run_todo() runs, some devices were not fully
   processed.

Tested by passing intermingled unregistered and registered vlan
devices to unregister_netdevice_many() as follows:
1. dev, fake_dev1, fake_dev2: hangs in run_todo
   ("unregister_netdevice: waiting for eth1.100 to become
    free. Usage count = 1")
2. fake_dev1, dev, fake_dev2: failure during de-registration
   and next registration, followed by a vlan driver Oops
   during subsequent registration.

Confirmed that the patch fixes both cases.

Signed-off-by: Krishna Kumar <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agocan: add the driver for Analog Devices Blackfin on-chip CAN controllers
Barry Song [Thu, 10 Dec 2009 23:46:28 +0000 (23:46 +0000)]
can: add the driver for Analog Devices Blackfin on-chip CAN controllers

Signed-off-by: Barry Song <[email protected]>
Signed-off-by: H.J. Oertel <[email protected]>
Signed-off-by: Wolfgang Grandegger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agoxfrm: Fix truncation length of authentication algorithms installed via PF_KEY
Martin Willi [Wed, 9 Dec 2009 06:11:15 +0000 (06:11 +0000)]
xfrm: Fix truncation length of authentication algorithms installed via PF_KEY

Commit 4447bb33f09444920a8f1d89e1540137429351b6 ("xfrm: Store aalg in
xfrm_state with a user specified truncation length") breaks
installation of authentication algorithms via PF_KEY, as the state
specific truncation length is not installed with the algorithms
default truncation length.  This patch initializes state properly to
the default if installed via PF_KEY.

Signed-off-by: Martin Willi <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agonet: use compat helper functions in compat_sys_recvmmsg
Heiko Carstens [Wed, 9 Dec 2009 20:59:15 +0000 (20:59 +0000)]
net: use compat helper functions in compat_sys_recvmmsg

Use (get|put)_compat_timespec helper functions to simplify the code.

Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agonet: fix compat_sys_recvmmsg parameter type
Heiko Carstens [Wed, 9 Dec 2009 20:58:16 +0000 (20:58 +0000)]
net: fix compat_sys_recvmmsg parameter type

compat_sys_recvmmsg has a compat_timespec parameter and not a
timespec parameter. This way we also get rid of an odd cast.

Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agocxgb3: Fixing EEH handlers
Breno Leitao [Thu, 10 Dec 2009 09:03:37 +0000 (09:03 +0000)]
cxgb3: Fixing EEH handlers

After commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff ("PCI: Clear
saved_state after the state has been restored"), the EEH is not
working proplery on cxgb3.

This patch fixes it, always saving the PCI state after a recovery,
in order to allow further reoveries.

Signed-off-by: Breno Leitao <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agocnic: Zero out status block and Event Queue indices.
Michael Chan [Thu, 10 Dec 2009 15:40:58 +0000 (15:40 +0000)]
cnic: Zero out status block and Event Queue indices.

To prevent stale indices from causing spurious events when restarting the
bnx2x devices.

Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agocnic: Send delete command when shutting down iSCSI ring.
Michael Chan [Thu, 10 Dec 2009 15:40:57 +0000 (15:40 +0000)]
cnic: Send delete command when shutting down iSCSI ring.

This step is necessary on the bnx2x devices when restarting the iSCSI
ring.  Without it, the firmware can assert and cause bnx2x to report
errors.

Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agonet: smc91x: Fix up type mismatch in smc_drv_resume().
Paul Mundt [Thu, 10 Dec 2009 20:42:27 +0000 (20:42 +0000)]
net: smc91x: Fix up type mismatch in smc_drv_resume().

smc_drv_resume() takes a struct device, while smc_enable_device() takes a
platform device. This fixes up the smc_enable_device() callsite with the
proper pointer.

It's not obvious when this change was introduced, as git history doesn't
go back that far. Presumably the resume code has always been broken in
this fashion.

Signed-off-by: Paul Mundt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agosmc91x: fix unused flags warnings on UP systems
Mike Frysinger [Wed, 9 Dec 2009 03:40:04 +0000 (03:40 +0000)]
smc91x: fix unused flags warnings on UP systems

Local flags variables will be declared whenever these functions get used,
but obviously on UP systems the flags parameter won't be touched.  So add
some dummy ops that get optimized away anyways to satisfy gcc's warnings.

Signed-off-by: Mike Frysinger <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agoMAINTAINERS: Transfering maintainership of cdc-ether
Oliver Neukum [Fri, 11 Dec 2009 23:01:26 +0000 (15:01 -0800)]
MAINTAINERS: Transfering maintainership of cdc-ether

Oliver Neukum takes over from Greg KH

Signed-off-by: Oliver Neukum <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agonet: Add missing TST_CFG_WRITE bits around sky2_pci_write
Takashi Iwai [Thu, 3 Dec 2009 05:12:02 +0000 (05:12 +0000)]
net: Add missing TST_CFG_WRITE bits around sky2_pci_write

Add missing TST_CFG_WRITE bits around sky2_pci_write*() in Optima
setup routines.  Without the cfg-write bits, the driver may spew endless
link-up messages through qlink irq.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agonet: Fix Yukon-2 Optima TCP offload setup
Takashi Iwai [Thu, 3 Dec 2009 05:12:01 +0000 (05:12 +0000)]
net: Fix Yukon-2 Optima TCP offload setup

Fix the TCP offload setup for Yukon-2 Optima.
It requires SKY2_HW_NE_LE flag unlike Ultra 2.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
15 years agoMerge branch 'drm-nouveau-pony' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Fri, 11 Dec 2009 22:32:49 +0000 (14:32 -0800)]
Merge branch 'drm-nouveau-pony' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6

* 'drm-nouveau-pony' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
  drm/nouveau: Add DRM driver for NVIDIA GPUs

15 years agoMerge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
Linus Torvalds [Fri, 11 Dec 2009 22:32:30 +0000 (14:32 -0800)]
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6

* 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
  drm/ttm: export some functions useful to drivers using ttm
  drm/radeon/kms/avivo: fix typo in new_pll module description
  drm/radeon/kms: Convert radeon to new ttm_bo_init
  drm/ttm: Convert ttm_buffer_object_init to use ttm_placement

15 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
David S. Miller [Fri, 11 Dec 2009 22:19:31 +0000 (14:19 -0800)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6

15 years agoxfs: Fix error return for fallocate() on XFS
Jason Gunthorpe [Tue, 24 Nov 2009 21:52:53 +0000 (21:52 +0000)]
xfs: Fix error return for fallocate() on XFS

Noticed that through glibc fallocate would return 28 rather than -1
and errno = 28 for ENOSPC. The xfs routines uses XFS_ERROR format
positive return error codes while the syscalls use negative return
codes.  Fixup the two cases in xfs_vn_fallocate syscall to convert to
negative.

Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: cleanup dmapi macros in the umount path
Christoph Hellwig [Sat, 14 Nov 2009 16:17:24 +0000 (16:17 +0000)]
xfs: cleanup dmapi macros in the umount path

Stop the flag saving as we never mangle those in the unmount path, and
hide all the weird arguents to the dmapi code inside the
XFS_SEND_PREUNMOUNT / XFS_SEND_UNMOUNT macros.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: remove incorrect sparse annotation for xfs_iget_cache_miss
Christoph Hellwig [Sat, 14 Nov 2009 16:17:23 +0000 (16:17 +0000)]
xfs: remove incorrect sparse annotation for xfs_iget_cache_miss

xfs_iget_cache_miss does not get called with the pag_ici_lock held, so
the __releases annotation is incorrect.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: kill the STATIC_INLINE macro
Christoph Hellwig [Sat, 14 Nov 2009 16:17:22 +0000 (16:17 +0000)]
xfs: kill the STATIC_INLINE macro

Remove our own STATIC_INLINE macro.  For small function inside
implementation files just use STATIC and let gcc inline it, and for
those in headers do the normal static inline - they are all small
enough to be inlined for debug builds, too.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: uninline xfs_get_extsz_hint
Christoph Hellwig [Sat, 14 Nov 2009 16:17:21 +0000 (16:17 +0000)]
xfs: uninline xfs_get_extsz_hint

This function is too large to efficiently be inlined.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: rename xfs_attr_fetch to xfs_attr_get_int
Christoph Hellwig [Sat, 14 Nov 2009 16:17:20 +0000 (16:17 +0000)]
xfs: rename xfs_attr_fetch to xfs_attr_get_int

Using a totally different name for the low-level get operation does
not fit the _int convention used in the rest of the attr code, so
rename it.

While we're at it also fix the prototype to use the normal convention
and mark it static as it's never used outside of xfs_attr.c.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: simplify xfs_buf_get / xfs_buf_read interfaces
Christoph Hellwig [Tue, 24 Nov 2009 18:02:23 +0000 (18:02 +0000)]
xfs: simplify xfs_buf_get / xfs_buf_read interfaces

Currently the low-level buffer cache interfaces are highly confusing
as we have a _flags variant of each that does actually respect the
flags, and one without _flags which has a flags argument that gets
ignored and overriden with a default set.  Given that very few places
use the default arguments get rid of the duplication and convert all
callers to pass the flags explicitly.  Also remove the now confusing
_flags postfix.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: remove IO_ISAIO
Christoph Hellwig [Sat, 14 Nov 2009 16:17:18 +0000 (16:17 +0000)]
xfs: remove IO_ISAIO

We set the IO_ISAIO flag for all read/write I/O since early Linux
2.6.x.  Remove it as it has lost it's purpose long ago.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: Wrapped journal record corruption on read at recovery
Andy Poling [Tue, 3 Nov 2009 17:26:47 +0000 (17:26 +0000)]
xfs: Wrapped journal record corruption on read at recovery

Summary of problem:

If a journal record wraps at the physical end of the journal, it has to be
read in two parts in xlog_do_recovery_pass(): a read at the physical end and a
read at the physical beginning.  If xlog_bread() has to re-align the first
read, the second read request does not take that re-alignment into account.
If the first read was re-aligned, the second read over-writes the end of the
data from the first read, effectively corrupting it.  This can happen either
when reading the record header or reading the record data.

The first sanity check in xlog_recover_process_data() is to check for a valid
clientid, so that is the error reported.

Summary of fix:

If there was a first read at the physical end, XFS_BUF_PTR() returns where the
data was requested to begin.  Conversely, because it is the result of
xlog_align(), offset indicates where the requested data for the first read
actually begins - whether or not xlog_bread() has re-aligned it.

Using offset as the base for the calculation of where to place the second read
data ensures that it will be correctly placed immediately following the data
from the first read instead of sometimes over-writing the end of it.

The attached patch has resolved the reported problem of occasional inability
to recover the journal (reporting "bad clientid").

Signed-off-by: Andy Poling <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: cleanup data end I/O handlers
Christoph Hellwig [Fri, 30 Oct 2009 09:11:47 +0000 (09:11 +0000)]
xfs: cleanup data end I/O handlers

Currently we have different end I/O handlers for read vs the different
types of write I/O.  But they are all very similar so we could just
use one with a few conditionals and reduce code size a lot.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: use WRITE_SYNC_PLUG for synchronous writeout
Christoph Hellwig [Fri, 30 Oct 2009 09:09:15 +0000 (09:09 +0000)]
xfs: use WRITE_SYNC_PLUG for synchronous writeout

The VM and I/O schedulers now expect us to use WRITE_SYNC_PLUG for
synchronous writeout.  Right now I can't see any changes in performance
numbers with this, but we're getting some beating for not using it,
and the knowledge definitely could help the block code to make better
decisions.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: reset the i_iolock lock class in the reclaim path
Christoph Hellwig [Mon, 19 Oct 2009 04:05:26 +0000 (04:05 +0000)]
xfs: reset the i_iolock lock class in the reclaim path

The iolock is used for protecting reads, writes and block truncates
against each other.  We have two classes of callers, the first one is
induced by a file operation and requires a reference to the inode be
held and not dropped after the operation is done:

 - xfs_vm_vmap, xfs_vn_fallocate, xfs_read, xfs_write, xfs_splice_read,
   xfs_splice_write and xfs_setattr are all implementations of VFS
   methods that require a live inode
 - xfs_getbmap and xfs_swap_extents are ioctl subcommand for which the
   same is true
 - xfs_truncate_file is only called on quota inodes just returned from
   xfs_iget
 - xfs_sync_inode_data does the lock just after an igrab()
 - xfs_filestream_associate and xfs_filestream_new_ag take the iolock
   on the parent inode of an inode which by VFS rules must be referenced

And we have various calls to truncate blocks past EOF or the whole
file when dropping the last reference to an inode.  Unfortunately
lockdep complains when we do memory allocations that can recurse into
the filesystem in the first class because the second class happens to
take the same lock.  To avoid this re-init the iolock in the beginning
of xfs_fs_clear_inode to get a new lock class.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: I/O completion handlers must use NOFS allocations
Christoph Hellwig [Mon, 19 Oct 2009 04:00:03 +0000 (04:00 +0000)]
xfs: I/O completion handlers must use NOFS allocations

When completing I/O requests we must not allow the memory allocator to
recurse into the filesystem, as we might deadlock on waiting for the
I/O completion otherwise.  The only thing currently allocating normal
GFP_KERNEL memory is the allocation of the transaction structure for
the unwritten extent conversion.  Add a memflags argument to
_xfs_trans_alloc to allow controlling the allocator behaviour.

Signed-off-by: Christoph Hellwig <[email protected]>
Reported-by: Thomas Neumann <[email protected]>
Tested-by: Thomas Neumann <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: fix mmap_sem/iolock inversion in xfs_free_eofblocks
Christoph Hellwig [Mon, 19 Oct 2009 04:03:46 +0000 (04:03 +0000)]
xfs: fix mmap_sem/iolock inversion in xfs_free_eofblocks

When xfs_free_eofblocks is called from ->release the VM might already
hold the mmap_sem, but in the write path we take the iolock before
taking the mmap_sem in the generic write code.

Switch xfs_free_eofblocks to only trylock the iolock if called from
->release and skip trimming the prellocated blocks in that case.
We'll still free them later on the final iput.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agoxfs: simplify inode teardown
Christoph Hellwig [Tue, 29 Sep 2009 13:48:56 +0000 (13:48 +0000)]
xfs: simplify inode teardown

Currently the reclaim code for the case where we don't reclaim the
final reclaim is overly complicated.  We know that the inode is clean
but instead of just directly reclaiming the clean inode we go through
the whole process of marking the inode reclaimable just to directly
reclaim it from the calling context.  Besides being overly complicated
this introduces a race where iget could recycle an inode between
marked reclaimable and actually being reclaimed leading to panics.

This patch gets rid of the existing reclaim path, and replaces it with
a simple call to xfs_ireclaim if the inode was clean.  While we're at
it we also use the slightly more lax xfs_inode_clean check we'd use
later to determine if we need to flush the inode here.

Finally get rid of xfs_reclaim function and place the remaining small
bits of reclaim code directly into xfs_fs_destroy_inode.

Signed-off-by: Christoph Hellwig <[email protected]>
Reported-by: Patrick Schreurs <[email protected]>
Reported-by: Tommy van Leeuwen <[email protected]>
Tested-by: Patrick Schreurs <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
15 years agofirewire: ohci: handle receive packets with a data length of zero
Jay Fenlason [Fri, 11 Dec 2009 19:23:58 +0000 (14:23 -0500)]
firewire: ohci: handle receive packets with a data length of zero

Queueing to receive an ISO packet with a payload length of zero
silently does nothing in dualbuffer mode, and crashes the kernel in
packet-per-buffer mode.  Return an error in dualbuffer mode, because
the DMA controller won't let us do what we want, and work correctly in
packet-per-buffer mode.

Signed-off-by: Jay Fenlason <[email protected]>
Signed-off-by: Stefan Richter <[email protected]>
Cc: [email protected]
15 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/viro/mmap
Linus Torvalds [Fri, 11 Dec 2009 20:23:29 +0000 (12:23 -0800)]
Merge git://git.kernel.org/pub/scm/linux/kernel/git/viro/mmap

* git://git.kernel.org/pub/scm/linux/kernel/git/viro/mmap:
  Add missing alignment check in arch/score sys_mmap()
  fix broken aliasing checks for MAP_FIXED on sparc32, mips, arm and sh
  Get rid of open-coding in ia64_brk()
  sparc_brk() is not needed anymore
  switch do_brk() to get_unmapped_area()
  Take arch_mmap_check() into get_unmapped_area()
  fix a struct file leak in do_mmap_pgoff()
  Unify sys_mmap*
  Cut hugetlb case early for 32bit on ia64
  arch_mmap_check() on mn10300
  Kill ancient crap in s390 compat mmap
  arm: add arch_mmap_check(), get rid of sys_arm_mremap()
  file ->get_unmapped_area() shouldn't duplicate work of get_unmapped_area()
  kill useless checks in sparc mremap variants
  fix pgoff in "have to relocate" case of mremap()
  fix the arch checks in MREMAP_FIXED case
  fix checks for expand-in-place mremap
  do_mremap() untangling, part 3
  do_mremap() untangling, part 2
  untangling do_mremap(), part 1

15 years agoStaging: IIO: add selection of IIO_SW_RING to LIS3L02DQ as needed
Jonathan Cameron [Mon, 7 Dec 2009 15:19:17 +0000 (15:19 +0000)]
Staging: IIO: add selection of IIO_SW_RING to LIS3L02DQ as needed

Here I've kept the selection of IIO_SW_RING separate from
IIO_TRIGGER as it will go away fairly shortly when the ring buffer
type becomes configurable on a per device basis, whereas the
IIO_TRIGGER select will remain. Whether to retain the option to
remove the support for ring buffers entirely is one for after that
support is in place.

Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: IIO: Add tsl2560-2 support to tsl2563 driver.
Jonathan Cameron [Sun, 22 Nov 2009 16:03:25 +0000 (16:03 +0000)]
Staging: IIO: Add tsl2560-2 support to tsl2563 driver.

Minimal changes to driver. Just adds the device to the id
table and adjusts the Kconfig elements appropriately.

Adding further similar chips from TAOS is complicated by their
different conversion functions (and hence left for now).

Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Amit Kucheria <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: IIO: Remove tsl2561 driver. Support merged with tsl2563.
Jonathan Cameron [Sun, 22 Nov 2009 16:00:02 +0000 (16:00 +0000)]
Staging: IIO: Remove tsl2561 driver. Support merged with tsl2563.

This patch simply removes the tsl2561 driver.

Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Amit Kucheria <[email protected]>
15 years agoStaging: wlags49_h2: fix up signal levels
Henk de Groot [Sun, 6 Dec 2009 20:29:31 +0000 (21:29 +0100)]
Staging: wlags49_h2: fix up signal levels

Adjusts the signal levels reported by the wlags49_h2 and wlags49_h25 staging
drivers. With the constants supplied by Agere the signal levels are always
poor, even in close proximity to the AP. The signals are now measured with
a real device. 100% for close proximity to the AP, 0% for the noice floor.
Now the levels shown by the NetworkManager gauge make sense.

Some magic numbers in the related code are replaced by the correct constants
from the wireless extension interface (wireless.h). Also the flag IW_QUAL_DBM
is now set, as specified in the wireless.h header file.

Signed-off-by: Henk de Groot <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years ago+ drivers-staging-wlags49_h2-remove-cvs-metadata.patch added to -mm tree
Andrew Morton [Sat, 5 Dec 2009 01:05:45 +0000 (17:05 -0800)]
+ drivers-staging-wlags49_h2-remove-cvs-metadata.patch added to -mm tree

Cc: Henk de Groot <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: samsung-laptop: add TODO file
Greg Kroah-Hartman [Fri, 4 Dec 2009 00:27:19 +0000 (16:27 -0800)]
Staging: samsung-laptop: add TODO file

Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: samsung-laptop: remove old kernel code
Greg Kroah-Hartman [Fri, 4 Dec 2009 00:24:47 +0000 (16:24 -0800)]
Staging: samsung-laptop: remove old kernel code

Don't test for the kernel version, we know what version we are in,
the latest.

Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: add Samsung Laptop driver
Greg Kroah-Hartman [Fri, 4 Dec 2009 00:19:47 +0000 (16:19 -0800)]
Staging: add Samsung Laptop driver

This is a drive for the Samsung N128 laptop to control the wireless LED
and backlight.

Many thanks to Joey Lee for his help in testing and finding all of my
bugs in the development of this driver, it has been invaluable.

Cc: Joey Lee <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agostaging: batman-adv meshing protocol
Andrew Lunn [Mon, 9 Nov 2009 20:20:10 +0000 (21:20 +0100)]
staging: batman-adv meshing protocol

B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
a routing protocol for multi-hop ad-hoc mesh networks. The
networks may be wired or wireless. See
http://www.open-mesh.org/ for more information and user space
tools.

This is the first submission for inclusion in staging.

Signed-off-by: Andrew Lunn <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8192u: depends on USB
Randy Dunlap [Wed, 11 Nov 2009 17:31:23 +0000 (09:31 -0800)]
Staging: rtl8192u: depends on USB

rtl8192u uses usb_* interfaces so it should depend on USB.

ERROR: "usb_kill_urb" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_deregister" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_control_msg" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_submit_urb" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_register_driver" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_free_urb" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!
ERROR: "usb_alloc_urb" [drivers/staging/rtl8192u/r8192u_usb.ko] undefined!

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8192u: remove dead code
Mauro Carvalho Chehab [Tue, 3 Nov 2009 09:45:50 +0000 (07:45 -0200)]
Staging: rtl8192u: remove dead code

Remove #ifse against older kernel versions;
Remove codes marked with #if 0;
Remove #if 1

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8192u: remove bad whitespaces
Mauro Carvalho Chehab [Tue, 3 Nov 2009 09:42:46 +0000 (07:42 -0200)]
Staging: rtl8192u: remove bad whitespaces

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8192u: make it compile
Mauro Carvalho Chehab [Tue, 3 Nov 2009 09:17:24 +0000 (07:17 -0200)]
Staging: rtl8192u: make it compile

Add it to staging Kbuild and fixes some API differences that prevents
compilation.

It seems that the ieee80211 stack is very close to rtl8192su one.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: Added Realtek rtl8192u driver to staging
Jerry Chuang [Tue, 3 Nov 2009 09:17:11 +0000 (07:17 -0200)]
Staging: Added Realtek rtl8192u driver to staging

Add Realtek linux driver for rtl8192u as provided by Realtek

rtl8192u_linux_2.6.0006.1031.2008.tar.gz, send to me C/C staging ML.

This version won't compile against upstream, doesn't follow
Linux CodingStyle and has their own ieee80211 stack.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: dream: add gpio and pmem support
Pavel Machek [Sun, 1 Nov 2009 22:27:01 +0000 (23:27 +0100)]
Staging: dream: add gpio and pmem support

This adds generic_gpio and pmem support, both are needed for other
dream drivers.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: dream: add TODO file
Pavel Machek [Wed, 28 Oct 2009 22:48:18 +0000 (23:48 +0100)]
Staging: dream: add TODO file

This adds TODO list. It is probably incomplete, as many parts were not
reviewed by the upstream maintainers, yet.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: android: delete android drivers
Greg Kroah-Hartman [Mon, 5 Oct 2009 23:29:29 +0000 (16:29 -0700)]
Staging: android: delete android drivers

These drivers are no longer being developed and the original authors
seem to have abandonded them and hence, do not want them in the mainline
kernel tree.

So sad :(

Cc: Brian Swetland <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: clean up the avail fields in the rx registers
Alan Cox [Wed, 18 Nov 2009 14:07:58 +0000 (14:07 +0000)]
Staging: et131x: clean up the avail fields in the rx registers

These have a wrap bit but again need little work to clean out. There are a
couple of uglies left that want addressing in later clean up. Notably we should
probably keep the local psr copy and wrap as two values.

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: Clean up number fields
Alan Cox [Wed, 18 Nov 2009 14:07:48 +0000 (14:07 +0000)]
Staging: et131x: Clean up number fields

Lots of RX typedefs are just low bits of a u32, so clean them all up in one
go and just work them directly.

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: kill RX_DMA_MAX_PKT_TIME
Alan Cox [Wed, 18 Nov 2009 14:07:41 +0000 (14:07 +0000)]
Staging: et131x: kill RX_DMA_MAX_PKT_TIME

Another one bits the dust ...

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: kill TX_SHADOW
Alan Cox [Wed, 18 Nov 2009 14:07:35 +0000 (14:07 +0000)]
Staging: et131x: kill TX_SHADOW

Guess what - we don't use this one either

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: Another typedef solely used to write 0 to a register
Alan Cox [Wed, 18 Nov 2009 14:07:29 +0000 (14:07 +0000)]
Staging: et131x: Another typedef solely used to write 0 to a register

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: kill TX_PR_NUM_DES_t
Alan Cox [Wed, 18 Nov 2009 14:07:21 +0000 (14:07 +0000)]
Staging: et131x: kill TX_PR_NUM_DES_t

Yes folks it another unused typedef.. This completes the clean up of the
TX DMA typedefs

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: kill TxMacTest field
Alan Cox [Wed, 18 Nov 2009 14:07:15 +0000 (14:07 +0000)]
Staging: et131x: kill TxMacTest field

It's really a local in the interrupt handler

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: kill TXTEST and TXFILL, clean up CF_PARAM
Alan Cox [Wed, 18 Nov 2009 14:07:09 +0000 (14:07 +0000)]
Staging: et131x: kill TXTEST and TXFILL, clean up CF_PARAM

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: clean up mac stat names
Alan Cox [Wed, 18 Nov 2009 14:07:03 +0000 (14:07 +0000)]
Staging: et131x: clean up mac stat names

Might as well use something short and obvious

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: clean up MAC_STAT register
Alan Cox [Wed, 18 Nov 2009 14:06:57 +0000 (14:06 +0000)]
Staging: et131x: clean up MAC_STAT register

One by one...

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: et131x: Kill MAC_IF_CTRL typedefs
Alan Cox [Wed, 18 Nov 2009 14:06:50 +0000 (14:06 +0000)]
Staging: et131x: Kill MAC_IF_CTRL typedefs

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8187se: Rename staging driver to avoid name conflict with mainline driver
Larry Finger [Tue, 17 Nov 2009 05:35:38 +0000 (23:35 -0600)]
Staging: rtl8187se: Rename staging driver to avoid name conflict with mainline driver

Now that active development has begun on a mainline version of
a driver for the RTL8187SE that should be called rtl8187se, there
is a conflict with the driver in staging with the same name.

To solve the conflict, rename the driver in staging to r8187se.

Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8187se: Remove card_type
Larry Finger [Tue, 10 Nov 2009 22:44:47 +0000 (16:44 -0600)]
Staging: rtl8187se: Remove card_type

The vendor-written driver for the RTL8187SE has a private variable
for the card type, even though it only occurs in PCI format.

Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rtl8187se: Remove card8185 variable to simplify flow
Larry Finger [Mon, 9 Nov 2009 16:53:20 +0000 (10:53 -0600)]
Staging: rtl8187se: Remove card8185 variable to simplify flow

When this code is used for the rtl8187se, the value of card_8185
in struct r8180_priv is always 7 or 8. As a result, the program
flow can be simplified.

Signed-off-by: Larry Finger <[email protected]>
Tested-by: Bernhard Schiffner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: fix assorted typos all over the place
André Goddard Rosa [Sat, 14 Nov 2009 15:09:06 +0000 (13:09 -0200)]
Staging: fix assorted typos all over the place

Signed-off-by: André Goddard Rosa <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agostaging: dst: fix coding style
Mariusz Ziulek [Thu, 12 Nov 2009 14:01:16 +0000 (15:01 +0100)]
staging: dst: fix coding style

Signed-off-by: Mariusz Ziulek <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: usbip: Fix typo "Contoroller".
Robert P. J. Day [Fri, 13 Nov 2009 20:13:43 +0000 (15:13 -0500)]
Staging: usbip: Fix typo "Contoroller".

Signed-off-by: Robert P. J. Day <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rt28x0: remove no longer needed common/cmm_data_2860.c
Bartlomiej Zolnierkiewicz [Mon, 9 Nov 2009 16:20:39 +0000 (17:20 +0100)]
Staging: rt28x0: remove no longer needed common/cmm_data_2860.c

Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rt2860: reduce superfluous exclamation marks
Sebastian Dalfuß [Sat, 7 Nov 2009 16:31:12 +0000 (17:31 +0100)]
Staging: rt2860: reduce superfluous exclamation marks

This removes superfluous exclamation marks from strings and comments, and
also three spelling typos.

Signed-off-by: Sebastian Dalfuß <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: rt28x0: fix comments in chip/mac_pci.h
Bartlomiej Zolnierkiewicz [Mon, 9 Nov 2009 16:19:45 +0000 (17:19 +0100)]
Staging: rt28x0: fix comments in chip/mac_pci.h

Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: iio: tsl2563 ambient light sensor driver
Amit Kucheria [Mon, 9 Nov 2009 13:14:28 +0000 (15:14 +0200)]
Staging: iio: tsl2563 ambient light sensor driver

Add driver support for the tsl2563 TAOS ambient light sensor. After looking at
discussions on LKML, the driver was modified from a 'hwmon' driver to an 'iio'
driver. The sysfs interfaces have been tested on an RX51 (N900) to see if it
responds to changing light conditions.

The only real reason for submitting this to staging is that it is dependent on
the IIO subsystem.

Signed-off-by: Amit Kucheria <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: iio: Fix typos in documentation
Amit Kucheria [Mon, 9 Nov 2009 13:10:15 +0000 (15:10 +0200)]
Staging: iio: Fix typos in documentation

Spell-check wouln't catch these :)

Signed-off-by: Amit Kucheria <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: sep: fix 2 warnings
Randy Dunlap [Tue, 17 Nov 2009 18:17:42 +0000 (10:17 -0800)]
Staging: sep: fix 2 warnings

Fix printk format warning:
drivers/staging/sep/sep_driver.c:276: warning: format '%08llx' expects type 'long long unsigned int', but argument 2 has type 'dma_addr_t'

and variable may be used uninitialized (correct):
drivers/staging/sep/sep_driver.c:1774: warning: 'error' may be used uninitialized in this function

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt665*: fix printk formats
Randy Dunlap [Wed, 11 Nov 2009 17:31:42 +0000 (09:31 -0800)]
Staging: vt665*: fix printk formats

Fix printk format warnings in vt665[56]:

drivers/staging/vt6655/wpa.c:150: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
drivers/staging/vt6655/wpa.c:181: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'

drivers/staging/vt6656/wpa.c:150: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
drivers/staging/vt6656/wpa.c:181: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
drivers/staging/vt6656/firmware.c:804: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: iio: fix ring buffer build
Randy Dunlap [Tue, 10 Nov 2009 17:04:28 +0000 (09:04 -0800)]
Staging: iio: fix ring buffer build

max1363 uses both the iio hardware ring buffer and software
ring buffer interfaces, but its Makefile and Kconfig do not
reflect that usage, so its build breaks.  Add a new Kconfig
symbol to reflect that usage and change max1363.h & Makefile
to use the new Kconfig symbol.

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
15 years agoStaging: RTL8192SU depends on USB
Randy Dunlap [Wed, 4 Nov 2009 21:56:23 +0000 (13:56 -0800)]
Staging: RTL8192SU depends on USB

USB device driver needs to depend on USB to prevent build errors:

ERROR: "usb_kill_urb" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_deregister" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_control_msg" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_submit_urb" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_register_driver" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_free_urb" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!
ERROR: "usb_alloc_urb" [drivers/staging/rtl8192su/r8192s_usb.ko] undefined!

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: dst: Fix parentheses
Roel Kluin [Tue, 3 Nov 2009 22:48:58 +0000 (23:48 +0100)]
Staging: dst: Fix parentheses

`|' has a higher precedence than `?' so since MSG_WAITALL is
defined 0x100, MSG_MORE was always written to the msg_flag.

Signed-off-by: Roel Kluin <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agostaging: vme: Fix mutex locking
Martyn Welch [Thu, 29 Oct 2009 16:35:27 +0000 (16:35 +0000)]
staging: vme: Fix mutex locking

Fix incorrect use of mutex_trylock().

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: Rename VME DMA functions
Martyn Welch [Thu, 29 Oct 2009 16:35:20 +0000 (16:35 +0000)]
Staging: vme: Rename VME DMA functions

The DMA resource allocation function is called "vme_request_dma" while
master and slave window allocation functions are called
"vme_master_request" and "vme_slave_request" respectively. Rename
"vme_request_dma" to "vme_dma_request" to fit the pattern.

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: Clean up tsi148 driver
Martyn Welch [Thu, 29 Oct 2009 16:35:14 +0000 (16:35 +0000)]
Staging: vme: Clean up tsi148 driver

* Remove message from IACK interrupt handler
* Correct clearing of location monitor interrupts
* Remove interrupt cleanup code that's duplcated in sub function

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: Correct operation of vme_lm_free
Martyn Welch [Thu, 29 Oct 2009 16:35:08 +0000 (16:35 +0000)]
Staging: vme: Correct operation of vme_lm_free

The vme_lm_free() function is not clearing up the resource created in
vme_lm_request(). In addition vme_lm_free() is void function and is used in
exit/error paths, we should wait for mutex to become free rather than
exiting and not freeing the resource.

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: Allow size of 0 when disabling a window
Martyn Welch [Thu, 29 Oct 2009 16:35:01 +0000 (16:35 +0000)]
Staging: vme: Allow size of 0 when disabling a window

The TSI148 driver currently does not allow a size of zero to be passed to a
window. Zero is a valid value if the window is being disabled. Allow
windows to be disabled and their registers cleared.

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: fix compiler warnings in vme_ca91cx42.c
Greg Kroah-Hartman [Thu, 29 Oct 2009 23:18:53 +0000 (16:18 -0700)]
Staging: vme: fix compiler warnings in vme_ca91cx42.c

It's causing people to ignore problems in the file, so get rid
of them so it's obvious something is wrong in the future.

Cc: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: Pull common VME interrupt handling into core code
Martyn Welch [Thu, 29 Oct 2009 16:34:54 +0000 (16:34 +0000)]
Staging: vme: Pull common VME interrupt handling into core code

Currently the VME callback infrastructure is replicated in each VME driver.
Move this common code into the VME core. Rename functions to fit in better
with naming of other VME functions.

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agostaging: vme: correct array overflow
Martyn Welch [Thu, 29 Oct 2009 16:34:48 +0000 (16:34 +0000)]
staging: vme: correct array overflow

Eric Sesterhenn noticed that vme_user is overflowing an array used by
sprintf. Use a bigger array.

CC: Eric Sesterhenn <[email protected]>
Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vme: remove unused #include <linux/version.h>
Huang Weiyi [Thu, 17 Sep 2009 13:25:49 +0000 (21:25 +0800)]
Staging: vme: remove unused #include <linux/version.h>

Remove unused #include <linux/version.h>('s) in
  drivers/staging/vme/bridges/vme_ca91cx42.c
  drivers/staging/vme/bridges/vme_tsi148.c
  drivers/staging/vme/devices/vme_user.c
  drivers/staging/vme/vme.c

Signed-off-by: Huang Weiyi <[email protected]>
Acked-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6655: remove __cplusplus ifdefs
Shawn Bohrer [Mon, 26 Oct 2009 03:46:51 +0000 (22:46 -0500)]
Staging: vt6655: remove __cplusplus ifdefs

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6656 remove unneeded version.h and version check
Shawn Bohrer [Mon, 26 Oct 2009 03:46:50 +0000 (22:46 -0500)]
Staging: vt6656 remove unneeded version.h and version check

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6655 remove unneeded version.h
Shawn Bohrer [Mon, 26 Oct 2009 03:46:49 +0000 (22:46 -0500)]
Staging: vt6655 remove unneeded version.h

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6656 remove duplicate includes
Shawn Bohrer [Mon, 26 Oct 2009 03:46:48 +0000 (22:46 -0500)]
Staging: vt6656 remove duplicate includes

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6655 remove duplicate includes
Shawn Bohrer [Mon, 26 Oct 2009 03:46:47 +0000 (22:46 -0500)]
Staging: vt6655 remove duplicate includes

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6656 remove kcompat.h
Shawn Bohrer [Mon, 26 Oct 2009 03:46:46 +0000 (22:46 -0500)]
Staging: vt6656 remove kcompat.h

The vt6656 driver is integrated in the kernel so it no longer needs the
compatibility header.

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6655 remove kcompat.h
Shawn Bohrer [Mon, 26 Oct 2009 03:46:45 +0000 (22:46 -0500)]
Staging: vt6655 remove kcompat.h

The vt6655 driver is integrated in the kernel so it no longer needs the
compatibility header.

Signed-off-by: Shawn Bohrer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6655: Correct unsigned bound issue
Roel Kluin [Fri, 16 Oct 2009 18:17:57 +0000 (20:17 +0200)]
Staging: vt6655: Correct unsigned bound issue

uNodeIndex is unsigned, check whether it is within bounds instead.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: vt6656: use lowercase for VIA USB vendor id
Otavio Salvador [Tue, 13 Oct 2009 02:47:36 +0000 (23:47 -0300)]
Staging: vt6656: use lowercase for VIA USB vendor id

Signed-off-by: Otavio Salvador <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
15 years agoStaging: octeon: don't ignore request_irq() return code
Roel Kluin [Fri, 18 Sep 2009 19:59:22 +0000 (12:59 -0700)]
Staging: octeon: don't ignore request_irq() return code

Signed-off-by: Roel Kluin <[email protected]>
Acked-by: David Daney <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This page took 0.097878 seconds and 4 git commands to generate.