Commit graph

162,380 commits

Author SHA1 Message Date
Martyn Welch
f00a86d98a Staging: vme: add VME userspace driver
Adds a VME userspace access driver

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:09 -07:00
Martyn Welch
a17a75e266 Staging: VME Framework for the Linux Kernel
This framework aims to colelese, extend and improve the VME Linux
drivers found at vmelinux.org, universe2.sourceforge.net and
openfmi.net/frs/?group_id=144. The last 2 drivers appear to be forks of
the original code found at vmelinux.org though have extended the
codebase.

Signed-off-by: Martyn Welch <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:09 -07:00
Roel Kluin
03cd7136d6 Staging: vt6655: fix possible Read buffer overflow
If pDevice->sOpts.nRxDescs{0,1} or nTxDescs[{0,1}] is zero, the loop ends with
i == 0, and we write aRD{0,1}Ring[-1]. apTD{0,1}Rings[-1] respectively.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:09 -07:00
Jim Lieb
256a816b6b Staging: vt665x: remove tbit.h part 2
Remove use of tbit macros adn remove header file.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
8a3d91b028 Staging: vt665x: remove tbit.h
Remove use of tbit macros and remove the header file.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
dad72fed36 Staging: vt665x: cleanup USB definitions
Remove gratuitous macros re-defining usb functions.
One result is to make kcompat.h now identical in both driver dirs

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
f9de7e7bd9 Staging: vt665x: remove tpci.h file in vt6656
Remove tpci.h.  It is not even used in the usb version
Minor cleanup of janitor work missed earlier.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
1e5743ca6c Staging: vt665x: remove tpci.h file
Convert pci register/command defs to use kernel definitions.
Remove tpci.h.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
3e362598fd Staging: vt665x: Remove umem.h Part 2
Remove references to umem.h macros and refer directly to memcpy
functions.  Delete the include file.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
51b6d9c299 Staging: vt665x: Remove umem.h Part 1
Remove references to umem.h macros and refer directly to memcpy
functions.  Delete the include file.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
a7ad322a46 Staging: vt665x: Clean up include files, Part 2
Remove cplusplus lines from include files
Remove needless ifdefs on includes to conform with C
conventions.  Remove misc commented code/includes
Update TODO

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:08 -07:00
Jim Lieb
9d26d60f99 Staging: vt665x: Clean up include files, Part 1
Remove cplusplus lines from include files
Remove needless ifdefs on includes to conform with C
conventions.  Remove misc commented code/includes
Update TODO

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
a884847a1a Staging: vt665x: Typedef and macro cleanup Part 2
Clean up unused typedefs and macros to remove Win32'isms and
misc non-linux constructs.  Text edits to referencing
source for less frequently used macros.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
193a823caa Staging: vt665x: Typedef and macro cleanup Part 1
Clean up unused typedefs and macros to remove Win32'isms and
misc non-linux constructs.  Text edits to referencing
source for less frequently used macros.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Bartlomiej Zolnierkiewicz
555044bf89 Staging: vt6656: add TODO
Cc: Forest Bond <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Bartlomiej Zolnierkiewicz
100a538442 Staging: vt6655: add TODO
Cc: Forest Bond <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
612822f5dd Staging: vt665x: Text janitor in prep for driver merge, part 2
Text only changes to remove textual differences between the vt6655
and vt6656 trees in prep for driver merge.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
77f58b133e Staging: vt665x: Text janitor in prep for driver merge
These changes in vt6656 match changes in vt6655 to minimize text differences
prior to merging the two trees into a single driver source.

Signed-off-by: Jim Lieb <[email protected]>
Cc: Forest Bond <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
7e809a9b10 Staging: vt6655 textual cleanup in prep for driver merge
The vt6655 and vt6656 drivers are from a common origin but
have drifted apart with minor textual differences.  There
are two changes:

  s/DEVICE_PRT/DBG_PRT/g

and

  s/byPktTyp/byPktType/g

This significantly reduces the differences between the two file sets
in preparation to merging the common code.  A few whitespace and text bits were
also adjusted.

Signed-off-by: Jim Lieb <[email protected]>
Cc: Forest Bond <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
d899d40386 Staging: vt665x: 64bit compile fixes Part 2
Fix compile problems with 64bit.  These issues could cause corrupted
address crashes. Cleanup definition use to use more portable kernel
typedefs etc.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:07 -07:00
Jim Lieb
db6cb9036b Staging: vt665x: 64bit compile fixes Part 1
Fix compile problems with 64bit.  These issues could cause corrupted
address crashes.  In the process, replaced some definitions to use more
portable kernel types.

Signed-off-by: Jim Lieb <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Jaswinder Singh Rajput
6f92a8d0b8 Staging: otus: includecheck fix: drivers/staging/otus/usbdrv.h
fix the following 'make includecheck' warning:

  drivers/staging/otus/usbdrv.h: linux/usb.h is included more than once.

Signed-off-by: Jaswinder Singh Rajput <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Bill Pemberton
2386b33180 Staging: serqt_usb2: fix qt_open parameters
The parameter list for qt_open() was from the old non usb-serial
driver.

Signed-off-by: Bill Pemberton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Randy Dunlap
f66abce705 Staging: udlfb: fix printk format warning
Fix printk format warning: use %td for ptrdiff:

drivers/staging/udlfb/udlfb.h:209: warning: format '%d' expects type 'int', but argument 3 has type 'long int'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Alexander Beregalov
e82bf85ec9 Staging: rt2860: remove dependency on WIRELESS_EXT version
As the driver is in mainline now we can remove such dependencies.
WIRELESS_EXT is 22 now.

Signed-off-by: Alexander Beregalov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Mike Galbraith
7d5efd6199 Staging: rt2870sta interface names
The rest of the known universe prefers wlanN for wireless interface names, to
the point that some distro configuration tools, such as opensuse's Yast, don't
even allow the user to enter a name, and simply pre-select "wlan".

Signed-off-by: Mike Galbraith <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Julia Lawall
d0e0507ad6 Staging: dst: correct error-handling code
dst_state_alloc returns an ERR_PTR value in an error case instead of NULL.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@match exists@
expression x, E;
statement S1, S2;
@@

x = dst_state_alloc(...)
... when != x = E
(
*  if (x == NULL || ...) S1 else S2
|
*  if (x == NULL && ...) S1 else S2
)
// </smpl>

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Stoyan Gaydarov
b6ac161364 Staging: ARRAY_SIZE changes
These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/

Signed-off-by: Stoyan Gaydarov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Julia Lawall
2e9ab1e72c Staging: Correct use of ! and &
Correct priority problem in the use of ! and &.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@ expression E; constant C; @@
- !E & C
+ !(E & C)
// </smpl>

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:06 -07:00
Uwe Kleine-König
658ce9d653 Staging: fix typos "man[ae]g?ment" -> "management"
This patch was generated by running

	git grep -E -l 'man[ae]g?ment' drivers/staging | xargs -r perl -p -i -e 's/\bman[ae]g?ment\b/management/g'

Signed-off-by: Uwe Kleine-König <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Shan Wei
a7cd5829d8 Staging: usb-ip: vhci_hdc:Fix the returned error value
Compared with other drivers, the "ret" should be nagative and
returned. But in vhci_hdc, it always return 0;

I dont't use the driver, and I'm not familiar with the code.
Hope the patch is helpful.

Signed-off-by: Shan Wei <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Felipe Balbi
91c0f68ff6 Staging: cpc-usb: add one todo entry
we need to get rid of those driver-specific error codes

Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Felipe Balbi
6c4d3708f6 Staging: cpc-usb: convert comment style in cpcusb.h
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Felipe Balbi
6414842a82 Staging: cpc-usb: convert comment style in cpc_int.h
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Felipe Balbi
4bbd9365c8 Staging: cpc-usb: convert comment style in cpc.h
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Brian G. Merrell
b8868e45c5 Staging: USB-IP code cleanup
This includes fixes for all of the legit checkpatch.pl errors and
warnings.  I have also included several of the suggestions from the
linux-kernel mailing list when the USB-IP code was first added.

Signed-off-by: Brian G. Merrell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Julia Lawall
1dd7def0b5 Staging: meilhaus: convert nested spin_lock_irqsave to spin_lock
If spin_lock_irqsave is called twice in a row with the same second
argument, the interrupt state at the point of the second call overwrites
the value saved by the first call.  Indeed, the second call does not need
to save the interrupt state, so it is changed to a simple spin_lock.

The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression lock1,lock2;
expression flags;
@@

*spin_lock_irqsave(lock1,flags)
... when != flags
*spin_lock_irqsave(lock2,flags)
// </smpl>

Signed-off-by: Julia Lawall <[email protected]>
Cc: David Kiliani <[email protected]>
Cc: Meilhaus Support <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Pavel Machek
c60adf37eb Staging: dream: Synaptics touchscreen: check that smbus is available
Check that SMBUS APIs are available in touchscreen driver.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Arve Hjønnevåg
420818f975 Staging: dream: add support for input on GPIO pins
Support for input devices connected to GPIO pins. This adds support
for HTC Dream's keyboard and its trackball. Generic support already
exists for keyboard on GPIO, but this one is more advanced because it
can detect shadow key presses (and actually works with Dream :-).

(It also contains Kconfig/Makefile changes, including some that were
missing from previous commit. Sorry.)

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Pavel Machek
347a799cef Staging: Dream: separate Kconfig/Makefile into subdirectory
Separate Kconfig/Makefile glue from dream into subdirectory. I plan to
add few more drivers, and changing staging/Makefile each time sounds
like inviting conflicts.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:05 -07:00
Jiri Slaby
4d62691b60 Staging: dream, fix buf overflow
In vfe_send_msg_no_payload there is a wrong struct vfe_message allocation.
It allocates only sizeof(pointer to vfe_message) for a whole structure.
Add a dereference to the sizeof to allocate sizeof(vfe_message).

Signed-off-by: Jiri Slaby <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Pavel Machek
58c6d6d1a6 Staging: dream: synaptics touchscreen for dream: documentation
This adds pointer to hardware documentation, and adds code comment
from Arve.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Pavel Machek
4191934cb6 Staging: HTC Dream: touchscreen: more cleanups
This separates coefficient computation into separate function, so that
main probe does not have 1001 variables, and is of a more reasonable
size.

Signed-off-by: Pavel Machek <[email protected]>
Cc: Arve Hjønnevåg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Pavel Machek
261314a9f2 Staging: HTC Dream: Cleanup Dream touchscreen driver
This is first part of touchscreen cleanups. I did not remove
earlysuspend functionality for now (to help Google merge the changes).

I mainly introduced helpers to reduce code duplication, and split huge
functions into smaller ones.

Signed-off-by: Pavel Machek <[email protected]>
Cc: Arve Hjønnevåg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Arve Hjønnevåg
2e4d2af96a Staging: HTC Dream: touchscreen driver for staging
This adds support for synaptic touchscreen, used in HTC dream
cellphone.

This is original version from Arve, fixed only to compile; I do have
cleaner version, but I broken something inside, and this will preserve
authorship better. I originally tried to push the driver directly to
input/touchscreen, but the driver has some issues with interrupt
handling that are more difficult to fix than I expected at first.

Signed-off-by: Arve Hjønnevåg <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
2009-09-15 12:02:04 -07:00
Pavel Machek
d4d000f636 Staging: htc: Dream: limit Kconfig for only MSM platforms
Limit SMD communication glue to MSM platform. It is closely tied to
MSM architecture.

Signed-off-by: Pavel Machek <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Greg Kroah-Hartman
0949a02544 Staging: hv: update the TODO file
Remove a few items that have already been resolved.
There are only a few checkpatch issues, they need to be resolved
by larger code logic changes that are not "simple" changes.

Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Bill Pemberton
19d7810624 Staging: hv: Remove List.h
List.h is no longer used and can be removed.

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Bill Pemberton
1f5459bcb1 Staging: hv: remove use of internal list routines in RndisFilter
The hv driver has it's own linked list routines.  This removes them
from RndisFilter.c

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00
Bill Pemberton
53af545b27 Staging: hv: remove more usages of internal list routines
The hv driver has it's own linked list routines.  This removes them
from more places in hv.

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-09-15 12:02:04 -07:00