pandora-kernel.git
12 years agostaging: comedi: addi-data: Get rid of redundant ps_BoardInfo
Ian Abbott [Mon, 16 May 2011 14:28:16 +0000 (15:28 +0100)]
staging: comedi: addi-data: Get rid of redundant ps_BoardInfo

The ps_BoardInfo pointer in the device private data is redundant as we
can just use the this_board macro to access the same data, as is done
elsewhere in the code.  Get rid of the pointer and change the code to
use the this_board macro instead.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: comedi: addi-data: Don't overwrite read-only data
Ian Abbott [Mon, 16 May 2011 14:28:15 +0000 (15:28 +0100)]
staging: comedi: addi-data: Don't overwrite read-only data

The drivers for ADDI-DATA cards can override some static parameters for
the board type using information read from EEPROM.  Unfortunately, they
currently write the parameters from the EEPROM back to the shared,
read-only board data!  The problem has been masked during compilation by
type-casting away the const-ness of the data.

This patch changes the code to use an area in the private data for the
board instance to hold the parameters read from EEPROM (after
initializing the parameters from the static board data).  It also
changes the type-casts to the read-only data to preserve the const
qualifier.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: comedi: adv_pci_dio: Add a counter subdevice to PCI-1751
Ian Abbott [Mon, 16 May 2011 11:05:54 +0000 (12:05 +0100)]
staging: comedi: adv_pci_dio: Add a counter subdevice to PCI-1751

The Advantech PCI-1751 has a 8254 counter chip on board.  Add it to the
device as a counter subdevice.  Apparently the counter can generate
interrupts although the driver does not currently use this capability.

Original patch by Ivan Russkih (Иван Русских) <vanekrus at gmail dot
com>.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agodrivers/staging/line6/driver.c: Drop unneeded put functions.
Julia Lawall [Mon, 16 May 2011 12:24:57 +0000 (14:24 +0200)]
drivers/staging/line6/driver.c: Drop unneeded put functions.

This seems to be the result of patches ab366c1a and 1027f476 crossing each
other.  Patch ab366c1a adds calls to usb_put_intf and usb_put_dev at the
end of the function line6_probe, in the error handling code, while patch
1027f476 moves the calls to the corresponding get function from the
beginning to the end of line6_probe, making the calls to put in the error
handling code unnecessary.

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoath6kl: iw dev wlan0 link implementation
Naveen Singh [Mon, 16 May 2011 12:10:15 +0000 (15:10 +0300)]
ath6kl: iw dev wlan0 link implementation

implementing the cfg ops that gets called when iw dev wlan0
link is issued by user. The ops that needs to be implemented
is get_station.

kvalo: check the mac address, remove signal_pending(), use ARRAY_SIZE()
and fix style issues

Signed-off-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Kalle Valo <kalle.valo@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agodrivers/staging/ath6kl/os/linux/cfg80211.c: Add missing call to cfg80211_put_bss
Julia Lawall [Mon, 16 May 2011 09:20:29 +0000 (11:20 +0200)]
drivers/staging/ath6kl/os/linux/cfg80211.c: Add missing call to cfg80211_put_bss

A call to cfg80211_get_bss hould be accompanied by a call to
cfg80211_put_bss in error-handling code.

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

// <smpl>
@r exists@
local idexpression struct cfg80211_bss * x;
expression ra,rr;
position p1,p2;
@@

x = cfg80211_get_bss@p1(...)
...  when != x = rr
     when != cfg80211_put_bss(x,...)
     when != if (...) { ... cfg80211_put_bss(x,...) ...}
if(...) { ... when != x = ra
     when forall
     when != cfg80211_put_bss(x,...)
 \(return <+...x...+>; \| return@p2...; \) }

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

cocci.print_main("cfg80211_get_bss",p1)
cocci.print_secs("return",p2)

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: use correct pointer types in bcm_pktq_flush
Clemens Noss [Sun, 15 May 2011 20:50:46 +0000 (22:50 +0200)]
staging: brcm80211: use correct pointer types in bcm_pktq_flush

to clarify the intention:

On Sun, May 15, 2011 at 09:54:26PM +0200, Arend van Spriel wrote:
> On 05/15/2011 08:10 PM, Hauke Mehrtens wrote:
[...]
>> Why don't you use the correct pointer type here instead of casting then
>> around and the parameter names are meaningless too.
>>
>> static bool cb_del_ampdu_pkt(struct sk_buff *mpdu, struct
>> cb_del_ampdu_pars *ampdu_pars)
[...]
> Actually this is a generic callback mechanism in which an additional
> parameter can be passed, which can be of *any* type hence a void pointer
> seems justified here and a meaningless name is used. I do agree that the
> txi parameter will always be a struct sk_buff and should be indicated as
> such.

Reported-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Clemens Noss <cnoss@gmx.de>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: fix cast to pointer from integer
Clemens Noss [Sun, 15 May 2011 20:45:30 +0000 (22:45 +0200)]
staging: brcm80211: fix cast to pointer from integer

bcm_pktq_flush and related functions only ever get 0 or a pointer for
arg, so make it a pointer.

This might fix a crash on 64bit.

Signed-off-by: Clemens Noss <cnoss@gmx.de>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: echo: Trivial indentation changes
Rahul Tank [Sat, 14 May 2011 06:01:42 +0000 (11:31 +0530)]
staging: echo: Trivial indentation changes

--bcaec50161b317392804a33628dd
Content-Type: text/plain; charset=ISO-8859-1

Hi Greg,

 Please find patch attached .

Thanks,
 Rahul

Hi Greg,<br><br> Please find patch attached .<br><br>Thanks,<br> Rahul<br>

From ba1dbafaef1a87c1338c5bb0e6bba3be06071c90 Mon Sep 17 00:00:00 2001
From: Rahul Tank <rahul.tank@gmail.com>
Date: Sat, 14 May 2011 11:28:25 +0530
Subject: [PATCH] Trivial indentation cleanup
Signed-off-by: Rahul Tank <rahul.tank@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: modify project gcc flags
matt mooney [Sat, 14 May 2011 10:55:19 +0000 (03:55 -0700)]
staging: usbip: userspace: modify project gcc flags

Add -Werror, remove -Wstrict-prototypes, and change -W to -Wextra.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: move common cflags to configure.ac
matt mooney [Sat, 14 May 2011 10:55:18 +0000 (03:55 -0700)]
staging: usbip: userspace: move common cflags to configure.ac

There are a standard set of cflags that are used in each makefile so
let's set those in EXTRA_CFLAGS and enforce them for the entire project.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: remove gcc warnings
matt mooney [Sat, 14 May 2011 10:55:17 +0000 (03:55 -0700)]
staging: usbip: userspace: remove gcc warnings

The warnings were for unused parameters, so __attribute__((unused))
has been added until it can be determined they are truly unneeded.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: remove revision $Id$
matt mooney [Sat, 14 May 2011 10:55:16 +0000 (03:55 -0700)]
staging: usbip: userspace: remove revision $Id$

This is git not CVS!

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: set libusbip version in configure.ac
matt mooney [Sat, 14 May 2011 10:55:15 +0000 (03:55 -0700)]
staging: usbip: userspace: set libusbip version in configure.ac

Move libusbip version setting to configure.ac so that version
numbers can be found in a single location.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: cleanup makefiles
matt mooney [Sat, 14 May 2011 10:55:14 +0000 (03:55 -0700)]
staging: usbip: userspace: cleanup makefiles

Remove unneeded comments; change deprecated flag INCLUDE to
AM_CPPFLAGS and put -D option in *_CPPFLAGS; and use "simply
expanded variables" in assignments.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: configure.ac: major overhaul
matt mooney [Sat, 14 May 2011 10:55:13 +0000 (03:55 -0700)]
staging: usbip: userspace: configure.ac: major overhaul

All parameters have been quoted; and autoscan was rerun so new
headers, types, and functions were added. The deprecated macros
AM_CONFIG_HEADER and AM_PROG_LIBTOOL were changed to
AC_CONFIG_HEADERS and LT_INIT, respectively. The AS_HELP_STRING
macro is used to avoid arbitrary spacing for proper help menu
alignment, and AS_CASE to avoid quoting issues. And finally, the
macros were realigned to allow mere mortals the ability to read them.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: update module name references
matt mooney [Sat, 14 May 2011 10:55:12 +0000 (03:55 -0700)]
staging: usbip: userspace: update module name references

Change all references to the kernel modules to correspond with the new
names.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: whitespace cleanup
matt mooney [Sat, 14 May 2011 10:55:11 +0000 (03:55 -0700)]
staging: usbip: userspace: whitespace cleanup

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: remove unused files
matt mooney [Sat, 14 May 2011 10:55:10 +0000 (03:55 -0700)]
staging: usbip: userspace: remove unused files

Remove ChangeLog and NEWS.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: rename source directories
matt mooney [Sat, 14 May 2011 10:55:09 +0000 (03:55 -0700)]
staging: usbip: userspace: rename source directories

Rename cmd/ to src/ and lib/ to libsrc/.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: userspace: move manpages to separate directory
matt mooney [Sat, 14 May 2011 10:55:08 +0000 (03:55 -0700)]
staging: usbip: userspace: move manpages to separate directory

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: usbip: add userspace code
Takahiro Hirofuchi [Sat, 14 May 2011 10:55:07 +0000 (03:55 -0700)]
staging: usbip: add userspace code

Add userspace code from svn trunk revision 175. Located at
https://usbip.svn.sourceforge.net/svnroot/usbip/linux/trunk/src.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make netvsc_drv_exit() the module exit function
K. Y. Srinivasan [Fri, 13 May 2011 02:35:17 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Make netvsc_drv_exit() the module exit function

Make netvsc_drv_exit() the module exit function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make netvsc_drv_init the module init function
K. Y. Srinivasan [Fri, 13 May 2011 02:35:16 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Make netvsc_drv_init the module init function

Now make netvsc_drv_init the module init function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init()
K. Y. Srinivasan [Fri, 13 May 2011 02:35:15 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init()

In preparation to eliminating netvsc_init(), move the dmi_check code
to netvsc_drv_init().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Change the signature of netvsc_drv_init()
K. Y. Srinivasan [Fri, 13 May 2011 02:35:14 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init()

Change the signature of netvsc_drv_init().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Move the dmi table declaration to earlier in the file
K. Y. Srinivasan [Fri, 13 May 2011 02:35:13 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Move the dmi table declaration to earlier in the file

Move the dmi table declaration to earlier in the file.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of the used type struct netvsc_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:35:12 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of the used type struct netvsc_driver

Now, get rid of the unused type  struct netvsc_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of the unused function drv_to_netvscdrv()
K. Y. Srinivasan [Fri, 13 May 2011 02:35:11 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of the unused function drv_to_netvscdrv()

Get rid of the unused function drv_to_netvscdrv().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of the empty function rndis_filter_init()
K. Y. Srinivasan [Fri, 13 May 2011 02:35:10 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of the empty function rndis_filter_init()

Get rid of the empty function rndis_filter_init().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of some unnecessary/dead code from rndis_filter.c
K. Y. Srinivasan [Fri, 13 May 2011 02:35:09 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of some unnecessary/dead code from rndis_filter.c

After the cleanup that has been done, some code in rndis_filter.c
is no longer needed; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make netvsc_drv an instance of struct hv_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:35:08 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Make netvsc_drv an instance of struct hv_driver

In preparation to getting rid of struct  netvsc_driver, make
the variable netvsc_drv an instance of struct hv_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of the unnecessary state from struct netvsc_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:35:07 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of the unnecessary state from struct netvsc_driver

Now get rid of unused state (ring_buf_size) from struct netvsc_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of the unnecessary assignment of ring_buf_size
K. Y. Srinivasan [Fri, 13 May 2011 02:35:06 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of the unnecessary assignment of ring_buf_size

Since we pass ring size information differently, this assignment is
not needed.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get the ring size information from struct netvsc_device_info
K. Y. Srinivasan [Fri, 13 May 2011 02:35:05 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get the ring size information from struct netvsc_device_info

Get the ring size information from struct netvsc_device_info.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Add ring_size element to struct netvsc_device_info
K. Y. Srinivasan [Fri, 13 May 2011 02:35:04 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Add ring_size element to struct netvsc_device_info

Add ring_size element to struct netvsc_device_info.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:35:03 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver

Now, get rid of unused state (req_ext_size) from struct netvsc_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of an unnecessary assignment in rndis_filter.c
K. Y. Srinivasan [Fri, 13 May 2011 02:35:02 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Get rid of an unnecessary assignment in rndis_filter.c

Now that we compute the size of struct rndis_filter_packet where
it is needed, get rid of the unnecessary assignment.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Directly get the size of rndis_filter_packet
K. Y. Srinivasan [Fri, 13 May 2011 02:35:01 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Directly get the size of rndis_filter_packet

Directly get the size of rndis_filter_packet.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Move the definition of struct rndis_filter_packet to hyperv_...
K. Y. Srinivasan [Fri, 13 May 2011 02:35:00 +0000 (19:35 -0700)]
Staging: hv: netvsc_drv: Move the definition of struct rndis_filter_packet to hyperv_net.h

Move the definition of struct rndis_filter_packet to hyperv_net.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of unnecessary state in struct netvsc_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:34:59 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Get rid of unnecessary state in struct netvsc_driver

Since the function pointers in struct netvsc_driver are no longer used
(as these are invoked directly), get rid of this unused state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive()
K. Y. Srinivasan [Fri, 13 May 2011 02:34:58 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive()

Directly invoke the function rndis_filter_receive().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Directly invoke the function netvsc_recv_callback()
K. Y. Srinivasan [Fri, 13 May 2011 02:34:57 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Directly invoke the function netvsc_recv_callback()

Directly invoke the function netvsc_recv_callback().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Invoke netvsc_linkstatus_callback directly
K. Y. Srinivasan [Fri, 13 May 2011 02:34:56 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Invoke netvsc_linkstatus_callback directly

Invoke netvsc_linkstatus_callback directly.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Invoke netvsc_send() directly
K. Y. Srinivasan [Fri, 13 May 2011 02:34:55 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Invoke netvsc_send() directly

Invoke netvsc_send() directly.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Invoke rndis_filter_send() directly
K. Y. Srinivasan [Fri, 13 May 2011 02:34:54 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Invoke rndis_filter_send() directly

In preparation to getting rid of struct netvsc_driver,
make the function  rndis_filter_send()  non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make the function rndis_filter_send() non-static
K. Y. Srinivasan [Fri, 13 May 2011 02:34:53 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Make the function rndis_filter_send() non-static

In preparation to getting rid of struct netvsc_driver,
make the function  rndis_filter_send()  non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make the function rndis_filter_receive() non-static
K. Y. Srinivasan [Fri, 13 May 2011 02:34:52 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Make the function rndis_filter_receive() non-static

In preparation to getting rid of struct netvsc_driver,
make the function rndis_filter_receive()  non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make the function netvsc_recv_callback() non-static
K. Y. Srinivasan [Fri, 13 May 2011 02:34:51 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Make the function netvsc_recv_callback() non-static

In preparation to getting rid of struct netvsc_driver,
make the function netvsc_recv_callback()  non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make the function netvsc_linkstatus_callback() non-static
K. Y. Srinivasan [Fri, 13 May 2011 02:34:50 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Make the function netvsc_linkstatus_callback() non-static

In preparation to getting rid of struct netvsc_driver,
make the function netvsc_linkstatus_callback()  non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Make the function netvsc_send non-static
K. Y. Srinivasan [Fri, 13 May 2011 02:34:49 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Make the function netvsc_send non-static

In preparation to getting rid of struct netvsc_driver,
make the function netvsc_send non-static.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver
K. Y. Srinivasan [Fri, 13 May 2011 02:34:48 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver

In preparation to getting rid of struct netvsc_driver, get rid of the
unused state (void *ctx)  in struct netvsc_driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc_drv: Clean up the netvsc_drv_exit() function
K. Y. Srinivasan [Fri, 13 May 2011 02:34:47 +0000 (19:34 -0700)]
Staging: hv: netvsc_drv: Clean up the netvsc_drv_exit() function

To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the netvsc_drv_exit() routine
keeping this in mind.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: mousevsc_drv: Cleanup mousevsc_drv_exit() function
K. Y. Srinivasan [Fri, 13 May 2011 02:34:46 +0000 (19:34 -0700)]
Staging: hv: mousevsc_drv: Cleanup mousevsc_drv_exit() function

To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the mousevsc_drv_exit() routine
keeping this in mind.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: storvsc_drv: Cleanup storvsc_drv_exit() function
K. Y. Srinivasan [Fri, 13 May 2011 02:34:45 +0000 (19:34 -0700)]
Staging: hv: storvsc_drv: Cleanup storvsc_drv_exit() function

To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the storvsc_drv_exit() routine
keeping this in mind.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: blkvsc_drv: Cleanup the blkvsc_drv_exit() function
K. Y. Srinivasan [Fri, 13 May 2011 02:34:44 +0000 (19:34 -0700)]
Staging: hv: blkvsc_drv: Cleanup the blkvsc_drv_exit() function

To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the blkvsc_drv_exit() routine
keeping this in mind.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: mouse_drv: Fix a sparse warning
K. Y. Srinivasan [Fri, 13 May 2011 02:34:43 +0000 (19:34 -0700)]
Staging: hv: mouse_drv: Fix a sparse warning

Most of the sparse warnings in the hv code are from the base kernel.
This patch fixes the only sparse related issue in the Hyper-V coode.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Cleanup hyperv_net.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:42 +0000 (19:34 -0700)]
Staging: hv: netvsc: Cleanup hyperv_net.h

Cleanup hyperv_net.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Move the contents of rndis_filter.h to hyperv_net.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:41 +0000 (19:34 -0700)]
Staging: hv: netvsc: Move the contents of rndis_filter.h to hyperv_net.h

Move the contents of rndis_filter.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Move the contents of rndis.h to hyperv_net.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:40 +0000 (19:34 -0700)]
Staging: hv: netvsc: Move the contents of rndis.h to hyperv_net.h

Move the contents of rndis.h to hyperv_net.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Move the contents of netvsc.h to hyperv_net.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:39 +0000 (19:34 -0700)]
Staging: hv: netvsc: Move the contents of netvsc.h to hyperv_net.h

Move the contents of netvsc.h to hyperv_net.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Include the contents of netvsc_api.h into hyperv_net.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:38 +0000 (19:34 -0700)]
Staging: hv: netvsc: Include the contents of netvsc_api.h into hyperv_net.h

Include the contents of netvsc_api.h into hyperv_net.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: netvsc: Create a common header file for network driver
K. Y. Srinivasan [Fri, 13 May 2011 02:34:37 +0000 (19:34 -0700)]
Staging: hv: netvsc: Create a common header file for network driver

Create a common header file for network driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: Move the contents of storvsc_api.h to hyperv_storage.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:36 +0000 (19:34 -0700)]
Staging: hv: Move the contents of storvsc_api.h to hyperv_storage.h

 Move the contents of storvsc_api.h  to hyperv_storage.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: stor: Move the contents of vstorage.h to hyperv_storage.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:35 +0000 (19:34 -0700)]
Staging: hv: stor: Move the contents of vstorage.h to hyperv_storage.h

Move the contents of vstorage.h to hyperv_storage.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: stor: Create a common header file for storage drivers
K. Y. Srinivasan [Fri, 13 May 2011 02:34:34 +0000 (19:34 -0700)]
Staging: hv: stor: Create a common header file for storage drivers

Create a common header file for storage drivers.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Cleanup hyperv_vmbus.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:33 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Cleanup hyperv_vmbus.h

Cleanup hyperv_vmbus.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Move the contents of vmbus_private.h to vmbus_hyperv.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:32 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Move the contents of vmbus_private.h to vmbus_hyperv.h

Move the contents of vmbus_private.h to vmbus_hyperv.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Move the contents of ring_buffer.h to hyperv_vmbus.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:31 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Move the contents of ring_buffer.h to hyperv_vmbus.h

Move the contents of ring_buffer.h to hyperv_vmbus.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Move the content of hv.h to hyperv_vmbus.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:30 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Move the content of hv.h to hyperv_vmbus.h

Move the content of hv.h to hyperv_vmbus.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Include the contents of hv_api.h in hyperv_vmbus.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:29 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Include the contents of hv_api.h in hyperv_vmbus.h

Include the contents of hv_api.h in hyperv_vmbus.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: vmbus_drv: Create a common header file to build the vmbus driver
K. Y. Srinivasan [Fri, 13 May 2011 02:34:28 +0000 (19:34 -0700)]
Staging: hv: vmbus_drv: Create a common header file to build the vmbus driver

Create a common header file to build the vmbus driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agoStaging: hv: Include asm/hyperv.h in hyperv.h
K. Y. Srinivasan [Fri, 13 May 2011 02:34:27 +0000 (19:34 -0700)]
Staging: hv: Include asm/hyperv.h in hyperv.h

As the entries in hv_api.h are already in asm/hyperv.h, let's use that
file instead and delete these.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: fix checkpatch issue in wlc_channel.c
Arend van Spriel [Fri, 13 May 2011 09:59:52 +0000 (11:59 +0200)]
staging: brcm80211: fix checkpatch issue in wlc_channel.c

Patch "[ba84f65] make function definitions and prototype consistent"
introduced a checkpatch warning which is fixed.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Corrected sdpcm_shared_t structure definition
Sukesh Srikakula [Fri, 13 May 2011 09:59:51 +0000 (11:59 +0200)]
staging: brcm80211: Corrected sdpcm_shared_t structure definition

There is a mismatch in structure definition of 'sdpcm_shared_t' structure
in driver & FW code. With this patch, it is corrected

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Better debug support added to brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:50 +0000 (11:59 +0200)]
staging: brcm80211: Better debug support added to brcmfmac driver

With the current implementation there is no way to selectively enable
required debug messages, as all the messages are currently under WL_DBG.
With this fix, we are introducing several log levels which will enable
us to print only the required debug messages.
WL_ERR --> Prints error messages
WL_CONN --> Prints all debug messages pertaining to connection
management
WL_SCAN --> Prints all debug messages pertaining to scanning
WL_TRACE --> Prints all trace(Enter/Exit) sequence of cfg80211 calls
WL_INFO --> Prints all informational messages.
By default, only WL_ERR messages are enabled.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: cfg80211 up/down routines in brcmfmac driver are fixed
Sukesh Srikakula [Fri, 13 May 2011 09:59:49 +0000 (11:59 +0200)]
staging: brcm80211: cfg80211 up/down routines in brcmfmac driver are fixed

'__wl_cfg80211_up' & '__wl_cfg80211_down' routines are updated to correctly
set the 'wl->status' variable.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Removed unused variable from brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:48 +0000 (11:59 +0200)]
staging: brcm80211: Removed unused variable from brcmfmac driver

Removed unused variable from wl_profile structure

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fixed scan notification functionality in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:47 +0000 (11:59 +0200)]
staging: brcm80211: Fixed scan notification functionality in brcmfmac driver

Earlier brcmfmac driver used to report success even for an aborted scan. This
functionality is now fixed with this patch.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Added support to change scan times from brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:46 +0000 (11:59 +0200)]
staging: brcm80211: Added support to change scan times from brcmfmac driver

wl_dongle_scantime function moved out of conditional compilation to allow
the fullmac driver to change FW scan times.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Added support to change roaming parameters from brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:45 +0000 (11:59 +0200)]
staging: brcm80211: Added support to change roaming parameters from brcmfmac driver

'wl_dongle_roam' function moved out of conditional compilation to allow
the fullmac driver to change FW roaming parameters

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fixed ibss join/leave functionality in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:44 +0000 (11:59 +0200)]
staging: brcm80211: Fixed ibss join/leave functionality in brcmfmac driver

IBSS functionality is broken in fullmac driver, which is fixed with this patch

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fixed bss (re)connect/disconnect issues in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:43 +0000 (11:59 +0200)]
staging: brcm80211: Fixed bss (re)connect/disconnect issues in brcmfmac driver

Broken functionality of bss (re)connect/disconnect in full mac driver
is fixed with this patch.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Optimized wl_inform_single_bss function in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:42 +0000 (11:59 +0200)]
staging: brcm80211: Optimized wl_inform_single_bss function in brcmfmac driver

Earlier verion of wl_inform_single_bss function is using
'cfg80211_inform_bss_frame' API for sending bss info to cfg80211.
With this patch same will be done through a more optimal
'cfg80211_inform_bss' API.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fixed wl_assoc_params structure miss match in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:41 +0000 (11:59 +0200)]
staging: brcm80211: Fixed wl_assoc_params structure miss match in brcmfmac driver

There is a mismatch in the structure definition of wl_assoc_params structure
in driver & FW code. With this patch, it is corrected

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: brcmfmac driver's interface name changed to "wlan"
Sukesh Srikakula [Fri, 13 May 2011 09:59:40 +0000 (11:59 +0200)]
staging: brcm80211: brcmfmac driver's interface name changed to "wlan"

Currently interface name for the brcmfmac driver is "eth".
This is changed to "wlan".

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fix for suspend issue in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:39 +0000 (11:59 +0200)]
staging: brcm80211: Fix for suspend issue in brcmfmac driver

Currently, there are 2 callbacks registered with OS for getting
notifications when system goes to suspend/resume. Racing between
these 2 callbacks results in random suspend failures. With this fix,
we avoid registering dhd callback for suspend/resume notification
when cfg80211 is used. Relevent functionality in dhd suspend/resume
callback function is moved to cfg80211 suspend/resume functions.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Cc: Grant Grundler <grundler@chromium.org>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: Fix for WPA GTK install issue in brcmfmac driver
Sukesh Srikakula [Fri, 13 May 2011 09:59:38 +0000 (11:59 +0200)]
staging: brcm80211: Fix for WPA GTK install issue in brcmfmac driver

Last 16 bytes of the key sent by cfg80211 needs to be swapped before
installing it to FW for TKIP encryption. This is not done for group
key in current code, which is corrected with this fix.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Grant Grundler <grundler@chromium.org>
Tested-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed more unused counter related structures
Roland Vossen [Fri, 13 May 2011 09:59:37 +0000 (11:59 +0200)]
staging: brcm80211: removed more unused counter related structures

Code cleanup.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed counter related struct wl_cnt
Roland Vossen [Fri, 13 May 2011 09:59:36 +0000 (11:59 +0200)]
staging: brcm80211: removed counter related struct wl_cnt

Code cleanup. Struct wl_cnt contains all sorts of counters, but either these
were written and never read, or set to zero at initialization but never
updated. Therefore the struct and any code accessing the struct has been
removed.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed support for proprietary ioctl WLC_GET_PKTCNTS
Roland Vossen [Fri, 13 May 2011 09:59:35 +0000 (11:59 +0200)]
staging: brcm80211: removed support for proprietary ioctl WLC_GET_PKTCNTS

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed stats WEXT support from fullmac
Roland Vossen [Fri, 13 May 2011 09:59:34 +0000 (11:59 +0200)]
staging: brcm80211: removed stats WEXT support from fullmac

Wireless Extension support is obsolete and made use of counters that are
going to be removed in the next patches.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed counter related macros that expanded to NOP
Roland Vossen [Fri, 13 May 2011 09:59:33 +0000 (11:59 +0200)]
staging: brcm80211: removed counter related macros that expanded to NOP

Code cleanup.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: removed unused struct net_device_stats related code
Roland Vossen [Fri, 13 May 2011 09:59:32 +0000 (11:59 +0200)]
staging: brcm80211: removed unused struct net_device_stats related code

Code cleanup. Variables were set but never read.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: fix makefiles for building drivers in kernel
Arend van Spriel [Fri, 13 May 2011 09:59:30 +0000 (11:59 +0200)]
staging: brcm80211: fix makefiles for building drivers in kernel

The makefiles used obj-m which forcibly builds the drivers as
modules ignoring the Kconfig setting. This has been fixed in this
patch.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: cleanup functions in nvram.c
Arend van Spriel [Fri, 13 May 2011 09:59:29 +0000 (11:59 +0200)]
staging: brcm80211: cleanup functions in nvram.c

Several function in nvram.c take a pointer value which is not
actually used. These are removed and the header file contained
some other prototypes that were not implemented. As this source
file was the only one using the header file siutils.h it has been
removed.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: make function definitions and prototype consistent
Arend van Spriel [Fri, 13 May 2011 09:59:28 +0000 (11:59 +0200)]
staging: brcm80211: make function definitions and prototype consistent

Couple of functions that are only used within wlc_channel.c have been
prototyped with static keyword. For the function definition itself this
has been added when missing.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: remove unused functions and prototypes
Arend van Spriel [Fri, 13 May 2011 09:59:27 +0000 (11:59 +0200)]
staging: brcm80211: remove unused functions and prototypes

Several functions in wlc_bmac.c are not used in the driver and
prototypes in wlc_pub.h that have no implementation. These have
been removed.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: remove unnecessary functions from wlc_main.c
Arend van Spriel [Fri, 13 May 2011 09:59:26 +0000 (11:59 +0200)]
staging: brcm80211: remove unnecessary functions from wlc_main.c

Couple of functions were not needed and have been removed.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
12 years agostaging: brcm80211: got rid of #ifdef __mips__ by new dma_spin_for_len()
Roland Vossen [Fri, 13 May 2011 09:59:25 +0000 (11:59 +0200)]
staging: brcm80211: got rid of #ifdef __mips__ by new dma_spin_for_len()

Code cleanup.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>