pandora-kernel.git
15 years agoStaging: comedi: set up infrastructure for individual drivers
Greg Kroah-Hartman [Fri, 14 Nov 2008 22:10:15 +0000 (14:10 -0800)]
Staging: comedi: set up infrastructure for individual drivers

This adds two "generic" Kconfig options, one for PCI and one for USB
comedi drivers, and the Makefile infrastructure as well.  This is so
we can start adding individual comedi drivers and add them to the build
properly.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: comedi: add kcomedilib to the tree
David Schleef [Fri, 14 Nov 2008 23:58:23 +0000 (15:58 -0800)]
Staging: comedi: add kcomedilib to the tree

This adds the kcomedilib module

From: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: comedi: fix build error in comedilib.h
Greg Kroah-Hartman [Fri, 14 Nov 2008 22:58:46 +0000 (14:58 -0800)]
Staging: comedi: fix build error in comedilib.h

If anyone included this file, it would break the build.
This patch fixes the issue.

Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: comedi: fix checkpatch.pl errors in comedi_fops.c
Greg Kroah-Hartman [Fri, 14 Nov 2008 01:05:58 +0000 (17:05 -0800)]
Staging: comedi: fix checkpatch.pl errors in comedi_fops.c

There are still some >80 character lines in there, but
this catches the majority of the issues.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: comedi: fix up a lot of checkpatch.pl warnings
Greg Kroah-Hartman [Fri, 14 Nov 2008 00:36:22 +0000 (16:36 -0800)]
Staging: comedi: fix up a lot of checkpatch.pl warnings

Only clean up some of the easier ones in the .h files

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: add comedi core
David Schleef [Wed, 5 Nov 2008 04:29:31 +0000 (20:29 -0800)]
Staging: add comedi core

This adds the Comedi core to the staging tree.
This is a data acquision infrastructure for Linux, providing a common
interface for these types of drivers.

Taken directly from the comedi git tree, with only minor tweaks
by Greg to get it to build properly within the kernel tree.

From: David Schleef <ds@schleef.org>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: cleanup a check while posting rx buffers
Sathya Perla [Fri, 5 Dec 2008 10:22:15 +0000 (15:52 +0530)]
Staging: benet: cleanup a check while posting rx buffers

This patch cleans up the way to check if there is enough space in the rx_q
while posting buffers.

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: fix problems reported by checkpatch
Sathya Perla [Thu, 27 Nov 2008 05:54:07 +0000 (11:24 +0530)]
Staging: benet: fix problems reported by checkpatch

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: patch to use offsetof() instead of AMAP_BYTE_OFFSET()
Sathya Perla [Mon, 24 Nov 2008 05:34:45 +0000 (11:04 +0530)]
Staging: benet: patch to use offsetof() instead of AMAP_BYTE_OFFSET()

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: fix build error.
Greg Kroah-Hartman [Tue, 25 Nov 2008 05:15:22 +0000 (21:15 -0800)]
Staging: benet: fix build error.

udelay() was not being defined properly, this patch fixes it.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Subbu Seetharaman <subbus@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: fix build errors when CONFIG_NETPOLL is off
Sathya Perla [Thu, 13 Nov 2008 05:43:32 +0000 (11:13 +0530)]
Staging: benet: fix build errors when CONFIG_NETPOLL is off

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: patch to remove subdirectories
Sathya Perla [Tue, 11 Nov 2008 05:27:37 +0000 (10:57 +0530)]
Staging: benet: patch to remove subdirectories

Here's a patch tp remove the subdirectories in staging/benet (1st item in
staging/benet/TODO).

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: build is broken unless CONFIG_NETPOLL is enabled
Greg Kroah-Hartman [Fri, 7 Nov 2008 20:50:13 +0000 (12:50 -0800)]
Staging: benet: build is broken unless CONFIG_NETPOLL is enabled

So disable the driver in that build situation and document
that this needs to be fixed.

Cc: Subbu Seetharaman <subbus@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: fix up netdev->priv change
Greg Kroah-Hartman [Mon, 5 Jan 2009 23:05:47 +0000 (15:05 -0800)]
Staging: benet: fix up netdev->priv change

netdev->priv is now gone, so fix up all of the build errors in the benet
driver due to this change.

Cc: Subbu Seetharaman <subbus@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: benet: fix netif api breakage
Greg Kroah-Hartman [Mon, 5 Jan 2009 23:04:44 +0000 (15:04 -0800)]
Staging: benet: fix netif api breakage

The netif_rx_complete() and netif_rx_schedule() functions have changed,
so fix up the build breakage in the benet driver.

Cc: Subbu Seetharaman <subbus@serverengines.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: Add ServerEngines benet 10Gb ethernet driver
Subbu Seetharaman [Sun, 2 Nov 2008 13:09:57 +0000 (08:09 -0500)]
Staging: Add ServerEngines benet 10Gb ethernet driver

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt2860: enable WPA_SUPPLICANT support
Greg Kroah-Hartman [Mon, 17 Nov 2008 23:55:52 +0000 (15:55 -0800)]
Staging: rt2860: enable WPA_SUPPLICANT support

This is needed in order to get NetworkManager to work properly
with this driver.

More details can be found at
https://bugzilla.novell.com/show_bug.cgi?id=437959

Cc: Helmut Schaa <hschaa@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt2860: Fix minor compiler warnings
Greg Kroah-Hartman [Thu, 13 Nov 2008 23:37:21 +0000 (15:37 -0800)]
Staging: rt2860: Fix minor compiler warnings

The build is "clean" now for this driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt2860: use standard bit-reverse function
J.R. Mauro [Fri, 7 Nov 2008 01:30:03 +0000 (20:30 -0500)]
Staging: rt2860: use standard bit-reverse function

Make the rt2860 use standard bit-reversing functions

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt2860: fix up netdev->priv usage
Greg Kroah-Hartman [Mon, 5 Jan 2009 22:19:51 +0000 (14:19 -0800)]
Staging: rt2860: fix up netdev->priv usage

Now that netdev->priv is removed, fix the driver to use netdev->ml_priv
like it always should have been doing.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt2860: disable root hack for reading files
Greg Kroah-Hartman [Mon, 5 Jan 2009 22:18:40 +0000 (14:18 -0800)]
Staging: rt2860: disable root hack for reading files

We are now using credentials, so just blindly setting the fsuid and
fsguid isn't acceptable.  All this means is that the config file needs
to be readable by the driver thread, not a big deal.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: add rt2860 wireless driver
Greg Kroah-Hartman [Tue, 28 Oct 2008 21:48:09 +0000 (14:48 -0700)]
Staging: add rt2860 wireless driver

This is the Ralink RT2860 driver from the company that does horrible
things like reading a config file from /etc.  However, the driver that
is currently under development from the wireless development community
is not working at all yet, so distros and users are using this version
instead (quite common hardware on a lot of netbook machines).

So here is this driver, for now, until the wireless developers get a
"clean" version into the main tree, or until this version is cleaned up
sufficiently to move out of the staging tree.

Ported to the Linux build system and cleaned up a bit already by me.

Cc: Linux wireless <linux-wireless@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: otus: remove dependence on kernel version
Alexander Beregalov [Sun, 7 Dec 2008 03:58:47 +0000 (06:58 +0300)]
Staging: otus: remove dependence on kernel version

Dependence on kernel version is not needed anymore
if we are in mainline now.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: otus: fix urb callback function type
Greg Kroah-Hartman [Thu, 13 Nov 2008 23:35:52 +0000 (15:35 -0800)]
Staging: otus: fix urb callback function type

The #ifdef for version checking is wrong, and we no longer
pass the struct pt_regs to the urb callback functions.  This
patch fixes this error.

Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: otus: fix name clash
J.R. Mauro [Fri, 7 Nov 2008 22:49:07 +0000 (17:49 -0500)]
Staging: otus: fix name clash

Make p80211wext_handler_def in the otus driver static. It's not used outside
this file and causes name clashes if it's visible.

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: otus: fix netdev->priv usage
Greg Kroah-Hartman [Mon, 5 Jan 2009 21:44:36 +0000 (13:44 -0800)]
Staging: otus: fix netdev->priv usage

Now that netdev->priv is gone, fix things up properly in the otus driver
to use ml_priv as it should have always been doing.

Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: add otus Atheros wireless network driver
Luis R. Rodriguez [Tue, 28 Oct 2008 05:44:22 +0000 (22:44 -0700)]
Staging: add otus Atheros wireless network driver

Initial dump of the otus USB wireless network driver.
It builds properly, but a lot of work needs to be done cleaning
it up before it can be merged into the wireless driver tree.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: agnx: fix build warnings
Greg Kroah-Hartman [Thu, 13 Nov 2008 23:34:13 +0000 (15:34 -0800)]
Staging: agnx: fix build warnings

Fix some minor build warnins in the agnx driver

Cc: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: agnx: fix build errors due to rate control API changes
Greg Kroah-Hartman [Mon, 5 Jan 2009 20:37:19 +0000 (12:37 -0800)]
Staging: agnx: fix build errors due to rate control API changes

In commit e6a9854b05c1a6af1308fe2b8c68f35abf28a3ee, the rate control API
was rewritten, so make the needed changes to the agnx driver so that it
will build and work properly.

Cc: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: agnx: fix build errors due to ssid removal
Greg Kroah-Hartman [Mon, 5 Jan 2009 20:37:19 +0000 (12:37 -0800)]
Staging: agnx: fix build errors due to ssid removal

The wireless core has removed the ssid variables, so also remove
them from the agnx driver so that it builds properly.

Cc: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: add agnx wireless driver
Li YanBo [Tue, 28 Oct 2008 03:32:57 +0000 (20:32 -0700)]
Staging: add agnx wireless driver

This driver is for the Airgo AGNX00 wireless chip.

From: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: slicoss: use request_firmware
Lior Dotan [Wed, 5 Nov 2008 14:02:20 +0000 (16:02 +0200)]
Staging: slicoss: use request_firmware

This should make the driver use request_firmware() instead of a static
firmware.
Some obvious things are missing:
1) The unneeded header files are not removed yet. This is to keep the
   patch size small.
2) The .bin files are missing so the driver doesn't have what to load.
3) Testing. None of this was tested. It does compiles OK though :)

Signed-off-by: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: slicoss: use correct type for memory allcations
Lior Dotan [Wed, 5 Nov 2008 09:52:17 +0000 (11:52 +0200)]
Staging: slicoss: use correct type for memory allcations

Fix sizeof to use the right type

Signed-off-by: Lior Dotan <liodot@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: slicoss: use kzalloc
Lior Dotan [Wed, 5 Nov 2008 09:27:17 +0000 (11:27 +0200)]
Staging: slicoss: use kzalloc

This patch uses kzalloc() where really applicable.

Signed-off-by: Lior Dotan <liodot@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: usbip: cleanup kerneldoc
Qinghuang Feng [Wed, 12 Nov 2008 22:42:16 +0000 (14:42 -0800)]
Staging: usbip: cleanup kerneldoc

No argument named @regs in stub_complete(), remove it.

Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: et131x: remove unused variable in et1310_tx.c
Johann Felix Soden [Sat, 15 Nov 2008 19:44:39 +0000 (20:44 +0100)]
Staging: et131x: remove unused variable in et1310_tx.c

The 'pPacket' variable is assigned, but never used. Remove it.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: et131x: fix build failure
J.R. Mauro [Fri, 14 Nov 2008 00:11:22 +0000 (19:11 -0500)]
Staging: et131x: fix build failure

Fix build failure in et131x driver - missing \ in multiline macro

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: et131x: Cleanup et131x_debug.h defines
Stoyan Gaydarov [Thu, 17 Jul 2008 10:29:06 +0000 (10:29 +0000)]
Staging: et131x: Cleanup et131x_debug.h defines

This patch cleans up the et131x_debug.h defines as well as fix the
checkpatch warnings

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: add some more v4l2 ioctls
Greg Kroah-Hartman [Mon, 5 Jan 2009 19:22:07 +0000 (11:22 -0800)]
Staging: go7007: add some more v4l2 ioctls

Now that the v4l2 tree is merged with mainline, enable some of
the compiled out functions.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: small cleanup
Oliver Neukum [Thu, 18 Dec 2008 12:52:39 +0000 (13:52 +0100)]
Staging: go7007: small cleanup

small cleanup of go7007:

- prepare for urb->status conversion
- micro optimization
- use kzalloc
- fix free of memory in use in go7007_usb_disconnect

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: Cohen <rcohen@snurgle.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: fix minor build warnings
Greg Kroah-Hartman [Thu, 13 Nov 2008 23:35:08 +0000 (15:35 -0800)]
Staging: go7007: fix minor build warnings

Comment out some functions that we aren't using yet, in anticipation
of using them when the v4l core merges are changed upstream.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: annotate code pointers
Harvey Harrison [Mon, 3 Nov 2008 05:24:35 +0000 (21:24 -0800)]
Staging: go7007: annotate code pointers

They are treated as __le16 everywhere, annotate as such.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: Convert driver to use video_ioctl2
Mauro Carvalho Chehab [Wed, 12 Nov 2008 00:54:30 +0000 (22:54 -0200)]
Staging: go7007: Convert driver to use video_ioctl2

go7007: Convert driver to use video_ioctl2

go7007 driver were using the old method of having a big switch for handling
ioctls. Use instead the new video_ioctl2 method.

This patch also adds support for the 2.6.19 new ioctls to enumberate video
formats and intervals.

Still lacking the implementation of compression ioctls needed on go7007.

This patch weren't tested, due to the lack of a hardware with me.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: add sensoray 2250/2251 support
Pete Eberlein [Thu, 30 Oct 2008 19:56:41 +0000 (12:56 -0700)]
Staging: go7007: add sensoray 2250/2251 support

This is the driver for the Sensoray 2250/2251 USB devices added to
go7007 driver.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: go7007: saa7134 updates
Pete Eberlein [Thu, 30 Oct 2008 19:56:33 +0000 (12:56 -0700)]
Staging: go7007: saa7134 updates

- Added documentation including README files from the original go7007
  driver package.
- Added Video4Linux2 MPEG controls.
- Added Video4Linux2 audio ioctls, which pass thru to the i2c driver.
- Improved saa7134 interface, to pass thru controls and video settings.
- Fixed a bug in sony tuner, as reported by Bifferos on the Go7007 wiki.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: echo: Lindent drivers/staging/echo
J.R. Mauro [Thu, 30 Oct 2008 23:35:27 +0000 (19:35 -0400)]
Staging: echo: Lindent drivers/staging/echo

Lindent drivers/staging/echo

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: echo: remove typedefs
J.R. Mauro [Thu, 30 Oct 2008 23:26:59 +0000 (19:26 -0400)]
Staging: echo: remove typedefs

Remove typedefs in drivers/staging/echo

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agostaging: struct device - replace bus_id with dev_name(), dev_set_name()
Kay Sievers [Thu, 30 Oct 2008 00:59:32 +0000 (01:59 +0100)]
staging: struct device - replace bus_id with dev_name(), dev_set_name()

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: sxg: update README
J.R. Mauro [Fri, 31 Oct 2008 22:58:30 +0000 (18:58 -0400)]
Staging: sxg: update README

Update readme in drivers/staging/sxg

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: sxg: break the build in a cleaner way when !x86
J.R. Mauro [Tue, 28 Oct 2008 23:00:56 +0000 (19:00 -0400)]
Staging: sxg: break the build in a cleaner way when !x86

Remove ugly 'Stop Comilation;' statement in sxghif, replace with an
error macro.

This should never be hit as we are only building for x86 boxes at the
moment.

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: sxg: remove typedefs
J.R. Mauro [Tue, 28 Oct 2008 22:42:02 +0000 (18:42 -0400)]
Staging: sxg: remove typedefs

Remove typedefs in the sxg driver

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Fine grained locking
Vijay Kumar [Wed, 29 Oct 2008 03:28:40 +0000 (08:58 +0530)]
Staging: poch: Fine grained locking

Lock only the portion of code that does register access.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Fix user space protocol syncing
Vijay Kumar [Wed, 29 Oct 2008 03:28:39 +0000 (08:58 +0530)]
Staging: poch: Fix user space protocol syncing

Always set the user space offset from kernel space, to indicate group
transmitted/received.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Rx control register init
Vijay Kumar [Wed, 29 Oct 2008 03:28:37 +0000 (08:58 +0530)]
Staging: poch: Rx control register init

Added Rx control register definition. Flush Rx FIFO on init, and set
continuous DMA mode.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Fix build warnings
Vijay Kumar [Wed, 29 Oct 2008 03:28:36 +0000 (08:58 +0530)]
Staging: poch: Fix build warnings

Removed out printing of DMA address, that causes warnings during
build.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: minor fixes
Vijay Kumar [Wed, 29 Oct 2008 03:28:35 +0000 (08:58 +0530)]
Staging: poch: minor fixes

Unmap PCI bars on remove().
Validate sysfs values before using them.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Correct pages from bytes.
Vijay Kumar [Wed, 29 Oct 2008 03:28:34 +0000 (08:58 +0530)]
Staging: poch: Correct pages from bytes.

Accurately calculate the no. of pages from the bytes.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Update TODO list
Vijay Kumar [Wed, 29 Oct 2008 03:28:33 +0000 (08:58 +0530)]
Staging: poch: Update TODO list

Update TODO list.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: poch: Block size bug fix
Vijay Kumar [Wed, 29 Oct 2008 03:28:32 +0000 (08:58 +0530)]
Staging: poch: Block size bug fix

Block size is to be expressed in no. of 64 bit transfers. But the code
specifies the block size in bytes. Fix this issue.

Signed-off-by: Vijay Kumar <vijaykumar@bravegnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: cleanup dma on stack issues
Oliver Neukum [Thu, 18 Dec 2008 12:16:40 +0000 (13:16 +0100)]
Staging: at76_usb: cleanup dma on stack issues

- no DMA on stack
- cleanup unclear endianness issue

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: fix up all remaining checkpatch.pl warnings
Greg Kroah-Hartman [Mon, 27 Oct 2008 20:54:32 +0000 (13:54 -0700)]
Staging: at76_usb: fix up all remaining checkpatch.pl warnings

It's now a "clean" driver.

Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: remove compiler warnings
Greg Kroah-Hartman [Mon, 27 Oct 2008 20:54:32 +0000 (13:54 -0700)]
Staging: at76_usb: remove compiler warnings

3 functions are now not used, remove them.

Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: fix build breakage
Greg Kroah-Hartman [Mon, 5 Jan 2009 18:54:53 +0000 (10:54 -0800)]
Staging: at76_usb: fix build breakage

The previous patch broke the at76_usb driver due to some other
wireless core api changes.  This patch fixes the driver to build
properly again.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: update drivers/staging/at76_usb w/ mac80211 port
John W. Linville [Fri, 24 Oct 2008 19:48:59 +0000 (15:48 -0400)]
Staging: at76_usb: update drivers/staging/at76_usb w/ mac80211 port

This updates drivers/staging/at76_usb to correspond with the latest
version previously available in wireless-testing.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: skb_p80211_to_ether() - payload_length is unsigned, check before...
Roel Kluin [Tue, 2 Dec 2008 23:06:39 +0000 (00:06 +0100)]
Staging: wlan-ng: skb_p80211_to_ether() - payload_length is unsigned, check before subtraction

payload_length is unsigned, check before subtraction

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
15 years agoStaging: wlan-ng: fix compiler warnings
Greg Kroah-Hartman [Thu, 13 Nov 2008 23:37:47 +0000 (15:37 -0800)]
Staging: wlan-ng: fix compiler warnings

This fixes some compiler warnings in teh wlan-ng driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: p80211wext.c: use ARRAY_SIZE
Julia Lawall [Sun, 9 Nov 2008 16:56:34 +0000 (17:56 +0100)]
Staging: wlan-ng: p80211wext.c: use ARRAY_SIZE

ARRAY_SIZE is more concise to use when the size of an array is divided by
the size of its type or the size of its first element.

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

// <smpl>
@i@
@@

#include <linux/kernel.h>

@depends on i using "paren.iso"@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)

@depends on i using "paren.iso"@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: remove unused #include <version.h>
Huang Weiyi [Fri, 31 Oct 2008 14:49:56 +0000 (22:49 +0800)]
Staging: wlan-ng: remove unused #include <version.h>

The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
  drivers/staging/wlan-ng/p80211conv.c
  drivers/staging/wlan-ng/p80211req.c
  drivers/staging/wlan-ng/p80211wext.c
  drivers/staging/wlan-ng/prism2mgmt.c

This patch removes the said #include <version.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: p80211conv.c copy code from wlan-ng-devel branch to not drop packets
Richard Kennedy [Mon, 3 Nov 2008 11:24:54 +0000 (11:24 +0000)]
Staging: wlan-ng: p80211conv.c copy code from wlan-ng-devel branch to not drop packets

allow card to correctly receive network packets,
without this change all incoming packets are dropped.
code copied from the latest wlan-ng-devel tree.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: hfa384x_usbin_callback: check for hardware removed
Richard Kennedy [Mon, 3 Nov 2008 11:22:43 +0000 (11:22 +0000)]
Staging: wlan-ng: hfa384x_usbin_callback: check for hardware removed

hfa384x_usbin_callback: check for hardware removed

copied from latest wlan-ng-devel version

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: p80211wext don't set default key id twice
Richard Kennedy [Mon, 3 Nov 2008 11:21:30 +0000 (11:21 +0000)]
Staging: wlan-ng: p80211wext don't set default key id twice

p80211wext don't set default key id twice

another change from wlan-ng-devel

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: p80211wext.c add latest changes & remove extra nulls from wext_handlers
Richard Kennedy [Mon, 3 Nov 2008 11:20:04 +0000 (11:20 +0000)]
Staging: wlan-ng: p80211wext.c add latest changes & remove extra nulls from wext_handlers

add the latest changes from wlan-ng-devel
remove 2 stray nulls from the wext_handler table introduced
by the tidy up patch.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: hfa384x_usb.c use newest version of 384x_drvr_start
Richard Kennedy [Mon, 3 Nov 2008 11:16:09 +0000 (11:16 +0000)]
Staging: wlan-ng: hfa384x_usb.c use newest version of 384x_drvr_start

include the needed fixes from Karl Relton
<karllinuxtest.relton@ntlworld.com>

see thread on linux-wlan-devel mailing list
"Possible cause of those pesky hfa384x_usbctlx_complete_sync errors"

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Karl Relton <karllinuxtest.relton@ntlworld.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: prism2_usb.c always enable the card in probe_usb
Richard Kennedy [Mon, 3 Nov 2008 11:13:48 +0000 (11:13 +0000)]
Staging: wlan-ng: prism2_usb.c always enable the card in probe_usb

always enable card in probe_usb
& update register_wlandev to match latest wlan-ng-dev tree.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: p80211netdev.c fix netdev alloc to prevent oops on device start
Richard Kennedy [Mon, 3 Nov 2008 11:09:34 +0000 (11:09 +0000)]
Staging: wlan-ng: p80211netdev.c fix netdev alloc to prevent oops on device start

a version of this patch is in the wlan-ng_devel tree

initializes netdev correctly to prevent an oops on device start.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Purge all MIBs not used internally.
Solomon Peachy [Wed, 29 Oct 2008 14:43:00 +0000 (10:43 -0400)]
Staging: wlan-ng: Purge all MIBs not used internally.

The next step is to bypass the MIB calling mechanism altogether and just
invoke the hardware directly where needed, but at least now the list has
been paired down considerably.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Consolidate wlan-ng into a single module.
Solomon Peachy [Wed, 29 Oct 2008 14:42:59 +0000 (10:42 -0400)]
Staging: wlan-ng: Consolidate wlan-ng into a single module.

There's no point in having a separate 'p80211' module, as nobody else is
ever going to use it.  Push everyting into a single module, and get rid
of all exports.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Delete a pile of unused mibs. And fix WEXT SET_TXPOWER.
Solomon Peachy [Wed, 29 Oct 2008 14:42:58 +0000 (10:42 -0400)]
Staging: wlan-ng: Delete a pile of unused mibs. And fix WEXT SET_TXPOWER.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Delete a large pile of now-unused code.
Solomon Peachy [Wed, 29 Oct 2008 14:42:57 +0000 (10:42 -0400)]
Staging: wlan-ng: Delete a large pile of now-unused code.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: use WIRELESS_EXT, not CONFIG_WIRELESS_EXT
Solomon Peachy [Wed, 29 Oct 2008 14:42:56 +0000 (10:42 -0400)]
Staging: wlan-ng: use WIRELESS_EXT, not CONFIG_WIRELESS_EXT

Kconfig doesn't work with variables starting with CONFIG_

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Wireless Extension support is mandatory.
Solomon Peachy [Wed, 29 Oct 2008 14:42:55 +0000 (10:42 -0400)]
Staging: wlan-ng: Wireless Extension support is mandatory.

So take away the option to disable it.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate all backwards-compatible kernel code.
Solomon Peachy [Wed, 29 Oct 2008 14:42:54 +0000 (10:42 -0400)]
Staging: wlan-ng: Eliminate all backwards-compatible kernel code.

It's not needed at all anymore now that we are in the kernel tree.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Use standard kernel integer (u32/s32/etc) types.
Solomon Peachy [Wed, 29 Oct 2008 14:42:53 +0000 (10:42 -0400)]
Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types.

wlan-ng needed to interact with userspace, and support very old kernels,
so it used to define its own types for integers to ensure consistency.

It's all rather irrelevant now.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate usage of procfs.
Solomon Peachy [Mon, 27 Oct 2008 15:14:06 +0000 (11:14 -0400)]
Staging: wlan-ng: Eliminate usage of procfs.

These files are not needed to work properly, and don't belong in procfs

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate local 'version.h'
Solomon Peachy [Mon, 27 Oct 2008 15:14:05 +0000 (11:14 -0400)]
Staging: wlan-ng: Eliminate local 'version.h'

The kernel provides us with the proper version of this file.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate one more rx mtu test.
Solomon Peachy [Mon, 27 Oct 2008 15:14:04 +0000 (11:14 -0400)]
Staging: wlan-ng: Eliminate one more rx mtu test.

It also isn't needed.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Get rid of the MTU tests in the rx conversion path.
Solomon Peachy [Mon, 27 Oct 2008 15:14:03 +0000 (11:14 -0400)]
Staging: wlan-ng: Get rid of the MTU tests in the rx conversion path.

They are not needed.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Remove AP-only code from MLME functions.
Solomon Peachy [Mon, 27 Oct 2008 15:14:02 +0000 (11:14 -0400)]
Staging: wlan-ng: Remove AP-only code from MLME functions.

It is not needed in this driver.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate a boatload of tertiaryAP-only code.
Solomon Peachy [Mon, 27 Oct 2008 15:14:01 +0000 (11:14 -0400)]
Staging: wlan-ng: Eliminate a boatload of tertiaryAP-only code.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate all backwards-compatibility for <2.6.13 kernels.
Solomon Peachy [Mon, 27 Oct 2008 15:14:00 +0000 (11:14 -0400)]
Staging: wlan-ng: Eliminate all backwards-compatibility for <2.6.13 kernels.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Eliminate more <2.6 kernel support.
Solomon Peachy [Mon, 27 Oct 2008 15:13:59 +0000 (11:13 -0400)]
Staging: wlan-ng: Eliminate more <2.6 kernel support.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Make wlan-ng use WEXT mode by default.
Solomon Peachy [Mon, 27 Oct 2008 15:13:58 +0000 (11:13 -0400)]
Staging: wlan-ng: Make wlan-ng use WEXT mode by default.

As this is the kernel default mode.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Delete PCI/PLX/PCMCIA-specific code.
Solomon Peachy [Mon, 27 Oct 2008 15:13:57 +0000 (11:13 -0400)]
Staging: wlan-ng: Delete PCI/PLX/PCMCIA-specific code.

Also delete a large pile of code that existed to support <2.6 kernels.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Update Help text to mention prism3 devices.
Solomon Peachy [Mon, 27 Oct 2008 15:13:56 +0000 (11:13 -0400)]
Staging: wlan-ng: Update Help text to mention prism3 devices.

The driver also supports prism3 devices

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: Remove PCI/PLX/PCMCIA files.
Solomon Peachy [Mon, 27 Oct 2008 15:13:55 +0000 (11:13 -0400)]
Staging: wlan-ng: Remove PCI/PLX/PCMCIA files.

This portion of the driver is not needed at all, so remove it.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: w35und: fix config build warnings
Greg Kroah-Hartman [Mon, 5 Jan 2009 18:46:00 +0000 (10:46 -0800)]
Staging: w35und: fix config build warnings

the wireless config function has changed with commit
e8975581f63870be42ff4662b293d1b0c8c21350 so fix up the wbusb driver to
work properly with that change.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: w35und: fix Kconfig
Pavel Machek [Mon, 24 Nov 2008 09:18:29 +0000 (10:18 +0100)]
Staging: w35und: fix Kconfig

4KSTACK dependency was needed when driver carried its own softmac
layer. That layer is gone, and functions have reasonably small stack
footprint -> dependency can be removed.

Add better description of hardware this driver is targetted at (now
with fixed whitespace)

Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: w35und: remove rxisr.c as dead code
Pekka Enberg [Thu, 30 Oct 2008 17:04:56 +0000 (19:04 +0200)]
Staging: w35und: remove rxisr.c as dead code

The vRxTimerStart() function is never called nor does the timer do anything
useful so remove the code.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: w35und: remove dead code from wbhal.c
Pekka Enberg [Thu, 30 Oct 2008 17:04:55 +0000 (19:04 +0200)]
Staging: w35und: remove dead code from wbhal.c

Remove tons of unused code from wbhal.c.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: w35und: make functions local to wb35tx.c static
Pekka Enberg [Thu, 30 Oct 2008 17:04:54 +0000 (19:04 +0200)]
Staging: w35und: make functions local to wb35tx.c static

While there are no functional changes, the diff is quite large because we need
to shuffle code around to avoid forward declarations.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>