Re: [PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread DaeSeok Youn
Yes, it is not changed anything. But I had a request of greg. He want to resend my patches what he haven't applied to staging-next branch because my patches had flushed from his own queue. And I didn't know how to set the version of patch when it is sent again without changes in this case. So I c

Re: [PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Dan Carpenter
Why are you resending a v3 of these? I did a diff of the emails and the only difference is that you dropped Ying Xue from the CC list. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/ma

Re: [PATCH] staging: usbip: claim ports used by shared devices

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 09:25:04PM +0200, Valentina Manea wrote: > Signed-off-by: Valentina Manea As you are touching core USB code, you need to have some kind of description here as to what you are doing, and why you are doing it. thanks, greg k-h __

Re: [PATCH 00/12] Migrate usbip-utils to libudev

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 09:10:40PM +0200, Valentina Manea wrote: > This patch series modifies the USB/IP userspace side (usbip-utils) > to use libudev instead of libsysfs. This change was necessary as > libsysfs is no longer maintained and we have discovered a bug that > affected USB/IP. That's gr

Re: [PATCH 06/12] staging: usbip: userspace: add new list API

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 09:10:46PM +0200, Valentina Manea wrote: > Add a new list API from CCAN. Why can't you just take the one from the kernel, as userspace is GPLv2 code, right? And are you sure CC0 is a "valid" license that you can mix with GPLv2 code? I ask this seriously, as I have heard t

Re: [PATCH net-next] hyperv: Move state setting for link query

2014-03-04 Thread Jason Wang
On 03/05/2014 12:57 AM, Haiyang Zhang wrote: > >> -Original Message- >> From: Jason Wang [mailto:jasow...@redhat.com] >> Sent: Monday, March 3, 2014 10:10 PM >> To: Haiyang Zhang; da...@davemloft.net; net...@vger.kernel.org >> Cc: KY Srinivasan; o...@aepfle.de; linux-ker...@vger.kernel.org;

Re: [PATCH v2 1/2] Staging: comedi: introduce {outl, inl}_amcc() and {outl, inl}_iobase() helper functions in hwdrv_apci1564.c

2014-03-04 Thread Chase Southwood
>On Tuesday, March 4, 2014 6:38 PM, Greg KH wrote: >>On Mon, Mar 03, 2014 at 12:27:55PM +0300, Dan Carpenter wrote: >>> On Sun, Mar 02, 2014 at 08:52:19PM -0600, Chase Southwood wrote: >>> This patch introduces a few simple outl and inl helper functions to allow >>> several lines which violate th

[PATCH] staging: cxt1e1: use kzalloc instead of kmalloc/memset 0

2014-03-04 Thread Daeseok Youn
Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/sbecom_inline_linux.h |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/cxt1e1/sbecom_inline_linux.h b/drivers/staging/cxt1e1/sbecom_inline_linux.h index ba3ff3e..6dd1b55 100644 --- a/drivers/stag

Re: [PATCH 2/2] staging :keucr:scsiglue.c : fixed a macros should not be colon terminated issue

2014-03-04 Thread Joe Perches
On Tue, 2014-03-04 at 17:10 -0800, Greg KH wrote: > On Sun, Mar 02, 2014 at 06:21:16PM +0530, Keerthimai Janarthanan wrote: > > fixed a coding style issue. [] > > diff --git a/drivers/staging/keucr/scsiglue.c > > b/drivers/staging/keucr/scsiglue.c [] > > @@ -277,7 +277,7 @@ static int show_info(st

[PATCH 7/7] staging: cxt1e1: remove unneeded a value

2014-03-04 Thread Daeseok Youn
It doesn't need to assign name array address to np pointer. Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c index 5bb42ae..cae8c66 100644 -

[PATCH 6/7] staging: cxtie1: remove unneeded mkret() calls

2014-03-04 Thread Daeseok Youn
The mkret() change a value of error from positive to negative. This patch is modified to return negative value when it failed. It doesn't need to call with function for changing from positive to negative. Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 72 +---

[PATCH 5/7 v3] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread Daeseok Youn
clean up checkpatch.pl error in linux.c: ERROR: that open brace { should be on the previous line Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 67 --- 1 files changed, 21 insertions(+), 46 deletions(-) diff --git a/drivers/staging/cxt1e

[PATCH 4/7 v3] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/

Re: [PATCH 5/7] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread DaeSeok Youn
OK. I send patches again. Thanks. Daeseok Youn. 2014-03-05 10:06 GMT+09:00 Greg KH : > On Wed, Mar 05, 2014 at 09:55:14AM +0900, DaeSeok Youn wrote: >> Hi, greg >> >> I already resend patch 4 and 5. :-) >> >> It had a bug which is noticed by Dan. >> >> I tried to fix assignment in if condition an

Re: [PATCH 2/2] staging :keucr:scsiglue.c : fixed a macros should not be colon terminated issue

2014-03-04 Thread Greg KH
On Sun, Mar 02, 2014 at 06:21:16PM +0530, Keerthimai Janarthanan wrote: > fixed a coding style issue. > > Signed-off-by: Keerthimai Janarthanan > --- > drivers/staging/keucr/scsiglue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/keucr/scsiglue.c > b

Re: [PATCH 5/7] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread Greg KH
On Wed, Mar 05, 2014 at 09:55:14AM +0900, DaeSeok Youn wrote: > Hi, greg > > I already resend patch 4 and 5. :-) > > It had a bug which is noticed by Dan. > > I tried to fix assignment in if condition and missed curly brace in inner > loop. > So I fixed that bug and resend patch 4. And patch 5

Re: [PATCH 5/7] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread DaeSeok Youn
Hi, greg I already resend patch 4 and 5. :-) It had a bug which is noticed by Dan. I tried to fix assignment in if condition and missed curly brace in inner loop. So I fixed that bug and resend patch 4. And patch 5 is rebased after fixing patch 4. And I tested to apply these patch to staging-ne

Re: [patch V2 8/8] staging: s-Par driver documentation

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 07:58:12AM -0600, Ken Cox wrote: > Index: upstream-staging/drivers/staging/unisys/MAINTAINERS > === Are you using cvs? Please start using git... > --- /dev/null > +++ upstream-staging/drivers/staging/unisys/M

Re: [patch V2 1/8] staging: visorutil driver to provide common functionality to other s-Par drivers

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 07:58:05AM -0600, Ken Cox wrote: > +EXPORT_SYMBOL_GPL(proc_CreateType); You have some _very_ generic symbols that you are now exporting. Here's another funny one: > +int hexDumpWordsToBuffer(char *dest, > + int destSize, > + char

Re: [PATCH v2 1/2] Staging: comedi: introduce {outl,inl}_amcc() and {outl,inl}_iobase() helper functions in hwdrv_apci1564.c

2014-03-04 Thread Greg KH
On Mon, Mar 03, 2014 at 12:27:55PM +0300, Dan Carpenter wrote: > On Sun, Mar 02, 2014 at 08:52:19PM -0600, Chase Southwood wrote: > > This patch introduces a few simple outl and inl helper functions to allow > > several lines which violate the character limit to be shortened > > appropriately. It

Re: [PATCH 5/7] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 11:10:44AM +0900, Daeseok Youn wrote: > > clean up checkpatch.pl error in linux.c: > ERROR: that open brace { should be on the previous line > > Signed-off-by: Daeseok Youn > --- > drivers/staging/cxt1e1/linux.c | 67 --- > 1 files

[PATCH 5/7 v2] staging: cxt1e1: fix checkpatch errors with open brace '{'

2014-03-04 Thread Daeseok Youn
clean up checkpatch.pl error in linux.c: ERROR: that open brace { should be on the previous line Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 67 --- 1 files changed, 21 insertions(+), 46 deletions(-) diff --git a/drivers/staging/cxt1e

[PATCH 4/7 v2] staging: cxt1e1: fix checkpatch error 'assignment in if condition'

2014-03-04 Thread Daeseok Youn
checkpatch.pl error in linux.c: ERROR: do not use assignment in if condition Signed-off-by: Daeseok Youn --- drivers/staging/cxt1e1/linux.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/

[tip:irq/core] x86: hyperv: Fix brown paperbag typos reported by Fenguangs build robot

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: 13b5be56d1c5ed302df53f6dfbe19b9f4e3fd3ce Gitweb: http://git.kernel.org/tip/13b5be56d1c5ed302df53f6dfbe19b9f4e3fd3ce Author: Thomas Gleixner AuthorDate: Tue, 4 Mar 2014 23:51:34 +0100 Committer: Thomas Gleixner CommitDate: Tue, 4 Mar 2014 23:53:33 +0100 x86: hyperv: Fix brown

[tip:irq/core] x86: hyperv: Make it build with CONFIG_HYPERV= m again

2014-03-04 Thread tip-bot for Thomas Gleixner
Commit-ID: 3c433679ab666fb76a9399679819a303989e8ead Gitweb: http://git.kernel.org/tip/3c433679ab666fb76a9399679819a303989e8ead Author: Thomas Gleixner AuthorDate: Tue, 4 Mar 2014 23:39:58 +0100 Committer: Thomas Gleixner CommitDate: Tue, 4 Mar 2014 23:41:44 +0100 x86: hyperv: Make it b

[PATCH net-next,v2] hyperv: Move state setting for link query

2014-03-04 Thread Haiyang Zhang
It moves the state setting for query into rndis_filter_receive_response(). All callbacks including query-complete and status-callback are synchronized by channel->inbound_lock. This prevents pentential race between them. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/netvsc_drv.c |4 +

[PATCH 00/06] staging: dgap: Digi International dgap driver

2014-03-04 Thread Mark Hounschell
patch 01 prevents removal of sysfs group we have failed to create patch 02 removes the now unnecessary dgap_global_lock patch 03 removes the now unused rawreadok insmod paramater and associated sysfiles and code used to show and store this paramater. It was previously used to

[PATCH 06/06] staging: dgap: fix a few 80+ char lines as reported by checkpatch

2014-03-04 Thread Mark Hounschell
This patch fixes a few of the many 80+ character lines as reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 260 +--- drivers/staging/dgap/dgap.h | 64 +-- 2 files changed, 179 insertio

[PATCH 03/06] staging: dgap: Remove module param and sysfs var rawreadok

2014-03-04 Thread Mark Hounschell
This patch removes the rawreadok module param and sysfs var previously used to enable flip buffer bypass. Code dealing with that param was removed previously. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 26 -- 1 file changed, 2

[PATCH 05/06] staging: dgap: fix suspect code indent for conditional statements checkpatch warning

2014-03-04 Thread Mark Hounschell
This patch fixes a checkpatch warning for suspect code indent for conditional statements Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drive

[PATCH 04/06] staging:dgap: fix checkpatch warning on sscanf usage

2014-03-04 Thread Mark Hounschell
This patch fixes a checkpatch warning for not checking the return value of sscanf. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.

[PATCH 02/06] staging: dgap: remove unnecessary dgap_global_lock

2014-03-04 Thread Mark Hounschell
dgap_global_lock is no longer required. This patch removes it. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 85f8

[PATCH 01/06] staging: dgap: Don't remove sysfs group we failed to create

2014-03-04 Thread Mark Hounschell
We should not remove a sysfs group we failed to create Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 5dfce34..85f85eb 10

[PATCH] staging: cxt1e1: Add extern keyword for sparse 'static' warning

2014-03-04 Thread Shaun Laing
Resolve sparse "warning: symbol '...' was not declared. Should it be static?" messages. Includes "comet_tables.h", which contains extern declarations for the variables defined in comet_tables.c. Signed-off-by: Shaun Laing --- drivers/staging/cxt1e1/comet_tables.c |1 + 1 file changed, 1 in

Re: [PATCH] staging: usbip: claim ports used by shared devices

2014-03-04 Thread Alan Stern
On Tue, 4 Mar 2014, Valentina Manea wrote: > diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c > index 90e18f6..a91dc1f 100644 > --- a/drivers/usb/core/devio.c > +++ b/drivers/usb/core/devio.c > @@ -62,23 +62,6 @@ > /* Mutual exclusion for removal, open, and release */ > DEFINE_MU

RE: [PATCH net-next] hyperv: Move state setting for link query

2014-03-04 Thread Haiyang Zhang
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, March 3, 2014 10:10 PM > To: Haiyang Zhang; da...@davemloft.net; net...@vger.kernel.org > Cc: KY Srinivasan; o...@aepfle.de; linux-ker...@vger.kernel.org; driverdev- > de...@linuxdriverproject.org > Subje

[PATCH] staging: usbip: userspace: add hwdata as optional dependency in README

2014-03-04 Thread Valentina Manea
This is an optional dependency since USB/IP can fully work without it. However, it is needed to display device information such as vendor. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/README | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/usbip/users

[PATCH] staging: usbip: userspace: don't throw error when trying to read configuration specific attributes

2014-03-04 Thread Valentina Manea
When a device has just been bound to usbip-host but the client hasn't set a configuration on it, certain attributes will not exist. Don't treat this as an error. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/libsrc/usbip_common.c | 17 +++-- 1 file changed, 15 in

[PATCH] staging: usbip: claim ports used by shared devices

2014-03-04 Thread Valentina Manea
Signed-off-by: Valentina Manea --- drivers/staging/usbip/stub_dev.c | 22 ++ drivers/usb/core/devio.c | 17 - drivers/usb/core/hub.c | 2 ++ drivers/usb/core/usb.h | 6 +- include/linux/usb.h | 23 +

[PATCH] staging: usbip: trigger driver probing after unbinding from usbip-host

2014-03-04 Thread Valentina Manea
A sysfs attribute is used to announce kernel space that a new driver probing session should be triggered for the just unbinded device. In order to have the address of struct device associated to this USB device, a new member has been added to struct bus_id_priv. Signed-off-by: Valentina Manea --

[PATCH] staging: usbip: let client choose device configuration

2014-03-04 Thread Valentina Manea
Since usbip-host is now a device driver and the client has full access to the shared device, it makes sense to let the client choose device configuration. Signed-off-by: Valentina Manea --- drivers/staging/usbip/stub_dev.c | 10 +- drivers/staging/usbip/stub_rx.c | 26 +++---

Re: [PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-04 Thread Greg KH
On Tue, Mar 04, 2014 at 09:16:39PM +0200, Valentina Manea wrote: > Signed-off-by: Valentina Manea > --- > drivers/staging/usbip/userspace/configure.ac | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/usbip/userspace/configure.ac > b/drivers/staging/usbip/

[PATCH] staging: usbip: userspace: increase version to 2.0

2014-03-04 Thread Valentina Manea
Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index 25bf160..607d05c 100644 --- a/drivers/staging/usbi

[PATCH 10/12] staging: usbip: userspace: migrate vhci_driver to libudev

2014-03-04 Thread Valentina Manea
This patch migrates vhci_driver to libudev. Signed-off-by: Valentina Manea --- .../staging/usbip/userspace/libsrc/usbip_common.h | 1 - .../staging/usbip/userspace/libsrc/vhci_driver.c | 154 ++--- .../staging/usbip/userspace/libsrc/vhci_driver.h | 5 +- 3 files changed,

[PATCH 06/12] staging: usbip: userspace: add new list API

2014-03-04 Thread Valentina Manea
Add a new list API from CCAN. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/libsrc/Makefile.am | 3 +- .../staging/usbip/userspace/libsrc/build_assert.h | 40 ++ .../staging/usbip/userspace/libsrc/check_type.h| 64 +++ .../staging/usbip/userspace/libsrc/container_of

[PATCH 03/12] staging: usbip: userspace: migrate usbip_unbind to libudev

2014-03-04 Thread Valentina Manea
This patch modifies usbip_unbind to use libudev. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_unbind.c | 92 +++--- 1 file changed, 29 insertions(+), 63 deletions(-) diff --git a/drivers/staging/usbip/userspace/src/usbip_unbind.c b/drivers/stagin

[PATCH 08/12] staging: usbip: userspace: migrate usbip_host_driver to libudev

2014-03-04 Thread Valentina Manea
This patch modifies usbip_host_driver to use libudev. Signed-off-by: Valentina Manea --- .../staging/usbip/userspace/libsrc/usbip_common.c | 74 ++ .../staging/usbip/userspace/libsrc/usbip_common.h | 5 +- .../usbip/userspace/libsrc/usbip_host_driver.c | 282 ++--- .

[PATCH 12/12] staging: usbip: userspace: update dependencies in README

2014-03-04 Thread Valentina Manea
Add libudev as dependency and remove libsysfs. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/usbip/userspace/README b/drivers/staging/usbip/userspace/README index 00a1658..6ead290

[PATCH 07/12] staging: usbip: userspace: move sysfs_utils to libsrc

2014-03-04 Thread Valentina Manea
Since it offers a API to both usbip tools and libusbip, it is more appropriate to be place in the library. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/libsrc/Makefile.am | 3 +- .../staging/usbip/userspace/libsrc/sysfs_utils.c | 36 ++ .../staging/us

[PATCH 09/12] staging: usbip: userspace: remove class device infrastructure in vhci_driver

2014-03-04 Thread Valentina Manea
The class device lists were used only when being initialized, being populated and being destroyed. They had no real meaning and thus the code was useless. Signed-off-by: Valentina Manea --- .../staging/usbip/userspace/libsrc/vhci_driver.c | 178 - .../staging/usbip/userspac

[PATCH 11/12] staging: usbip: userspace: remove libsysfs flag and autoconf check

2014-03-04 Thread Valentina Manea
libsysfs is now completely removed from USB/IP. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index a5193c6..25b

[PATCH 05/12] staging: usbip: userspace: re-add interface information listing

2014-03-04 Thread Valentina Manea
This was deleted in the driver conversion patch. It didn't need to be deleted; showing more information is ok. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_list.c | 20 +++- drivers/staging/usbip/userspace/src/usbipd.c | 16 +++- 2

[PATCH 02/12] staging: usbip: userspace: remove useless libsysfs includes

2014-03-04 Thread Valentina Manea
This patch removes useless libsysfs.h includes in various userspace files. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_attach.c | 1 - drivers/staging/usbip/userspace/src/usbip_detach.c | 2 -- drivers/staging/usbip/userspace/src/usbip_network.h | 1 - 3 files

[PATCH 04/12] staging: usbip: userspace: migrate usbip_list to libudev

2014-03-04 Thread Valentina Manea
This patch modifies usbip_list to use libudev. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/src/usbip_list.c | 137 +-- 1 file changed, 51 insertions(+), 86 deletions(-) diff --git a/drivers/staging/usbip/userspace/src/usbip_list.c b/drivers/staging/us

[PATCH 00/12] Migrate usbip-utils to libudev

2014-03-04 Thread Valentina Manea
This patch series modifies the USB/IP userspace side (usbip-utils) to use libudev instead of libsysfs. This change was necessary as libsysfs is no longer maintained and we have discovered a bug that affected USB/IP. On the other hand, libudev is actively maintained and recommended for interacting w

[PATCH 01/12] staging: usbip: userspace: migrate usbip_bind to libudev

2014-03-04 Thread Valentina Manea
This patch adds autoconf check for libudev and migrates usbip_bind to the new library. libsysfs will still be used until all userspace is modified. Signed-off-by: Valentina Manea --- drivers/staging/usbip/userspace/configure.ac | 6 + .../staging/usbip/userspace/libsrc/usbip_common.h |

[PATCH 19/67 v2] staging: comedi: pcl818: fix PCL818_FI_DATAHI

2014-03-04 Thread H Hartley Sweeten
The A/D FIFO uses two registers to get each analog data sample. PCL818_FI_DATALO is the LSB of the data and PCL818_FI_DATAHI is the MSB of the data. The current define for PCL818_FI_DATAHI is incorrect and results in the LSB getting read twice. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc:

[PATCH 37/67 v2] staging: comedi: pcl816: move pcl816_reset()

2014-03-04 Thread H Hartley Sweeten
For aesthetics, move this function to follow the pcl812 and pcl818 drivers better. Remove the commented out cut-and-paste code from the pcl818 driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 43 +++---

[PATCH 65/67 v2] staging: comedi: pcl818: tidy up the remaining register defines

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename the timer/counter enable request register and define its bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/

[PATCH 23/67 v2] staging: comedi: pcl818: reduce indent level in pcl818_ai_cancel()

2014-03-04 Thread H Hartley Sweeten
If an async command is not running the (*cancel) function doesn't do anything. Exit the function early if this is the case. This allows reducing the indent level in the rest of the function. Also, move the setting of the 'irq_was_now_closed' to the only place wher it actually gets left set to 1 a

[PATCH 15/67 v2] staging: comedi: pcl816: only hook up async command support if DMA is available

2014-03-04 Thread H Hartley Sweeten
This driver only supports async commands if a DMA channel is available. Modify the subdevice init so that the command support only gets hooked up if we can do DMA. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 2 +- 1 file

[PATCH 07/67 v2] staging: comedi: pcl812: factor out dma setup to helper functions

2014-03-04 Thread H Hartley Sweeten
To assist in cleaning up the the rest of the driver, factor the initial dma setup and the next dma buffer setup into helper functions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 170 ++-- 1 fi

[PATCH 06/67 v2] staging: comedi: pcl818: remove 'neverending_ai' from private data

2014-03-04 Thread H Hartley Sweeten
This member of the private data is not needed. We can check the stop_src to determine this information: neverending_ai -> cmd->stop_src == TRIG_NONE !neverending_ai -> cmd->stop_src == TRIG_COUNT Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/co

[PATCH 28/67 v2] staging: comedi: pcl818: exit interrupt quick when there is nothing to do

2014-03-04 Thread H Hartley Sweeten
If an async ai command is not running or the ai_mode is 0 the interrupt routine doesn't do anything other than spew some noise and clear the interrupt request in the hardware. Because this driver is manually attached, the "premature interrupt" check in the interrupt handler should never happen. Th

[PATCH 18/67 v2] staging: comedi: pcl818: factor out the common "next ai chan" code

2014-03-04 Thread H Hartley Sweeten
The DMA, FIFO, and EOC interrupt handlers all have common code that bumps the counters in the private data that keep track of what channel is being sampled next and when all the data has been sampled. Factor this common code into a helper function. Make sure the COMEDI_CB_BLOCK event is set when

[PATCH 41/67 v2] staging: comedi: pcl816: tidy up the analog input (*insn_read)

2014-03-04 Thread H Hartley Sweeten
For aesthetics, move this function out of the async command support code. For safety, the INT request (end-of-conversion flag) should be cleared before doing each conversion and after the final data sample is read. This driver does that but it's a bit awkward with the initial clear being outside t

[PATCH 16/67 v2] staging: comedi: pcl812: factor out the common "next ai chan" code

2014-03-04 Thread H Hartley Sweeten
The DMA and EOC interrupt handlers all have common code that bumps the counters in the private data that keep track of what channel is being sampled next and when all the data has been sampled. Factor this common code into a helper function. Don't clear the events in the driver. The comedi core w

[PATCH 64/67 v2] staging: comedi: pcl816: tidy up the remaining register defines

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename the clear INT request register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl816.c b/driv

[PATCH 54/67 v2] staging: comedi: pcl812: define the status register bits

2014-03-04 Thread H Hartley Sweeten
Define the bits in the status register. Writing any value to the status register clears any pending interrupt. For aesthetics, rename the status register and remove the "clrint" register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers

[PATCH 55/67 v2] staging: comedi: pcl812: cleanup setup_range_channel()

2014-03-04 Thread H Hartley Sweeten
Move this function to remove the need for the forward declaration. Rename it so it has namespace associated with the driver. Remove the unnecessary comedi_subdevice parameter from the function. The hardware does not support analog input channel scanning so the mux and range need to be set before e

[PATCH 42/67 v2] staging: comedi: pcl812: tidy up the analog input (*insn_read)

2014-03-04 Thread H Hartley Sweeten
For aesthetics, move this function out of the async command support code. For safety, the INT request (end-of-conversion flag) should be cleared before doing each conversion and after the final data sample is read. The driver currently does not do this. Refactor the function a bit so it's more li

[PATCH 51/67 v2] staging: comedi: pcl818: tidy up analog input registers

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename the analog input register defines and convert the offsets to hex. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/

[PATCH 67/67 v2] staging: comedi: pcl818: clarify pcl818_reset()

2014-03-04 Thread H Hartley Sweeten
Like done in the pcl812 driver, use the boardinfo to determine what should be reset. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff

[PATCH 60/67 v2] staging: comedi: pcl818: define the mode register bits

2014-03-04 Thread H Hartley Sweeten
Define the bits in the register to remove the magic values. Tidy up pcl818_ai_cancel(). The 0x73 mask of the value read from the control register will disable dma and interrupts but it does not change the trigger mode. So the software trigger following it might not work. Just disable the trigger

[PATCH 53/67 v2] staging: comedi: pcl816: define the status register bits

2014-03-04 Thread H Hartley Sweeten
Define the bits in the status register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl816.c b/driver

[PATCH 38/67 v2] staging: comedi: pcl812: tidy up the analog output subdevice

2014-03-04 Thread H Hartley Sweeten
For aesthetics, tidy up the analog output subdevice code. Change the regsiter map defines to simplify the code. Move the analog subdevice support functions out of the analog input support functions. Tidy them up a bit during the move. Add some whitespace to the subdevice init. Signed-off-by: H

[PATCH 58/67 v2] staging: comedi: pcl812: define the mode register bits

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename this register. Define the bits in the register to remove the magic values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deleti

[PATCH 34/67 v2] staging: comedi: pcl812: tidy up the digital subdevices

2014-03-04 Thread H Hartley Sweeten
For aesthetics, tidy up the digtial subdevice code. rename the register map defines for the digital input and output ports. Move the two digital subdevice (*insn_bits) functions out of the analog support functions. Tidy them up a bit during the move. Add some whitespace to the subdevice init. S

[PATCH 52/67 v2] staging: comedi: pcl818: define the status register bits

2014-03-04 Thread H Hartley Sweeten
Define the bits in the status register and remove the magic values. Writing any value to the status register clears any pending interrupt. For aesthetics, rename the status register and remove the "clrint" register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dr

[PATCH 61/67 v2] staging: comedi: pcl818: absorb pcl818_ai_mode13dma_int()

2014-03-04 Thread H Hartley Sweeten
Absorb this function into pcl818_ai_cmd_mode() and simplify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 53 ++--- 1 file changed, 16 insertions(+), 37 deletions(-) diff --git a/drive

[PATCH 39/67 v2] staging: comedi: pcl818: tidy up the analog output subdevice

2014-03-04 Thread H Hartley Sweeten
For aesthetics, tidy up the analog output subdevice code. Change the regsiter map defines to simplify the code. Move the analog subdevice support functions out of the analog input support functions. Tidy them up a bit during the move. Reverse the logic of the subdevice init and add some whitespa

[PATCH 49/67 v2] staging: comedi: pcl812: tidy up analog input registers

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename the analog input register defines and convert the offsets to hex. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/driver

[PATCH 47/67 v2] staging: comedi: pcl816: introduce pcl816_ai_soft_trig()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to start a software triggered analog input conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/staging/

[PATCH 66/67 v2] staging: comedi: pcl812: clarify pcl812_reset()

2014-03-04 Thread H Hartley Sweeten
Instead of using the 'board_type' and the switch, use the boardinfo to determine what should be reset. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 42 ++--- 1 file changed, 18 insertions(+), 24

[PATCH 63/67 v2] staging: comedi: pcl812: tidy up the remaining register defines

2014-03-04 Thread H Hartley Sweeten
The PCL812_CNTENABLE define is not used in this driver. Remove it. For aesthetics, rename the software trigger register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletion

[PATCH 48/67 v2] staging: comedi: pcl812: introduce pcl812_ai_soft_trig()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to start a software triggered analog input conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/com

[PATCH 31/67 v2] staging: comedi: pcl812: consolidate the common interrupt code

2014-03-04 Thread H Hartley Sweeten
The DMA and EOC interrupt handler functions, that are called by the _real_ interrupt function, always return IRQ_HANDLED. Change the return type for these functions to void and move the final return to the real interrupt function. Change the parameters to the handler functions to the comedi_device

[PATCH 35/67 v2] staging: comedi: pcl816: add support for digital subdevices

2014-03-04 Thread H Hartley Sweeten
The PCL-816 boards have 16 digital inputs and 16 digtial outputs. Add the subdevice support for these channels. Allocate additional subdevice space to the analog outputs. This code is not currently in the driver so mark the subdevice as COMEDI_SUBD_UNUSED. Signed-off-by: H Hartley Sweeten Cc: Ia

[PATCH 62/67 v2] staging: comedi: pcl818: cleanup ai_cmd()

2014-03-04 Thread H Hartley Sweeten
Rename this function so it has namespace associated with the driver. The cmd->scan_begin_src is always TRIG_FOLLOW and the only valid cmd->convert_src is TRIG_TIMER or TRIG_EXT so pcl818_ai_cmd_mode() is always called with a 'mode' of 1 or 3. The 'mode' actually indicates the trigger source. Abso

[PATCH 50/67 v2] staging: comedi: pcl816: tidy up analog input registers

2014-03-04 Thread H Hartley Sweeten
For aesthetics, rename the analog input register defines and convert the offsets to hex. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/

[PATCH 29/67 v2] staging: comedi: pcl816: remove 'int816_mode' from private data

2014-03-04 Thread H Hartley Sweeten
This member of the private data is not needed. Refactor the interrupt handler and the (*cancel) function to not use the 'int816_mode' and remove the setting of this member in the (*do_cmd) heler function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagi

[PATCH 46/67 v2] staging: comedi: pcl818: introduce pcl818_ai_soft_trig()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to start a software triggered analog input conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/staging/c

[PATCH 25/67 v2] staging: comedi: pcl818: fix (*cancel) when cmd->stop_src == TRIG_NONE

2014-03-04 Thread H Hartley Sweeten
When using DMA, the async command (*cancel) operation is delayed until the current DMA transfer is complete. When the DMA transfer finishes the interrupt routine detects this and calls the (*cancel) again which should then cancel the async command. The current logic does not work when cmd->stop_sr

[PATCH 45/67 v2] staging: comedi: pcl818: introduce pcl818_ai_clear_eoc()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to clear the end-of-conversion flag. This flag is set when an analog input conversion is finished and the hardware generates an interrupt request. Writing any value to the register resets the flag and re-enables the interrupt. Remove the clearing of the flag in pcl818_

[PATCH 59/67 v2] staging: comedi: pcl816: define the mode register bits

2014-03-04 Thread H Hartley Sweeten
Define the bits in the register to remove the magic values. Fix pcl816_ai_cancel(). The 0x73 mask of the value read from the control register will not stop the A/D as indicated by the comment. This would just clear the DS1, POE, and EXT bits which would only disable the external trigger. Setting t

[PATCH 56/67 v2] staging: comedi: pcl816: cleanup setup_channel_list()

2014-03-04 Thread H Hartley Sweeten
Move this function to remove the need for the forward declaration. Rename it so it has namespace associated with the driver. Remove the unnecessary comedi_subdevice parameter from the function. The hardware has per-channel programmable gain. This function first sets the range for each channel then

[PATCH 43/67 v2] staging: comedi: pcl812: introduce pcl812_ai_clear_eoc()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to clear the end-of-conversion flag. This flag is set when an analog input conversion is finished and the hardware generates an interrupt request. Writing any value to the register resets the flag and re-enables the interrupt. Remove a redundant call in pcl812_ai_cance

[PATCH 00/67 v2] staging: comedi: clenaup pcl812/816/818 drivers part 2

2014-03-04 Thread H Hartley Sweeten
This series continues the cleanup of the pcl812/816/818 drivers. v2: address some issues pointed out by Ian Abbott * remove interrupt only command support from the pcl816 driver * reorder FIFO read in the pcl816 driver H Hartley Sweeten (67): staging: comedi: pcl816: remove pcl816_check

[PATCH 44/67 v2] staging: comedi: pcl816: introduce pcl816_ai_clear_eoc()

2014-03-04 Thread H Hartley Sweeten
Introduce a helper function to clear the end-of-conversion flag. This flag is set when an analog input conversion is finished and the hardware generates an interrupt request. Writing any value to the register resets the flag and re-enables the interrupt. Move the call in pcl816_ai_cancel() so tha

[PATCH 57/67 v2] staging: comedi: pcl818: cleanup setup_channel_list()

2014-03-04 Thread H Hartley Sweeten
Move this function to remove the need for the forward declaration. Rename it so it has namespace associated with the driver. Remove the unnecessary comedi_subdevice parameter from the function. The hardware has per-channel programmable gain. This function first sets the range for each channel then

  1   2   >