linux-2.6-block.git
13 years agoath6kl: use CONFIG_ATH6KL_ENABLE_COEXISTENCE
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:19 +0000 (17:56 -0700)]
ath6kl: use CONFIG_ATH6KL_ENABLE_COEXISTENCE

When CONFIG_ATH6KL_ENABLE_COEXISTENCE gets enabled we define
another flag called ENABLE_COEXISTENCE, just use
CONFIG_ATH6KL_ENABLE_COEXISTENCE since that is already defined
by the generated autoconf header file from the kernel.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove AR600x_CUSTOM_XXX define
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:18 +0000 (17:56 -0700)]
ath6kl: remove AR600x_CUSTOM_XXX define

There already is a CONFIG_AR600x_CUSTOM_XXX if this is
desired to be used.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: use CONFIG_AR600x_SD32_XXX
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:17 +0000 (17:56 -0700)]
ath6kl: use CONFIG_AR600x_SD32_XXX

When CONFIG_AR600x_SD32_XXX gets enabled we define
another flag called AR600x_SD32_XXX, just use
CONFIG_AR600x_SD32_XXX since that is already defined
by the generated autoconf header file from the kernel.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: use CONFIG_AR600x_WB31_XXX
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:16 +0000 (17:56 -0700)]
ath6kl: use CONFIG_AR600x_WB31_XXX

When CONFIG_AR600x_WB31_XXX gets enabled we define
another flag called AR600x_WB31_XXX, just use
CONFIG_AR600x_WB31_XXX since that is already defined
by the generated autoconf header file from the kernel.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: use CONFIG_AR600x_SD31_XXX
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:15 +0000 (17:56 -0700)]
ath6kl: use CONFIG_AR600x_SD31_XXX

When CONFIG_AR600x_SD31_XXX gets enabled we define
another flag called AR600x_SD31_XXX, just use
CONFIG_AR600x_SD31_XXX since that is already defined
by the generated autoconf header file from the kernel.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove INIT_MODE_DRV_ENABLED define
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:14 +0000 (17:56 -0700)]
ath6kl: remove INIT_MODE_DRV_ENABLED define

Since this is defined statically we just leave the code.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove unused define WLAN_HEADERS
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:13 +0000 (17:56 -0700)]
ath6kl: remove unused define WLAN_HEADERS

All the code is used so just keep it and remove the static define.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove define HTC_EP_STAT_PROFILING
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:12 +0000 (17:56 -0700)]
ath6kl: remove define HTC_EP_STAT_PROFILING

This is always set so just keep the code it idefs around.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove unused define NO_SYNC_FLUSH
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:11 +0000 (17:56 -0700)]
ath6kl: remove unused define NO_SYNC_FLUSH

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove USER_KEYS define
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:10 +0000 (17:56 -0700)]
ath6kl: remove USER_KEYS define

This is always defined so just keep the code.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove SEND_EVENT_TO_APP define
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:09 +0000 (17:56 -0700)]
ath6kl: remove SEND_EVENT_TO_APP define

This was enabled by default but its pretty useless for upstream
given that its sendign some custom wireless event. These need
to be reviewed instead and a respective cfg80211 event / call
should be used later.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove dependency on LINUX and KERNEL_2_6 macros
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:08 +0000 (17:56 -0700)]
ath6kl: remove dependency on LINUX and KERNEL_2_6 macros

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove define ATH_AR6K_11N_SUPPORT
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:07 +0000 (17:56 -0700)]
ath6kl: remove define ATH_AR6K_11N_SUPPORT

This is always enabled.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove all the wext and super extended private ioctl crap
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:06 +0000 (17:56 -0700)]
ath6kl: remove all the wext and super extended private ioctl crap

This removes all the wext and super extended ioctl crap.
The wext interfaces are already provided by cfg80211 and
the "private" ioctl stuff defined here is not even using
private wext, they are using netdev private ioctls!
This is completely unacceptable upstream. Die. Die Die.

As part of all this we end up removing the
CONFIG_HOST_GPIO_SUPPORT which ended up being heavily
abused by the internal ioctl work.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: kill Android specific code
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:05 +0000 (17:56 -0700)]
ath6kl: kill Android specific code

To get upstream we can't use out of tree defines, kill
all the androidisms. ath6kl won't be usable on Android
unless external patches are supported later or Android
gets their shit together and gets all their crap upstream.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove Bluetooth PAL code and WMI ACL TX/RX data support
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:04 +0000 (17:56 -0700)]
ath6kl: remove Bluetooth PAL code and WMI ACL TX/RX data support

ath6kl used to have an internal PAL for Bluetooth 3.0 support
but this is no longer supported. The target used a WMI with an
ACL header for supporting these frames. Userspace would use
the ioctl AR6000_XIOCTL_ACL_DATA to send data to the target
and the firmware would generate ACL frames.

Remove both the parsing of the frames and the ioctl support.
We leave a warning for now for if the target generates some
sort of ACL data frame, later on we can remove this warning
once we have proven the target is no longer generating these
frames. It should be noted this also provides a fix for the
processing of spurious ACL data frames from the target,
previously they would not be dropped if they were generated
by the target but EXPORT_HCI_PAL_INTERFACE was not compiled
in.

Cc: Naveen Singh <nsingh@atheros.com>
Cc: Prerepa (Dham) Viswanadham <dham@atheros.com>
Cc: Shanmugamkamatchi Balashanmugam <sbalashanmugam@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: move setting netdev for non-cf80211 case
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:03 +0000 (17:56 -0700)]
ath6kl: move setting netdev for non-cf80211 case

The check for SET_NETDEV_DEV is not required given that
this is upstream. The setting of the SET_NETDEV_DEV with
the osDevInfo.pOSDevice is redundant for the cfg80211 case
as this was already being done, so just set the netdev device
for the non-cfg80211 which was missing.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove SET_MODULE_OWNER usage
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:02 +0000 (17:56 -0700)]
ath6kl: remove SET_MODULE_OWNER usage

This is not required.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: replace do while loop with function helpers on ar6000_avail_ev()
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:01 +0000 (17:56 -0700)]
ath6kl: replace do while loop with function helpers on ar6000_avail_ev()

This unwraps the do while loops in favor for function helpers.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: propagate error values on ar6000_avail_ev()
Luis R. Rodriguez [Wed, 30 Mar 2011 00:56:00 +0000 (17:56 -0700)]
ath6kl: propagate error values on ar6000_avail_ev()

When something fails we set up some generic error values,
instead keep the values from the callers and make sure to
pass them on.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: remove BMIENABLE_SET define
Luis R. Rodriguez [Wed, 30 Mar 2011 00:55:59 +0000 (17:55 -0700)]
ath6kl: remove BMIENABLE_SET define

Leave the code in place as this is always defined statically.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoath6kl: s|A_FREE|kfree|g
Luis R. Rodriguez [Wed, 30 Mar 2011 00:55:58 +0000 (17:55 -0700)]
ath6kl: s|A_FREE|kfree|g

for i in $(find ./drivers/staging/ath6kl/ -name \*.[ch]) ; do \
sed -r -i -e "s/A_FREE/kfree/g" $i; done

Tested-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: winbond/mto.c: remove unused variables
Jonathan Neuschäfer [Mon, 21 Mar 2011 13:24:03 +0000 (14:24 +0100)]
staging: winbond/mto.c: remove unused variables

They are unused since commit a22517fec0b13b5813932a3583a2b11a2ee17f5d:

    Staging: w35und: remove dead code from mto.c

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Acked-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: winbond: fixing some code styles issues
Chihau Chau [Wed, 23 Mar 2011 22:30:43 +0000 (18:30 -0400)]
staging: winbond: fixing some code styles issues

This patch fix some code style warnings found by the checkpatch.pl script, changing spaces for a tab

Signed-off-by: Chihau Chau <chihau@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/brcm80211: Fix common spelling mistakes
Peter Huewe [Sat, 26 Mar 2011 01:17:52 +0000 (02:17 +0100)]
staging/brcm80211: Fix common spelling mistakes

This patch fixes some very common spelling mistakes in
drivers/staging/brcm80211.

WRONG -> RIGHT
accomodate  -> accommodate
occured     -> occurred
recieve     -> receive
unferflow -> underflow
useable -> usable

Kernel Version: staging/staging-next 20110325 (4bbba111)

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agobrcm80211: remove unused defines in pcicfg.h
Stanislav Fomichev [Sun, 27 Mar 2011 21:31:38 +0000 (01:31 +0400)]
brcm80211: remove unused defines in pcicfg.h

Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agobrcm80211: remove unused defines in bcmdevs.h
Stanislav Fomichev [Sun, 27 Mar 2011 21:31:37 +0000 (01:31 +0400)]
brcm80211: remove unused defines in bcmdevs.h

Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agobrcm80211: replace VENDOR_BROADCOM with PCI_VENDOR_ID_BROADCOM
Stanislav Fomichev [Sun, 27 Mar 2011 21:31:36 +0000 (01:31 +0400)]
brcm80211: replace VENDOR_BROADCOM with PCI_VENDOR_ID_BROADCOM

use Linux native defines

Signed-off-by: Stanislav Fomichev <kernel@fomichev.me>
Acked-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove support functions for older chipsets from bcmsrom
Arend van Spriel [Fri, 25 Mar 2011 10:26:01 +0000 (11:26 +0100)]
staging: brcm80211: remove support functions for older chipsets from bcmsrom

The source file contained functions for both older and current chipsets
but the brcmsmac driver does not support the older chipsets so those
functions are removed.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove conditional BCMSDIO code from bcmsrom.c
Arend van Spriel [Fri, 25 Mar 2011 10:26:00 +0000 (11:26 +0100)]
staging: brcm80211: remove conditional BCMSDIO code from bcmsrom.c

The source file is only used by the softmac driver and will never be
compiled with the BCMSDIO flag enabled so there is no need to have code
ifdef for this flag.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove unneccessary include from bcmsrom.c
Arend van Spriel [Fri, 25 Mar 2011 10:25:59 +0000 (11:25 +0100)]
staging: brcm80211: remove unneccessary include from bcmsrom.c

Include statement of if_ether.h turned out to be unneccessary so
this is removed.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove defines from bcmsrom.c
Arend van Spriel [Fri, 25 Mar 2011 10:25:58 +0000 (11:25 +0100)]
staging: brcm80211: remove defines from bcmsrom.c

Two macro definitions in the file were either not used or meaningless and
have been removed.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: replace si_* calls with ai_* calls in brcmsmac driver
Arend van Spriel [Fri, 25 Mar 2011 10:25:57 +0000 (11:25 +0100)]
staging: brcm80211: replace si_* calls with ai_* calls in brcmsmac driver

The brcmsmac only supports chips with amba silicon interconnect so no
abstraction is required. The siutils functions will be removed from the
brcmsmac driver and this commit does easy replacement of siutils functions
that simply delegate to the corresponding aiutils function.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: remove duplicate prototype for si_pmu_pllupd
Arend van Spriel [Fri, 25 Mar 2011 10:25:55 +0000 (11:25 +0100)]
staging: brcm80211: remove duplicate prototype for si_pmu_pllupd

The prototype for this function occurred twice in this header file
so removed one occurrence.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleanup si_doattach function for fullmac
Arend van Spriel [Fri, 25 Mar 2011 10:25:54 +0000 (11:25 +0100)]
staging: brcm80211: cleanup si_doattach function for fullmac

si_doattach for the fullmac driver is selected using BCMSDIO
flag. Within the function there are #ifdef BRCM_FULLMAC but
this is implicitly true so these have been removed and the
function itself is now between #ifdef BRCM_FULLMAC instead of
BCMSDIO.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoSTAGING: brcm80211 v2 keep power on in suspend state
Grant Grundler [Fri, 18 Mar 2011 22:56:57 +0000 (15:56 -0700)]
STAGING: brcm80211 v2 keep power on in suspend state

Keep WIFI power on during suspend.

Consumes 10s of milliwatts but avoids having to reload firmware
on resume. Tested on tegra2_seaboard.

Signed-off-by: Venkat Rao <vrao@broadcom.com>
Tested-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: cleaned up TODO file
Roland Vossen [Fri, 18 Mar 2011 10:09:35 +0000 (11:09 +0100)]
staging: brcm80211: cleaned up TODO file

Brought TODO file in line with current driver state. Moved longer
term TODO items (the ones to be done once this driver
hits mainline) to website. Removed the bugs that have been solved.
Added new TODO items.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: revised README
Roland Vossen [Fri, 18 Mar 2011 10:09:34 +0000 (11:09 +0100)]
staging: brcm80211: revised README

Removed duplicated text sections in README. Removed Bugs/problems that no longer
occur. One brcmsmac instability remains, (to be solved with new ucode), that has
been moved to the TODO file.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: moved several README items to website
Roland Vossen [Fri, 18 Mar 2011 10:09:33 +0000 (11:09 +0100)]
staging: brcm80211: moved several README items to website

Intended audience for the README file are users of the driver.
Information only interesting to developers has been moved out of
the file and placed on the website:

http://linuxwireless.org/en/users/Drivers/brcm80211

Also, resolved bugs have been removed from the README.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: unified README files
Roland Vossen [Fri, 18 Mar 2011 10:09:32 +0000 (11:09 +0100)]
staging: brcm80211: unified README files

There were separate README files for softmac and fullmac.
Fullmac file contents has been merged into the toplevel README
file.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: deleted unused code in hndpmu.c
Roland Vossen [Tue, 15 Mar 2011 14:11:28 +0000 (15:11 +0100)]
staging: brcm80211: deleted unused code in hndpmu.c

Code cleanup. Code is not necessary since BCMDBG does not have to
be defined for a functional driver.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: Removed invalid comment in receive processing.
Roland Vossen [Tue, 15 Mar 2011 14:11:27 +0000 (15:11 +0100)]
staging: brcm80211: Removed invalid comment in receive processing.

Comment was a left over from a driver that handled AMPDU aggregation itself (instead
of relying on Mac80211).

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: changed comment on rx buffer len in wlc_ampdu.c
Roland Vossen [Tue, 15 Mar 2011 14:11:26 +0000 (15:11 +0100)]
staging: brcm80211: changed comment on rx buffer len in wlc_ampdu.c

Code cleanup. Code in wlc_ampdu.c is waiting for Mac80211 functionality to be released.
Added this information to a code comment.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: deleted inactive BCMDBG_FORCEHT code
Roland Vossen [Tue, 15 Mar 2011 13:51:06 +0000 (14:51 +0100)]
staging: brcm80211: deleted inactive BCMDBG_FORCEHT code

Code cleanup. Preprocessor flag BCMDBG_FORCEHT is never defined,
is a debug feature, so ifdeff'ed code has been removed. The removed
section would force the backplane clock on HT rate, which
facilitates debug but has a negative effect on power usage.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: brcm80211: code cleanup
Roland Vossen [Tue, 15 Mar 2011 13:51:05 +0000 (14:51 +0100)]
staging: brcm80211: code cleanup

Removed inactive code sections (BCM_DMAPAD and CHIPC_UART_ALWAYS_ON
were never defined). Also replaced magic number by #define. Deleted
incorrect comment.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Convert camel case in in all functions to lower case in hv_mouse
Hank Janssen [Fri, 1 Apr 2011 21:32:14 +0000 (14:32 -0700)]
staging: hv: Convert camel case in in all functions to lower case in hv_mouse

Convert all camelcase variables inside of all remaining functions to lower
case in hv_mouse.

Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Convert camel case members of struct mousevsc_dev to lower case
Hank Janssen [Fri, 1 Apr 2011 21:32:13 +0000 (14:32 -0700)]
staging: hv: Convert camel case members of struct mousevsc_dev to lower case

Change camelcase members of struct mousevsc_dev to lower case in hv_mouse

Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Convert camel case member of struct mousevsc_drv_obj to lower case
Hank Janssen [Fri, 1 Apr 2011 21:32:12 +0000 (14:32 -0700)]
staging: hv: Convert camel case member of struct mousevsc_drv_obj to lower case

Change camelcase members of mousevsc_drv_obj to lower case in hv_mouse.

Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Convert camel case func params to lower case in hv_mouse
Hank Janssen [Fri, 1 Apr 2011 21:32:11 +0000 (14:32 -0700)]
staging: hv: Convert camel case func params to lower case in hv_mouse

Change all camelcase function params to lower case in hv_mouse

Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: change camel case funct names to lower case funct in hv_mouse
Hank Janssen [Fri, 1 Apr 2011 21:32:10 +0000 (14:32 -0700)]
staging: hv: change camel case funct names to lower case funct in hv_mouse

Change all camelcase function names to lower case in hv_mouse

Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Replaced printk with pr_info in hv_timesource
Hank Janssen [Tue, 29 Mar 2011 20:58:50 +0000 (13:58 -0700)]
staging: hv: Replaced printk with pr_info in hv_timesource

Replaced printk in hv_timesource with pr_ calls

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Replaced DPRINT and printk with native functions in hv_utils
Hank Janssen [Tue, 29 Mar 2011 20:58:49 +0000 (13:58 -0700)]
staging: hv: Replaced DPRINT and printk with native functions in hv_utils

Replaced all DPRINT and printk calls with pr_ calls

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: replace DPRINT with native primitives in hv_netvsc
Hank Janssen [Tue, 29 Mar 2011 20:58:48 +0000 (13:58 -0700)]
staging: hv: replace DPRINT with native primitives in hv_netvsc

Replace all remaining DPRINT calls with their native dev_ and
netvsc_ calls. And also change some of the verbiage to be more useful.

rndis_filter has a few remaining DPRINT calls in it that will be removed
in a future patch because the debug will be implemented differently.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Replace DPRINT with natives in hv_vmbus
Hank Janssen [Tue, 29 Mar 2011 20:58:47 +0000 (13:58 -0700)]
staging: hv: Replace DPRINT with natives in hv_vmbus

Replace all remaining DPRINT calls (excluding the ringbuffer debug
which is going to be done in a next set of patches) with their
native pr_ calls. And also changed some of the printouts to be more
useful.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Remove all unneeded DPRINT from hv_utils
Hank Janssen [Tue, 29 Mar 2011 20:58:46 +0000 (13:58 -0700)]
staging: hv: Remove all unneeded DPRINT from hv_utils

Remove all un-needed DPRINT calls from hv_utils.

This patch deals with hv_utils only.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Remove all unneeded DPRINT from hv_netvsc
Hank Janssen [Tue, 29 Mar 2011 20:58:45 +0000 (13:58 -0700)]
staging: hv: Remove all unneeded DPRINT from hv_netvsc

Remove all un-needed DPRINT calls from hv_netvsc.

This patch deals with hv_netvsc only.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: hv: Remove all unneeded DPRINT from hv_vmbus
Hank Janssen [Tue, 29 Mar 2011 20:58:44 +0000 (13:58 -0700)]
staging: hv: Remove all unneeded DPRINT from hv_vmbus

Remove all un-needed DPRINT calls from hv_vmbus. Several
are remaining that will be cleaned up in my next set of patches.
They deal with printing out the ringbuffer debugging which is
going to be implemented slightly differently.

This patch deals with hv_vmbus only.

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of synch primitive in struct blkvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:45 +0000 (09:33 -0700)]
Staging: hv: Get rid of synch primitive in struct blkvsc_request

Get rid of synch primitive in struct blkvsc_request and instead use the
synch primitive already embedded in the struct hv_storvsc_request structure.

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>
13 years agoStaging: hv: Rename struct storvsc_request_extension
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:44 +0000 (09:33 -0700)]
Staging: hv: Rename struct storvsc_request_extension

Now that all duplicate state has been eliminated from
struct hv_storvsc_request and all needed state has been moved
to struct storvsc_request_extension, get rid of
struct hv_storvsc_request and rename struct storvsc_request_extension
as struct hv_storvsc_request. Cleanup and consolidation
of I/O request state is now complete.

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>
13 years agoStaging: hv: Move the data_buffer field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:43 +0000 (09:33 -0700)]
Staging: hv: Move the data_buffer field from struct hv_storvsc_request

In preparation of consolidating all I/O request state,
move the data_buffer field from struct hv_storvsc_request
struct storvsc_request_extension.

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>
13 years agoStaging: hv: Get rid of the status field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:42 +0000 (09:33 -0700)]
Staging: hv: Get rid of the status field from struct hv_storvsc_request

In preparation of consolidating all I/O request state,
get rid of the  status field from struct hv_storvsc_request
and instead use the state in the struct vmscsi_request 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>
13 years agoStaging: hv: Move on_io_completion() from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:41 +0000 (09:33 -0700)]
Staging: hv: Move on_io_completion() from struct hv_storvsc_request

In preparation of consolidating all I/O request state, move
the on_io_completion() field from struct hv_storvsc_request to
struct storvsc_request_extension.

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>
13 years agoStaging: hv: Move the context field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:40 +0000 (09:33 -0700)]
Staging: hv: Move the context field from struct hv_storvsc_request

In preparation of consolidating all I/O request state, move
the context field from struct hv_storvsc_request to
struct storvsc_request_extension.

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>
13 years agoStaging: hv: Move sense_buffer field
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:39 +0000 (09:33 -0700)]
Staging: hv: Move sense_buffer field

In preparation for consolidating all I/O request state,
move sense_buffer field from struct hv_storvsc_request
to struct storvsc_request_extension.

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>
13 years agoStaging: hv: Get rid of sense_buffer_size from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:38 +0000 (09:33 -0700)]
Staging: hv: Get rid of sense_buffer_size from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
sense_buffer_size field from struct hv_storvsc_request and instead
hardcode this value as is currently done.

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>
13 years agoStaging: hv: Get rid of cdb from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:37 +0000 (09:33 -0700)]
Staging: hv: Get rid of cdb from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
cdb field from struct hv_storvsc_request and instead
directly copy the command into struct vmscsi_request.

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>
13 years agoStaging: hv: Get rid of the cdb_len from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:36 +0000 (09:33 -0700)]
Staging: hv: Get rid of the cdb_len from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
cdb_len field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - cdb_length field.

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>
13 years agoStaging: hv: Get rid of lun_id from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:35 +0000 (09:33 -0700)]
Staging: hv: Get rid of lun_id from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
lun_id field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - lun field.

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>
13 years agoStaging: hv: Get rid of the target_id from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:34 +0000 (09:33 -0700)]
Staging: hv: Get rid of the target_id from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
target_id field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - target_id field.

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>
13 years agoStaging: hv: Get rid of the bus field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:33 +0000 (09:33 -0700)]
Staging: hv: Get rid of the bus field from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
bus field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - path_id field.

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>
13 years agoStaging: hv: Get rid of the host field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:32 +0000 (09:33 -0700)]
Staging: hv: Get rid of the host field from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
host field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - port_number field.

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>
13 years agoStaging: hv: Get rid of the type field from struct hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:31 +0000 (09:33 -0700)]
Staging: hv: Get rid of the type field from struct hv_storvsc_request

In preparation for consolidating all I/O request state, get rid of the
type field from struct hv_storvsc_request and instead use the
equivalent  state in struct vmscsi_request - data_in field.
In the current code there is a call to zero out the struct vstor_packet in
stor_vsc_on_io_request(). So, to be able to directly set the state in the
vstor_packet in blkvsc_drv.c and storvsc_drv.c, get rid of the call to
zero out the packet in stor_vsc_on_io_request() and instead allocate the
request structure that has been zeroed out.

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>
13 years agoStaging: hv: Use struct completion in struct storvsc_request_extension
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:30 +0000 (09:33 -0700)]
Staging: hv: Use struct completion in struct storvsc_request_extension

Get rid of the wait_queue mechanism for synchronization in
struct storvsc_request_extension and instead use completion
mechanism.

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>
13 years agoStaging: hv: Add a function to map a hv_driver pointer to storvsc driver
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:29 +0000 (09:33 -0700)]
Staging: hv: Add a function to map a hv_driver pointer to storvsc driver

Get rid of the need for struct hv_device to be the first
element of struct host_device_context.

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>
13 years agoStaging: hv: Get rid of request_ext_size from struct storvsc_driver_object
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:28 +0000 (09:33 -0700)]
Staging: hv: Get rid of request_ext_size from struct storvsc_driver_object

Now that struct storvsc_request_extension is part of struct hv_storvsc_request
get rid of the field request_ext_size from struct storvsc_driver_object.

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>
13 years agoStaging: hv: Embed struct storvsc_request_extension into hv_storvsc_request
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:27 +0000 (09:33 -0700)]
Staging: hv: Embed struct storvsc_request_extension into hv_storvsc_request

Embed struct storvsc_request_extension into hv_storvsc_request.

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>
13 years agoStaging: hv: Move the definition of struct storvsc_request_extension
K. Y. Srinivasan [Mon, 28 Mar 2011 16:33:26 +0000 (09:33 -0700)]
Staging: hv: Move the definition of struct storvsc_request_extension

In preperation for embedding struct storvsc_request_extension into
struct hv_storvsc_request, move the definition of
struct storvsc_request_extension.

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>
13 years agoStaging: hv: Make the function stor_vsc_on_host_reset() static
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:34 +0000 (10:50 -0700)]
Staging: hv: Make the function stor_vsc_on_host_reset() static

Make stor_vsc_on_host_reset() a static function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of the function stor_vsc_on_host_reset()
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:33 +0000 (10:50 -0700)]
Staging: hv: Move the definition of the function stor_vsc_on_host_reset()

stor_vsc_on_host_reset() function is only used in storvsc_drv.c.
Move this function from storvsc.c to storvsc_drv.c

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of the function put_stor_device()
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:32 +0000 (10:50 -0700)]
Staging: hv: Move the definition of the function put_stor_device()

In preparation for further cleaning up storvsc.c move the definition
of the inline function put_stor_device() from storvsc.c to
storvsc_api.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of the function get_stor_device()
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:31 +0000 (10:50 -0700)]
Staging: hv: Move the definition of the function get_stor_device()

In preparation for further cleaning up storvsc.c move the definition
of the inline function get_stor_device() from storvsc.c to
storvsc_api.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Cleanup initialization of blkvsc driver
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:30 +0000 (10:50 -0700)]
Staging: hv: Cleanup initialization of blkvsc driver

Cleanup the initialization sequence for the block driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the file blkvsc.c
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:29 +0000 (10:50 -0700)]
Staging: hv: Get rid of the file blkvsc.c

Now delete the file.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the contents of blkvsc.c to blkvsc_drv.c
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:28 +0000 (10:50 -0700)]
Staging: hv: Move the contents of blkvsc.c to blkvsc_drv.c

In preparation for getting rid of the file blkvsc.c, move its contents
to the appropriate file.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Cleanup the initialization of storvsc driver
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:27 +0000 (10:50 -0700)]
Staging: hv: Cleanup the initialization of storvsc driver

Cleanup the initialization sequence for the storvsc driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Make the function stor_vsc_initialize() static
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:26 +0000 (10:50 -0700)]
Staging: hv: Make the function stor_vsc_initialize() static

Make the function  stor_vsc_initialize() a  static function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of stor_vsc_initialize()
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:25 +0000 (10:50 -0700)]
Staging: hv: Move the definition of stor_vsc_initialize()

Since stor_vsc_initialize() is only used in storvs_drv.c, move this
function to storvsc_drv.c.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of dead code in storvsc.c
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:24 +0000 (10:50 -0700)]
Staging: hv: Get rid of dead code in storvsc.c

Get rid of some "dead code" from storvsc.c

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the include of storvsc.c from blkvsc.c
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:23 +0000 (10:50 -0700)]
Staging: hv: Get rid of the include of storvsc.c from blkvsc.c

Now that all the structure definitions have been moved to a header file,
get rid of the inclusion of storvsc.c from blkvsc.c.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Cleanup struct storvsc_device
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:22 +0000 (10:50 -0700)]
Staging: hv: Cleanup struct storvsc_device

Get rid of some dated comments from struct storvsc_device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of struct storvsc_device
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:21 +0000 (10:50 -0700)]
Staging: hv: Move the definition of struct storvsc_device

In preparation for getting rid of the inclusion of storvsc.c from
blkvsc.c, move the definition of struct storvsc_device
from storvsc.c to storvsc_api.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of struct storvsc_request_extension
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:20 +0000 (10:50 -0700)]
Staging: hv: Move the definition of struct storvsc_request_extension

In preparation for getting rid of the inclusion of storvsc.c from
blkvsc.c, move the definition of struct storvsc_request_extension
from storvsc.c to storvsc_api.h.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Add the inclusion guard for vstorage.h
K. Y. Srinivasan [Wed, 23 Mar 2011 17:50:19 +0000 (10:50 -0700)]
Staging: hv: Add the inclusion guard for vstorage.h

In preparation for getting rid of the inclusion of storvsc.c from
blkvsc.c, add inclusion guard to vstorage.h

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_show_device_attr
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:44 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_show_device_attr

Get rid of the forward declaration of vmbus_show_device_attr by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_isr
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:43 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_isr

Get rid of the forward declaration of vmbus_isr by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_device_release
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:42 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_device_release

Get rid of the forward declaration of vmbus_device_release by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_shutdown
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:41 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_shutdown

Get rid of the forward declaration of vmbus_shutdown by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_remove
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:40 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_remove

Get rid of the forward declaration of vmbus_remove by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_probe
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:39 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_probe

Get rid of the forward declaration of vmbus_probe by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>
13 years agoStaging: hv: Get rid of the forward declaration for vmbus_match
K. Y. Srinivasan [Tue, 15 Mar 2011 22:03:38 +0000 (15:03 -0700)]
Staging: hv: Get rid of the forward declaration for vmbus_match

Get rid of the forward declaration of vmbus_match by moving
the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@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>