[PATCH] staging: csr: fix compilation warning in unifi_siwscan

2013-03-13 Thread Devendra Naga
got the warnings drivers/staging/csr/sme_wext.c: In function ‘unifi_siwscan’: drivers/staging/csr/sme_wext.c:1276:9: warning: variable ‘scantype’ set but not used [-Wunused-but-set-variable] fixed by removing the variable Signed-off-by: Devendra Naga --- drivers/staging/csr/sme_wext.c | 3 ---

Re: hyperv: is register a mandatory phase by hypervkvpd?

2013-03-13 Thread vaughan
于 2013年03月06日 22:23, KY Srinivasan 写道: -Original Message- From: vaughan [mailto:vaughan@oracle.com] Sent: Tuesday, March 05, 2013 9:09 PM To: KY Srinivasan Cc: Xitao Cao;devel@linuxdriverproject.org; Haiyang Zhang Subject: Re: hyperv: is register a mandatory phase by hypervkvpd? 于 20

Re: [PATCH 2/3] staging: comedi_pci: set dev->iobase in comedi_pci_enable()

2013-03-13 Thread Dan Carpenter
On Wed, Mar 13, 2013 at 12:19:10PM -0700, H Hartley Sweeten wrote: > The variable dev->iobase holds the primary iobase address used > by the comedi drivers. For PCI drivers, this value is found in > one of the PCI bars of the device. > > Currently all comedi PCI drivers set dev->iobase after calli

[GIT PATCH] Staging driver fixes for 3.9-rc2

2013-03-13 Thread Greg KH
The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8: Linux 3.9-rc1 (2013-03-03 15:11:05 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.9-rc2 for you to fetch changes up to 564c526a1bed5

Re: [PATCH] Staging: comedi: Fixed camel case style issue in usbdux.c

2013-03-13 Thread Dan Carpenter
On Wed, Mar 13, 2013 at 12:19:20PM -0400, Jacob Garber wrote: > This is a patch to usbdux.c that fixes the camel case warnings found > by the checkpatch.pl tool > > Signed-off-by: Jacob Garber > --- > -static int usbduxsub_submit_InURBs(struct usbduxsub *usbduxsub) > +static int usbduxsub_submit_

[PATCH 3/3] staging: comedi: drivers: set dev->board_name before (*attach)

2013-03-13 Thread H Hartley Sweeten
Default the dev->board_name to the dev->driver->driver_name before calling the comedi driver (*attach) or (*auto_attach). This way drivers without additional boardinfo do not have to set the dev->board_name pointer. This also ensures that dev->board_name is always initialized before PCI drivers ca

[PATCH 2/3] staging: comedi_pci: set dev->iobase in comedi_pci_enable()

2013-03-13 Thread H Hartley Sweeten
The variable dev->iobase holds the primary iobase address used by the comedi drivers. For PCI drivers, this value is found in one of the PCI bars of the device. Currently all comedi PCI drivers set dev->iobase after calling comedi_pci_enable(). For PCI devices that use memory mapped i/o the PCI ba

[PATCH 1/3] staging: comedi: addi_apci_1710: only pci bar 2 is used

2013-03-13 Thread H Hartley Sweeten
This driver used to be tied to the addi-data common code which always saved the start address of pci bars 0, 1, 2, and 3 for use by the driver. This driver only uses pci bar 2. Remove all the non-used pci bars and move the saving of pci bar 2 so it occurs right after the pci device is enabled. Si

[PATCH 0/3] staging: comedi: cleanup some of the driver boilerplate

2013-03-13 Thread H Hartley Sweeten
Move some of the boilerplate code from the comedi drivers to the comedi core. H Hartley Sweeten (3): staging: comedi: addi_apci_1710: only pci bar 2 is used staging: comedi_pci: set dev->iobase in comedi_pci_enable() staging: comedi: drivers: set dev->board_name before (*attach) drivers/st

[PATCH linux-next] dgrp: staging: cleanup sparse warnings

2013-03-13 Thread Nathan Zimmer
A cleanup patch to remove sparse warnings caused by my other patch "procfs: Improve Scaling in proc" since now proc_fops is protected by the rcu. Signed-off-by: Nathan Zimmer Cc: Greg Kroah-Hartman Cc: Bill Pemberton Cc: de...@driverdev.osuosl.org Cc: linux-ker...@vger.kernel.org --- drivers

[PATCH 2/2 v2] staging: comedi_pci: pass comedi_device to comedi_pci_enable()

2013-03-13 Thread H Hartley Sweeten
Make comedi_pci_enable() use the same parameter type as comedi_pci_disable(). This also allows comedi_pci_enable to automatically determine the resource name passed to pci_request_regions(). Make sure the errno value returned is passed on instead of assuming an errno. Also, remove any kernel noise

[PATCH 1/2 v2] staging: comedi_pci: make comedi_pci_disable() safe to call

2013-03-13 Thread H Hartley Sweeten
Currently all the comedi PCI drivers need to do some checking in their (*detach) before calling comedi_pci_disable() in order to make sure the PCI device has actually be enabled. Change the parameter passed to comedi_pci_disable() from a struct pci_dev pointer to a comedi_device pointer and have c

[PATCH 0/2 v2] staging: comedi_pci: refactor comedi_pci_{enable, disable}

2013-03-13 Thread H Hartley Sweeten
Pass the a struct comedi_device pointer to comedi_pci_{enable,disable} instead of a struct pci_dev pointer. This allows comedi_pci_disable to handle all the sanity checking before releasing the resources and disabling the PCI device. It also allows comedi_pci_enable to automatically determine the

Re: [PATCH] staging: comedi_pci: make comedi_pci_disable() safe to always call

2013-03-13 Thread Ian Abbott
On 13/03/13 16:27, H Hartley Sweeten wrote: On Wednesday, March 13, 2013 4:10 AM, Ian Abbott wrote: On 13/03/2013 00:41, H Hartley Sweeten wrote: --- a/drivers/staging/comedi/comedi_pci.c +++ b/drivers/staging/comedi/comedi_pci.c @@ -57,14 +57,16 @@ EXPORT_SYMBOL_GPL(comedi_pci_enable); /**

RE: [PATCH RESEND 5/6] Drivers: hv: balloon: Implement hot-add functionality

2013-03-13 Thread KY Srinivasan
> -Original Message- > From: Olaf Hering [mailto:o...@aepfle.de] > Sent: Wednesday, March 13, 2013 12:50 PM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > devel@linuxdriverproject.org; a...@canonical.com; jasow...@redhat.com > Subject: Re: [PATCH RES

Re: [PATCH RESEND 5/6] Drivers: hv: balloon: Implement hot-add functionality

2013-03-13 Thread Olaf Hering
On Tue, Mar 12, K. Y. Srinivasan wrote: > Implement the memory hot-add functionality. With this, Linux guests can fully > participate in the Dynamic Memory protocol implemented in the Windows hosts. > +++ b/drivers/hv/Kconfig > @@ -15,7 +15,7 @@ config HYPERV_UTILS > > config HYPERV_BALLOON >

RE: [PATCH] staging: comedi_pci: make comedi_pci_disable() safe to always call

2013-03-13 Thread H Hartley Sweeten
On Wednesday, March 13, 2013 4:10 AM, Ian Abbott wrote: > On 13/03/2013 00:41, H Hartley Sweeten wrote: >> --- a/drivers/staging/comedi/comedi_pci.c >> +++ b/drivers/staging/comedi/comedi_pci.c >> @@ -57,14 +57,16 @@ EXPORT_SYMBOL_GPL(comedi_pci_enable); >> >> /** >>* comedi_pci_disable() - R

[PATCH] Staging: comedi: Fixed camel case style issue in usbdux.c

2013-03-13 Thread Jacob Garber
This is a patch to usbdux.c that fixes the camel case warnings found by the checkpatch.pl tool Signed-off-by: Jacob Garber --- drivers/staging/comedi/drivers/usbdux.c | 404 +++ 1 file changed, 202 insertions(+), 202 deletions(-) diff --git a/drivers/staging/comedi/

RE: [PATCH 3/3] tools: hv: daemon should check type of received Netlink msg

2013-03-13 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Wednesday, March 13, 2013 9:14 AM > To: gre...@linuxfoundation.org > Cc: KY Srinivasan; jasow...@redhat.com; Haiyang Zhang; > devel@linuxdriverproject.org; Tomas Hozza > Subject: [PATCH 3/3] tools: hv: daemon shou

RE: [PATCH 2/3] tools: hv: daemon setsockopt should use options macros

2013-03-13 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Wednesday, March 13, 2013 9:14 AM > To: gre...@linuxfoundation.org > Cc: KY Srinivasan; jasow...@redhat.com; Haiyang Zhang; > devel@linuxdriverproject.org; Tomas Hozza > Subject: [PATCH 2/3] tools: hv: daemon sets

RE: [PATCH 1/3] tools: hv: daemon should subscribe only to CN_KVP_IDX group

2013-03-13 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Wednesday, March 13, 2013 9:14 AM > To: gre...@linuxfoundation.org > Cc: KY Srinivasan; jasow...@redhat.com; Haiyang Zhang; > devel@linuxdriverproject.org; Tomas Hozza > Subject: [PATCH 1/3] tools: hv: daemon shou

[PATCH 3/3] tools: hv: daemon should check type of received Netlink msg

2013-03-13 Thread Tomas Hozza
HyperV KVP daemon should check nlmsg_type in received netlink message header. If message type is NLMSG_DONE daemon can proceed with processing otherwise it should wait for next message. Signed-off-by: Tomas Hozza --- tools/hv/hv_kvp_daemon.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 2/3] tools: hv: daemon setsockopt should use options macros

2013-03-13 Thread Tomas Hozza
HyperV daemon should use macros for option values when calling setsockopt. Using specific numeric values instead of macros is confusing. Signed-off-by: Tomas Hozza --- tools/hv/hv_kvp_daemon.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c

[PATCH 1/3] tools: hv: daemon should subscribe only to CN_KVP_IDX group

2013-03-13 Thread Tomas Hozza
Previously HyperV daemon set sockaddr_nl.nl_groups to CN_KVP_IDX. Netlink documentation says: "nl_groups is a bit mask with every bit representing a netlink group number". Since CN_KVP_IDX value is "9" HyperV daemon was receiving Netlink messages also from group number "1" which is used by CGroup R

Re: [PATCH] staging: comedi_pci: make comedi_pci_disable() safe to always call

2013-03-13 Thread Ian Abbott
On 13/03/2013 00:41, H Hartley Sweeten wrote: --- a/drivers/staging/comedi/comedi_pci.c +++ b/drivers/staging/comedi/comedi_pci.c @@ -57,14 +57,16 @@ EXPORT_SYMBOL_GPL(comedi_pci_enable); /** * comedi_pci_disable() - Release the regions and disable the PCI device. - * @pcidev: pci_dev struc