firefly-linux-kernel-4.4.55.git
15 years agoStaging: hv: remove STRUCT_PACKED and STRUCT_ALIGNED defines
Greg Kroah-Hartman [Wed, 15 Jul 2009 18:07:45 +0000 (11:07 -0700)]
Staging: hv: remove STRUCT_PACKED and STRUCT_ALIGNED defines

Use the correct __attribute__((packed)) one if it's really needed.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove PAGE_SIZE and PAGE_SHIFT and __builtin functions
Greg Kroah-Hartman [Wed, 15 Jul 2009 18:06:01 +0000 (11:06 -0700)]
Staging: hv: remove PAGE_SIZE and PAGE_SHIFT and __builtin functions

The kernel provides all of this, and actually gets it correct, so don't
try to redefine these types of things.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove MIN and MAX usages
Greg Kroah-Hartman [Wed, 15 Jul 2009 18:05:14 +0000 (11:05 -0700)]
Staging: hv: remove MIN and MAX usages

The kernel has the "correct" min() and max() functions, so use those.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove #defines from osd.c
Greg Kroah-Hartman [Wed, 15 Jul 2009 18:04:20 +0000 (11:04 -0700)]
Staging: hv: remove #defines from osd.c

Remove the unneeded #defines from osd.c

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove BOOL and BOOLEAN typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:13:46 +0000 (15:13 -0700)]
Staging: hv: remove BOOL and BOOLEAN typedefs

The BOOL and BOOLEAN typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove DWORD and BYTE typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:14:52 +0000 (15:14 -0700)]
Staging: hv: remove DWORD and BYTE typedefs

No one was even using them...

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove SIZE_T typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:14:20 +0000 (15:14 -0700)]
Staging: hv: remove SIZE_T typedef

The SIZE_T typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove ULONG and LONG typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:13:46 +0000 (15:13 -0700)]
Staging: hv: remove ULONG and LONG typedefs

The ULONG and LONG typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove ULONG_PTR typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:12:46 +0000 (15:12 -0700)]
Staging: hv: remove ULONG_PTR typedef

The ULONG_PTR typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove ULONGLONG and LONGLONG typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:11:45 +0000 (15:11 -0700)]
Staging: hv: remove ULONGLONG and LONGLONG typedefs

The ULONGLONG and LONGLONG typedefs are now removed from the Hyper-V
driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove USHORT typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:11:03 +0000 (15:11 -0700)]
Staging: hv: remove USHORT typedef

The USHORT typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove UINT64 and INT64 and UCHAR typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:10:26 +0000 (15:10 -0700)]
Staging: hv: remove UINT64 and INT64 and UCHAR typedefs

The UINT64 and INT64 and UCHAR typedefs are now removed from the Hyper-V
driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove UINT32 and INT32 typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:09:36 +0000 (15:09 -0700)]
Staging: hv: remove UINT32 and INT32 typedefs

The UINT32 and INT32 typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove UINT16 and INT16 typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:09:10 +0000 (15:09 -0700)]
Staging: hv: remove UINT16 and INT16 typedefs

The UINT16 and INT16 typedefs are now removed from the Hyper-V driver
code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove UINT8 and INT8 typedefs
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:08:20 +0000 (15:08 -0700)]
Staging: hv: remove UINT8 and INT8 typedefs

The UINT8 and INT8 typedefs are now removed from the Hyper-V driver
code.

Had to include <linux/kernel.h> in a few places to get the
build to work properly as well.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove VOID typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:07:21 +0000 (15:07 -0700)]
Staging: hv: remove VOID typedef

The VOID typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove PVOID typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:06:28 +0000 (15:06 -0700)]
Staging: hv: remove PVOID typedef

The PVOID typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: remove INTERNAL typedef
Greg Kroah-Hartman [Tue, 14 Jul 2009 22:05:36 +0000 (15:05 -0700)]
Staging: hv: remove INTERNAL typedef

The INTERNAL typedef is now removed from the Hyper-V driver code.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: netvsc: fix up driver_data usage
Greg Kroah-Hartman [Fri, 24 Jul 2009 18:00:39 +0000 (11:00 -0700)]
Staging: hv: netvsc: fix up driver_data usage

driver_data is gone now from struct device, so use the proper functions
to access it instead.

Thanks to Bill Pemberton for pointing out this build error.

Cc: Bill Pemberton <wfp5p@viridian.itc.Virginia.EDU>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual network driver to the build
Greg Kroah-Hartman [Tue, 14 Jul 2009 18:01:18 +0000 (11:01 -0700)]
Staging: hv: add the Hyper-V virtual network driver to the build

Add the Hyper-V virtual network driver to the kernel build system.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: make the Hyper-V virtual network driver build
Greg Kroah-Hartman [Tue, 14 Jul 2009 17:59:56 +0000 (10:59 -0700)]
Staging: hv: make the Hyper-V virtual network driver build

The #define KERNEL_2_6_27 needs to be set, and I adjusted the include
directories a bit to get things to build properly.

The driver was changed to use net_device_ops, as that is needed to build
and operate properly now.

The hv_netvsc code should now build with no errors.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: blkvsc: fix up driver_data usage
Greg Kroah-Hartman [Fri, 24 Jul 2009 18:00:10 +0000 (11:00 -0700)]
Staging: hv: blkvsc: fix up driver_data usage

driver_data is gone now from struct device, so use the proper functions
to access it instead.

Thanks to Bill Pemberton for pointing out this build error.

Cc: Bill Pemberton <wfp5p@viridian.itc.Virginia.EDU>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual block driver to the build
Greg Kroah-Hartman [Tue, 14 Jul 2009 17:25:53 +0000 (10:25 -0700)]
Staging: hv: add the Hyper-V virtual block driver to the build

Add the Hyper-V virtual block driver to the kernel build system.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: make the Hyper-V virtual block driver build
Greg Kroah-Hartman [Tue, 14 Jul 2009 17:24:38 +0000 (10:24 -0700)]
Staging: hv: make the Hyper-V virtual block driver build

The #define KERNEL_2_6_27 needs to be set, and I adjusted the include
directories a bit to get things to build properly.

I also fixed up the direct access of bus_id, as that field is now gone.
Lots of block api changes were needed, and I don't think I got it
all correct.  It would be great of someone who knows the block api better
could review it.

The hv_blkvsc code should now build, with no errors.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: storvsc: fix up driver_data usage
Greg Kroah-Hartman [Fri, 24 Jul 2009 17:58:22 +0000 (10:58 -0700)]
Staging: hv: storvsc: fix up driver_data usage

driver_data is gone now from struct device, so use the proper functions
to access it instead.

Thanks to Bill Pemberton for pointing out this build error.

Cc: Bill Pemberton <wfp5p@viridian.itc.Virginia.EDU>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual scsi driver to the build
Greg Kroah-Hartman [Tue, 14 Jul 2009 17:19:52 +0000 (10:19 -0700)]
Staging: hv: add the Hyper-V virtual scsi driver to the build

Add the Hyper-V virtual scsi driver to the kernel build system.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: make the Hyper-V virtual storage driver build
Greg Kroah-Hartman [Tue, 14 Jul 2009 17:18:50 +0000 (10:18 -0700)]
Staging: hv: make the Hyper-V virtual storage driver build

The #define KERNEL_2_6_27 needs to be set, and I adjusted the include
directories a bit to get things to build properly.

I also fixed up the direct access of bus_id, as that field is now gone.
Some minor scsi api changes were needed as well.

The hv_storvsc code should now build properly, with no errors.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual bus to the build
Greg Kroah-Hartman [Mon, 13 Jul 2009 23:04:02 +0000 (16:04 -0700)]
Staging: hv: add the Hyper-V virtual bus to the build

Add the Hyper-V virtual bus to the kernel build system.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: use the correct #ifdef for x86-64
Greg Kroah-Hartman [Fri, 17 Jul 2009 05:31:15 +0000 (22:31 -0700)]
Staging: hv: use the correct #ifdef for x86-64

x86-64 needs a different config check.  Thanks to Hank for the debugging
to determine the fix for this.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: make the Hyper-V virtual bus code build
Greg Kroah-Hartman [Tue, 14 Jul 2009 00:09:34 +0000 (17:09 -0700)]
Staging: hv: make the Hyper-V virtual bus code build

The #define KERNEL_2_6_27 needs to be set, and I adjusted the include
directories a bit to get things to build properly.

I also fixed up the direct access of bus_id, as that field is now gone.

The hv_vmbus code should now build properly, with no errors.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add a TODO file
Greg Kroah-Hartman [Wed, 15 Jul 2009 17:21:36 +0000 (10:21 -0700)]
Staging: hv: add a TODO file

First cut at what needs to be done to this codebase.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual storage driver
Hank Janssen [Mon, 13 Jul 2009 23:01:31 +0000 (16:01 -0700)]
Staging: hv: add the Hyper-V virtual storage driver

This is the virtual storage driver when running Linux on top of Hyper-V.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual network driver
Hank Janssen [Mon, 13 Jul 2009 22:34:54 +0000 (15:34 -0700)]
Staging: hv: add the Hyper-V virtual network driver

This is the virtual network driver when running Linux on top of Hyper-V.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual block driver
Hank Janssen [Mon, 13 Jul 2009 22:33:02 +0000 (15:33 -0700)]
Staging: hv: add the Hyper-V virtual block driver

This is the virtual block driver when running Linux on top of Hyper-V.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V virtual bus
Hank Janssen [Mon, 13 Jul 2009 23:02:34 +0000 (16:02 -0700)]
Staging: hv: add the Hyper-V virtual bus

This is the virtual bus that all of the Linux Hyper-V drivers use.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V driver header files
Hank Janssen [Mon, 13 Jul 2009 22:19:28 +0000 (15:19 -0700)]
Staging: hv: add the Hyper-V driver header files

These are the header files for the different Linux Hyper-V drivers to
use.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: hv: add the Hyper-V api header files
Hank Janssen [Mon, 13 Jul 2009 22:15:47 +0000 (15:15 -0700)]
Staging: hv: add the Hyper-V api header files

These are the header files for the API to talk to the Hyper-V
core.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: HTC Dream: Makefile glue
Pavel Machek [Fri, 17 Jul 2009 12:55:53 +0000 (14:55 +0200)]
Staging: HTC Dream: Makefile glue

This provides Makefile/Kconfig glue for HTC Dream staging parts.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <ibm@android.com>
Cc: San Mehat <san@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: HTC Dream: add camera support
Brian Swetland [Fri, 17 Jul 2009 12:45:17 +0000 (14:45 +0200)]
Staging: HTC Dream: add camera support

This patch adds driver for HTC Dream camera. I guess driver is
slightly higher quality than usual for staging/ , but it is fairly big
and I don't feel like doing all the cleanups myself. Also some parts
can probably be removed, as they did not end up in shipping hardware..

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <ibm@android.com>
Cc: San Mehat <san@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: HTC Dream: add qdsp support
Iliyan Malchev [Fri, 17 Jul 2009 11:10:30 +0000 (13:10 +0200)]
Staging: HTC Dream: add qdsp support

QDSP code is neccessarry for communication with some hardware
components on HTC Dream, including camera hardware. It also drives DSP
coproccessor.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <ibm@android.com>
Cc: San Mehat <san@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: HTC Dream: add rpcrouter driver
Brian Swetland [Fri, 17 Jul 2009 11:09:09 +0000 (13:09 +0200)]
Staging: HTC Dream: add rpcrouter driver

rpcrouter code is neccessarry for communication with QDSP and thus
many hardware components on HTC Dream, including camera hardware.

Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <ibm@android.com>
Cc: San Mehat <san@android.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
15 years agoStaging: HTC Dream: add smd code
Brian Swetland [Fri, 17 Jul 2009 11:08:15 +0000 (13:08 +0200)]
Staging: HTC Dream: add smd code

Infrastructure to support the Qualcomm "shared memory driver"
interface, used to communicate with the baseband processor on MSM7k
SoCs.  The smd core provides low level facilities to interact with the
shared memory comms region, and a "virtual serial channel" interface
that higher level transports (AT command channel, rmnet virtual
ethernet, qmi network management protocol, and oncrpc, for example)
are routed over.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Cc: Brian Swetland <swetland@google.com>
Cc: Iliyan Malchev <ibm@android.com>
Cc: San Mehat <san@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6656: disable wpa related function due to memory failure of this part...
miaofng [Wed, 15 Jul 2009 14:33:35 +0000 (10:33 -0400)]
Staging: vt6656: disable wpa related function due to memory failure of this part of codes

Signed-off-by: miaofng <miaofng@126.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: move rtl8192su specific code out from ieee80211.h
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:41 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: move rtl8192su specific code out from ieee80211.h

Move rtl8192su specific code out from ieee80211.h to ieee80211_r8192s.h.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: ieee80211.h cleanups
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:34 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: ieee80211.h cleanups

* remove unused / duplicated definitions
* remove unused / used only once typedefs
* fix comments, remove useless ones
* convert defines to enums where appropriate
* use __func__ instead of __FUNCTION__
* make some minor coding style fixes
* misc cleanups

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: remove unused ieee80211_wx_get_encode_ext()
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:28 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: remove unused ieee80211_wx_get_encode_ext()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: remove unused IEEE80211_PRINT_STR()
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:21 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: remove unused IEEE80211_PRINT_STR()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove NOT_YET ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:15 +0000 (20:14 +0200)]
Staging: rtl8192su: remove NOT_YET ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: remove superfluous container_of definition
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:08 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: remove superfluous container_of definition

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su/ieee80211: remove OPENSUSE_SLED ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:14:02 +0000 (20:14 +0200)]
Staging: rtl8192su/ieee80211: remove OPENSUSE_SLED ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove JOHN_DUMP[_TXDESC] ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:13:55 +0000 (20:13 +0200)]
Staging: rtl8192su: remove JOHN_DUMP[_TXDESC] ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: make private ieee80211 stack really private
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:13:49 +0000 (20:13 +0200)]
Staging: rtl8192su: make private ieee80211 stack really private

* rename ieee80211_{init,exit}() to ieee80211_debug_{init,exit}()
* make private ieee80211 stack really private
* cleanup Makefile
* remove superfluous ieee80211_* defines
* remove superfluous EXPORT_SYMBOLs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove more unused files
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:13:36 +0000 (20:13 +0200)]
Staging: rtl8192su: remove more unused files

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: convert MMIE_TYPE_* defines to enums
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:02:17 +0000 (20:02 +0200)]
Staging: rtl8187se/ieee80211: convert MMIE_TYPE_* defines to enums

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: ieee80211.h reorderings
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:02:10 +0000 (20:02 +0200)]
Staging: rtl8187se/ieee80211: ieee80211.h reorderings

Reorder the code in ieee80211.h for easier comparisions with
rtl8192su's version of the file.

While at it:
* use IEEE80211_4ADDR_LEN for IEEE80211_LEN definition
* remove unused country_code_type_t typedef
* make some minor coding style fixes

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: switch to use <linux/ieee80211.h>
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:02:04 +0000 (20:02 +0200)]
Staging: rtl8187se/ieee80211: switch to use <linux/ieee80211.h>

While at it:
* remove some commented out code
* remove some unused definitions

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se: rename struct ieee80211_hdr_QOS to struct ieee80211_hdr_4addrqos
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:57 +0000 (20:01 +0200)]
Staging: rtl8187se: rename struct ieee80211_hdr_QOS to struct ieee80211_hdr_4addrqos

Rename struct ieee80211_hdr_QOS to struct ieee80211_hdr_4addrqos
and QOS_ctl field to qos_ctl (to match the naming used by rtl8192su).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se: rename struct ieee80211_hdr_3addr_qos to struct ieee80211_hdr_3ad...
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:51 +0000 (20:01 +0200)]
Staging: rtl8187se: rename struct ieee80211_hdr_3addr_qos to struct ieee80211_hdr_3addrqos

Rename struct ieee80211_hdr_3addr_QOS to struct ieee80211_hdr_3addrqos
and QOS_ctl field to qos_ctl (to match the naming used by rtl8192su).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se: rename struct ieee80211_hdr to struct ieee80211_hdr_4addr
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:44 +0000 (20:01 +0200)]
Staging: rtl8187se: rename struct ieee80211_hdr to struct ieee80211_hdr_4addr

ieee80211_hdr name is too generic so use ieee80211_hdr_4addr one instead
(which matches the naming used by rtl8192su driver).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se: remove ENABLE_IPS ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:38 +0000 (20:01 +0200)]
Staging: rtl8187se: remove ENABLE_IPS ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: remove NOT_YET ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:31 +0000 (20:01 +0200)]
Staging: rtl8187se/ieee80211: remove NOT_YET ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: remove FEDORACORE_9 ifdef
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:25 +0000 (20:01 +0200)]
Staging: rtl8187se/ieee80211: remove FEDORACORE_9 ifdef

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8187se/ieee80211: remove OPENSUSE_SLED ifdefs
Bartlomiej Zolnierkiewicz [Mon, 13 Jul 2009 18:01:19 +0000 (20:01 +0200)]
Staging: rtl8187se/ieee80211: remove OPENSUSE_SLED ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: b3dfg: Drop NULL test on list_entry result
Julia Lawall [Sun, 12 Jul 2009 07:43:21 +0000 (09:43 +0200)]
Staging: b3dfg: Drop NULL test on list_entry result

list_entry, which is an alias for container_of, cannot return NULL, as
there is no way to add a NULL value to a doubly linked list.

A simplified version of the semantic match that findds this problem is as
follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r@
expression x,E;
statement S1,S2;
position p,p1;
@@

*x = list_entry@p(...)
... when != x = E
*if@p1 (x == NULL) S1 else S2
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6655: remove unused Makefile.{arm,x86} files
Bartlomiej Zolnierkiewicz [Fri, 10 Jul 2009 19:47:17 +0000 (21:47 +0200)]
Staging: vt6655: remove unused Makefile.{arm,x86} files

Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6655: remove PRIVATE_OBJ ifdefs
Bartlomiej Zolnierkiewicz [Fri, 10 Jul 2009 19:48:16 +0000 (21:48 +0200)]
Staging: vt6655: remove PRIVATE_OBJ ifdefs

Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt*: don't confuse user of rt3070 driver with rt2870 strings
Marcin Slusarz [Wed, 8 Jul 2009 20:07:26 +0000 (22:07 +0200)]
Staging: rt*: don't confuse user of rt3070 driver with rt2870 strings

Original author didn't bother to change strings for rt3070 driver. Fix it.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt*: fix wait_queue_head_t declaration on stack
Marcin Slusarz [Wed, 8 Jul 2009 20:07:20 +0000 (22:07 +0200)]
Staging: rt*: fix wait_queue_head_t declaration on stack

othwerwise lockdep complains:
"INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator."

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rt3070: add support for Linksys WUSB54GC-EU v3
Marcin Slusarz [Wed, 8 Jul 2009 20:07:07 +0000 (22:07 +0200)]
Staging: rt3070: add support for Linksys WUSB54GC-EU v3

According to FCC (*1) and *2 there's really RT2070L inside, but according
to *2 RT3070 and RT2070 are compatible.

*1 https://fjallfoss.fcc.gov/oetcf/eas/reports/ViewExhibitReport.cfm?mode=Exhibits&RequestTimeout=500&calledFromFrame=N&application_id=327783&fcc_id=%27Q87-WUSB54GCV3%27
(look for "Internal Photos")
*2 http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?f=5&t=5245

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove dead code
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:08:32 +0000 (16:08 +0200)]
Staging: rtl8192su: remove dead code

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove unused files
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:08:24 +0000 (16:08 +0200)]
Staging: rtl8192su: remove unused files

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:08:16 +0000 (16:08 +0200)]
Staging: rtl8192su: remove RTL8192SU ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SE ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:08:08 +0000 (16:08 +0200)]
Staging: rtl8192su: remove RTL8192SE ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_DISABLE_IQK ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:08:02 +0000 (16:08 +0200)]
Staging: rtl8192su: remove RTL8192SU_DISABLE_IQK ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192S_PREPARE_FOR_NORMAL_RELEASE ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:54 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192S_PREPARE_FOR_NORMAL_RELEASE ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8190_Download_Firmware_From_Header ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:48 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8190_Download_Firmware_From_Header ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_USB_PHY_TEST ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:40 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192SU_USB_PHY_TEST ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_ASIC_VERIFICATION ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:34 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192SU_ASIC_VERIFICATION ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_FPGA_2MAC_VERIFICATION ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:27 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192SU_FPGA_2MAC_VERIFICATION ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_FPGA_UNSPECIFIED_NETWORK ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:20 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192SU_FPGA_UNSPECIFIED_NETWORK ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_USE_PARAM_TXPWR ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:14 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192SU_USE_PARAM_TXPWR ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove DISABLE_BB_RF ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:07 +0000 (16:07 +0200)]
Staging: rtl8192su: remove DISABLE_BB_RF ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192S_DISABLE_FW_DM ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:07:00 +0000 (16:07 +0200)]
Staging: rtl8192su: remove RTL8192S_DISABLE_FW_DM ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove RTL8192SU_DISABLE_CCK_RATE ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:53 +0000 (16:06 +0200)]
Staging: rtl8192su: remove RTL8192SU_DISABLE_CCK_RATE ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove USB_TX_DRIVER_AGGREGATION_ENABLE ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:47 +0000 (16:06 +0200)]
Staging: rtl8192su: remove USB_TX_DRIVER_AGGREGATION_ENABLE ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove USB_RX_AGGREGATION_SUPPORT ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:40 +0000 (16:06 +0200)]
Staging: rtl8192su: remove USB_RX_AGGREGATION_SUPPORT ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove EEPROM_OLD_FORMAT_SUPPORT ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:33 +0000 (16:06 +0200)]
Staging: rtl8192su: remove EEPROM_OLD_FORMAT_SUPPORT ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove USE_ONE_PIPE ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:27 +0000 (16:06 +0200)]
Staging: rtl8192su: remove USE_ONE_PIPE ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove THOMAS_TURBO ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:20 +0000 (16:06 +0200)]
Staging: rtl8192su: remove THOMAS_TURBO ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove CONFIG_RTL8192_PM ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:11 +0000 (16:06 +0200)]
Staging: rtl8192su: remove CONFIG_RTL8192_PM ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: rtl8192su: remove ENABLE_DOT11D ifdefs
Bartlomiej Zolnierkiewicz [Fri, 3 Jul 2009 14:06:05 +0000 (16:06 +0200)]
Staging: rtl8192su: remove ENABLE_DOT11D ifdefs

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6655: Remove Makefile refs to EXPORT_SYMTAB
Robert P. J. Day [Sun, 5 Jul 2009 09:19:29 +0000 (05:19 -0400)]
Staging: vt6655: Remove Makefile refs to EXPORT_SYMTAB

Given that EXPORT_SYMTAB was removed long ago, remove the Makefile
references to it.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: wlan-ng: remove dependency on WIRELESS_EXT version
Alexander Beregalov [Fri, 3 Jul 2009 12:25:53 +0000 (16:25 +0400)]
Staging: wlan-ng: remove dependency on WIRELESS_EXT version

As the driver is in mainline now we can remove such dependency.
WIRELESS_EXT is 22 now and it is always defined.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: replace mac2str() with %pM
Alexander Beregalov [Fri, 3 Jul 2009 12:25:51 +0000 (16:25 +0400)]
Staging: at76_usb: replace mac2str() with %pM

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: at76_usb: fix !CONFIG_WIRELESS_EXT build
Alexander Beregalov [Fri, 3 Jul 2009 12:25:50 +0000 (16:25 +0400)]
Staging: at76_usb: fix !CONFIG_WIRELESS_EXT build

Fix this build error when CONFIG_WIRELESS_EXT is not set
at76_usb.c:5322: error: 'struct net_device' has no member named 'wireless_data'
at76_usb.c:5325: error: 'struct net_device' has no member named 'wireless_handlers'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt665x: depend on WIRELESS_EXT
Alexander Beregalov [Sat, 4 Jul 2009 19:09:32 +0000 (23:09 +0400)]
Staging: vt665x: depend on WIRELESS_EXT

Make vt665x depended on WIRELESS_EXT and remove remain ifdef's

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6656: remove dependency on WIRELESS_EXT version
Alexander Beregalov [Fri, 3 Jul 2009 10:07:14 +0000 (14:07 +0400)]
Staging: vt6656: remove dependency on WIRELESS_EXT version

As the driver is in mainline now we can remove such dependency.
WIRELESS_EXT is 22 now and it is always defined.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: vt6656: remove dependency on kernel version
Alexander Beregalov [Fri, 3 Jul 2009 05:52:59 +0000 (09:52 +0400)]
Staging: vt6656: remove dependency on kernel version

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: quatech_usb2: Improvements to set_termios method
Richard Ash [Thu, 20 Aug 2009 10:25:12 +0000 (11:25 +0100)]
Staging: quatech_usb2: Improvements to set_termios method

This patch implements several improvements to the set_termios method
suggested by Alan Cox:
* Correct check for whether any changes are being requested.
* Inform callers that mark/space parity isn't supported by always
clearing the bit.
* Pass back the actual used baud rate in case it doesn't match what was
requested.

Remaining known issues are that IXANY flow control is not supported, but
we don't tell the caller that, and input and output XON/XOFF flow
control are either both on or both off, but we don't indicate that back
to the caller either.

Signed-off-by: Richard Ash <richard@audacityteam.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoStaging: quatech_usb2: Improve debug output and fix write_room
Richard Ash [Thu, 20 Aug 2009 10:24:59 +0000 (11:24 +0100)]
Staging: quatech_usb2: Improve debug output and fix write_room

This patch contains changes made in the course of successfully reading
data from the device. These consist of a number of corrections and
additions to debug messages, and a fix for incorrect calculation of the
number of characters in the device FIFO which affected the operation of
the write_room method.
The use of semaphores to control access to port settings is replaced by
the preferred use of mutexes as this is the only code that uses them.

Aug 18 17:09:32 [kernel] BUG: unable to handle kernel paging request at f82f122c
Aug 18 17:09:32 [kernel] IP: [<c11e1a63>] tty_port_close_start+0x8c/0x15e
Aug 18 17:09:32 [kernel] *pde = 00000000
Aug 18 17:09:32 [kernel] Modules linked in: snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss nls_iso8859_1 cifs xt_limit xt_NFLOG nfnetlink_log nfnetlink xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables i915 fb drm i2c_algo_bit cfbcopyarea i2c_core video backlight output cfbimgblt cfbfillrect quatech_usb2(C) usbserial uhci_hcd ehci_hcd snd_intel8x0 snd_ac97_codec ac97_bus usbcore tg3 snd_pcm snd_timer libphy snd intel_agp psmouse evdev ohci1394 soundcore ide_cd_mod cdrom ieee1394 snd_page_alloc agpgart floppy
Aug 18 17:09:32 [kernel] Pid: 4192, comm: cat Tainted: G         C (2.6.31-rc6-gkh #9) HP Compaq dc5100 MT(PW097ET)
Aug 18 17:09:32 [kernel] EIP: 0060:[<c11e1a63>] EFLAGS: 00010046 CPU: 0
Aug 18 17:09:32 [kernel] EIP is at tty_port_close_start+0x8c/0x15e
Aug 18 17:09:32 [kernel] EAX: 00000000 EBX: 00000246 ECX: ebacc380 EDX: 00000000
Aug 18 17:09:32 [kernel] ESI: f72f1204 EDI: e6073000 EBP: e60b3ce4 ESP: e60b3ccc
Aug 18 17:09:32 [kernel]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
Aug 18 17:09:32 [kernel]  bcc17886 e60b3d2c bcc17886 f72f1200 f72f1204 e6073000 e60b3d10 f8b01a67
Aug 18 17:09:32 [kernel] <0> 00000000 e60b3d10 c11d9343 e60730a0 ebacc380 bcc17886 e6073000 00000000
Aug 18 17:09:32 [kernel] <0> ebacc380 e60b3d90 c11da71c 00000000 f7802480 bcc17886 ebacc380 00000000
Aug 18 17:09:32 [kernel]  [<f8b01a67>] ? serial_close+0x3c/0x9a [usbserial]
Aug 18 17:09:32 [kernel]  [<c11d9343>] ? tty_fasync+0x63/0xe3
Aug 18 17:09:32 [kernel]  [<c11da71c>] ? tty_release_dev+0x159/0x47d
Aug 18 17:09:32 [kernel]  [<c11804c5>] ? prio_tree_remove+0x6c/0xc5
Aug 18 17:09:32 [kernel]  [<c1081c5f>] ? put_object+0x46/0x5e
Aug 18 17:09:32 [kernel]  [<c11daa59>] ? tty_release+0x19/0x35
Aug 18 17:09:32 [kernel]  [<c1086836>] ? __fput+0xed/0x1e4
Aug 18 17:09:32 [kernel]  [<c1086951>] ? fput+0x24/0x39
Aug 18 17:09:32 [kernel]  [<c108375e>] ? filp_close+0x4c/0x7b
Aug 18 17:09:32 [kernel]  [<c1028076>] ? put_files_struct+0xc3/0xd2
Aug 18 17:09:32 [kernel]  [<c10280b1>] ? exit_files+0x2c/0x40
Aug 18 17:09:32 [kernel]  [<c1028551>] ? do_exit+0xd0/0x5f5
Aug 18 17:09:32 [kernel]  [<c1031751>] ? recalc_sigpending+0x1b/0x4b
Aug 18 17:09:32 [kernel]  [<c1031b8b>] ? dequeue_signal+0x96/0x154
Aug 18 17:09:32 [kernel]  [<c1028ab1>] ? do_group_exit+0x3b/0x77
Aug 18 17:09:32 [kernel]  [<c1032ec3>] ? get_signal_to_deliver+0x140/0x31b
Aug 18 17:09:32 [kernel]  [<c11d90af>] ? tty_put_char+0x43/0x4b
Aug 18 17:09:32 [kernel]  [<c1002633>] ? do_notify_resume+0xae/0x7fb
Aug 18 17:09:32 [kernel]  [<c11dabcd>] ? tty_read+0x8f/0xb5
Aug 18 17:09:32 [kernel]  [<c11dd0be>] ? n_tty_read+0x0/0x5d2
Aug 18 17:09:32 [kernel]  [<c1085560>] ? vfs_read+0xb4/0x178
Aug 18 17:09:32 [kernel]  [<c11dab3e>] ? tty_read+0x0/0xb5
Aug 18 17:09:32 [kernel]  [<c10856e4>] ? sys_read+0x52/0x8b
Aug 18 17:09:32 [kernel]  [<c1002f6a>] ? work_notifysig+0x13/0x19
Aug 18 17:09:32 [kernel] ---[ end trace 16f434ec7e2925bc ]---
Aug 18 17:09:32 [kernel] Fixing recursive fault but reboot is needed!

My guess is that my driver is doing something "wrong" in terms of it's
interface to the higher level layers and so is causing the oops. Are
there any mechanisms to turn on more checking / debugging in the layers
above the usb-serial layer to try and catch the cause of the problem?
I've already got USB_DEBUG enabled, what others might be relevant
(presumably USB_SERIAL_DEBUG isn't)?

Signed-off-by: Richard Ash <richard@audacityteam.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>