[PATCH v3 3/7] staging: unisys: cleanup rc -1 in create_visor_device()

2016-02-23 Thread Benjamin Romer
Get rid of the rc = -1 initialization. Return a meaningful error on failure in the function, or, the rc from a called function if it fails. Signed-off-by: Benjamin Romer --- v2: Put the goto back in. v3: sent the wrong version of the patch by mistake. --- drivers/staging/unisys/visorbus

[PATCH v2 3/7] staging: unisys: cleanup goto in create_visor_device()

2016-02-23 Thread Benjamin Romer
Get rid of the rc = -1 initialization. Return a meaningful error on failure in the function, or, the rc from a called function if it fails. Signed-off-by: Benjamin Romer --- v2: Put the goto back in. --- drivers/staging/unisys/visorbus/visorbus_main.c | 10 ++ 1 file changed, 6

[PATCH 5/7] staging: unisys: remove pointless init of rc in chipset_device_create()

2016-02-23 Thread Benjamin Romer
The value of rc is set by calling a function, so there's no need to initialize it to -1, or anything at all. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/vis

[PATCH 3/7] staging: unisys: cleanup goto in create_visor_device()

2016-02-23 Thread Benjamin Romer
Get rid of the rc = -1 initialization, and remove the goto mess entirely. Return a meaningful error on failure in the function, or the rc from a called function if it fails. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 18 -- 1 file changed

[PATCH 1/7] staging: unisys: fix return value for visorbus pci probe

2016-02-23 Thread Benjamin Romer
Instead of returning -1, return -ENODEV when there is no probe function found for the device. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b

[PATCH 7/7] staging: unisys: return meaningful error for visorchipset_init()

2016-02-23 Thread Benjamin Romer
The other error paths return meaningful error codes, except for the one when registering a device, which just returned -1. Let's return ENODEV when it fails to register instead. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 file changed, 1 inse

[PATCH 0/7] staging: unisys: goto/rc = -1 cleanup series

2016-02-23 Thread Benjamin Romer
This series cleans up all the places where rc = -1 was being done, either as initialization, or to return an error value. In some places, it can just be removed, but other places it was better to cleaning up goto statements and eliminate the -1 at the same time. Benjamin Romer (7): staging

[PATCH 2/7] staging: unisys: remove goto in get_vbus_header_info

2016-02-23 Thread Benjamin Romer
Remove the rc, the = -1, and all the goto mess here and just return directly with a meaningful error number. The caller only cares about success/failure right now, that needs to be addressed in a later patch series. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus

[PATCH 6/7] staging: unisys: clean up initiate_chipset_device_pause_resume()

2016-02-23 Thread Benjamin Romer
: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 42 + 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 2d3ed4e..e170e0a 100644 --- a

[PATCH 4/7] staging: unisys: get rid of goto in create_bus_instance()

2016-02-23 Thread Benjamin Romer
Remove the unnecessary rc and goto messiness, and just handle freeing the memory before returning an error in the one place where that needs to happen. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 16 1 file changed, 4 insertions(+), 12

[PATCH v3 11/14] staging: unisys: fix block comments in ultrainputreport.h

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased

[PATCH v3 14/14] staging: unisys: remove unnecessary goto

2016-02-08 Thread Benjamin Romer
parser_param_start() had a goto Away, which went to nothing but a return statement. Remove the goto, the CamelCased label, and just return directly. Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visorbus/visorchipset.c | 6

[PATCH v3 02/14] staging: unisys: fix comments for controlvmchannel.h

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch simply fixes all trailing */ by modifying the comments structures while trying to reduce the total number of lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys

[PATCH v3 06/14] staging: unisys: fix spacing in visorchipset.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following checkpatch warning: spaces preferred around that ‘*’ or ‘|’ Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: address Sudip's comment about a change being made to a NULL comparison

[PATCH v3 09/14] staging: unisys: fix spaces after cast visorchipset.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes checkpatch's no space is necessary after a cast Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visorbus/visorchipset.c | 6 +++--- 1 file chang

[PATCH v3 07/14] staging: unisys: fix comparison to NULL in visorchipset.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following type of check patch warnings: Comparison to NULL could be written Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: address a comment from Sudip about a change to a NULL comparison that was

[PATCH v3 03/14] staging: unisys: Fix NULL comparison vbusdeviceinfo.h

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patches resolves the NULL comparison checkpatch warnings Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 4 ++-- 1 file changed, 2

[PATCH v3 05/14] staging: unisys: fix comments in visorchipset

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes all the Block comments by using a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visorbus/visorchipset.c | 16

[PATCH v3 10/14] staging: unisys: fix comments in visorbus_main.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use a trailing */ on a separate line Comment alignments Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased

[PATCH v3 12/14] staging: unisys: fix comments in visornic_main.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the

[PATCH v3 13/14] staging: unisys: fix else statement in visornic_main.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: else is not generally useful after a break or return Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visornic

[PATCH v3 04/14] staging: unisys: fix trailing comment in vbusdeviceinfo.h

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson Fixes checkpatch trailing */ comment in vbusdeviceinfo.h Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 3 ++- 1 file changed, 2 insertions

[PATCH v3 01/14] staging: unisys: Fix guestlinuxdebug.h comments

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson This patch simply cleans up all checkpatch comment issues Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers/staging/unisys/include/guestlinuxdebug.h | 13 +++-- 1 file changed, 7

[PATCH v3 08/14] staging: unisys: fix blank lines in visorchipset.c

2016-02-08 Thread Benjamin Romer
From: Erik Arfvidson this patch removes the following checkpatch warnings: please use a blank line after … Please don’t use multiple blank lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- v2: the patch was rebased. v3: the patch was rebased. --- drivers

[PATCH v3 00/14] staging: unisys: cleanup series

2016-02-08 Thread Benjamin Romer
acceptable as is. - Two patches were modified to move a fix to a NULL comparison into the correct patch. Benjamin Romer (1): staging: unisys: remove unnecessary goto Erik Arfvidson (13): staging: unisys: Fix guestlinuxdebug.h comments staging: unisys: fix comments for controlvmchannel.h

[PATCH 02/16] staging: unisys: fix comments for controlvmchannel.h

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch simply fixes all trailing */ by modifying the comments structures while trying to reduce the total number of lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/controlvmchannel.h | 237 +++-- 1

[PATCH 16/16] staging: unisys: fix parenthesis in toolaction_show()

2016-01-29 Thread Benjamin Romer
Fix the only fixable parenthesis alignment issue in visorchipset.c. The rest are unworkable because of the length of the symbol names used. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 11/16] staging: unisys: fix block comments in ultrainputreport.h

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- .../staging/unisys/visorinput/ultrainputreport.h

[PATCH 13/16] staging: unisys: fix else statement in visornic_main.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: else is not generally useful after a break or return Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 05/16] staging: unisys: fix comments in visorchipset

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes all the Block comments by using a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH 08/16] staging: unisys: fix blank lines in visorchipset.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson this patch removes the following checkpatch warnings: please use a blank line after … Please don’t use multiple blank lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 3 +-- 1 file

[PATCH 09/16] staging: unisys: fix spaces after cast visorchipset.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes checkpatch's no space is necessary after a cast Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/st

[PATCH 03/16] staging: unisys: Fix NULL comparison vbusdeviceinfo.h

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patches resolves the NULL comparison checkpatch warnings Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 04/16] staging: unisys: fix trailing comment in vbusdeviceinfo.h

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson Fixes checkpatch trailing */ comment in vbusdeviceinfo.h Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus

[PATCH 14/16] staging: unisys: fix alignment in visornic_main.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Alignment should match open parenthesis Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 07/16] staging: unisys: fix comparison to NULL in visorchipset.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following type of check patch warnings: Comparison to NULL could be written Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH 10/16] staging: unisys: fix comments in visorbus_main.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use a trailing */ on a separate line Comment alignments Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 6

[PATCH 06/16] staging: unisys: fix spacing in visorchipset.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following checkpatch warning: spaces preferred around that ‘*’ or ‘|’ Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[PATCH 15/16] staging: unisys: remove unnecessary goto

2016-01-29 Thread Benjamin Romer
parser_param_start() had a goto Away, which went to nothing but a return statement. Remove the goto, the CamelCased label, and just return directly. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH 00/16] staging: unisys: cleanup series

2016-01-29 Thread Benjamin Romer
This patch series cleans up all the remaining issues reported by checkpatch.pl that can be fixed. The series was rebased against the current contents of staging-next. Benjamin Romer (2): staging: unisys: remove unnecessary goto staging: unisys: fix parenthesis in toolaction_show() Erik

[PATCH 12/16] staging: unisys: fix comments in visornic_main.c

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic

[PATCH 01/16] staging: unisys: Fix guestlinuxdebug.h comments

2016-01-29 Thread Benjamin Romer
From: Erik Arfvidson This patch simply cleans up all checkpatch comment issues Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/guestlinuxdebug.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH] staging: unisys: Only process up to budget amount of responses

2016-01-15 Thread Benjamin Romer
From: David Kershner >From napi documentation you should only process the amount your budget allows, if you go over it just wait for the next napi poll to continue. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c |

[PATCH] staging: unisys: fix parenthesis in toolaction_show()

2015-12-07 Thread Benjamin Romer
Fix the only fixable parenthesis alignment issue in visorchipset.c. The rest are unworkable because of the length of the symbol names used. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] staging: unisys: remove unnecessary goto

2015-12-07 Thread Benjamin Romer
parser_param_start() had a goto Away, which went to nothing but a return statement. Remove the goto, the CamelCased label, and just return directly. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH 12/15] staging: unisys: fix comments in visornic_main.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic

[PATCH 14/15] staging: unisys: fix alignment in visornic_main.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Alignment should match open parenthesis Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 10/15] staging: unisys: fix comments in visorbus_main.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use a trailing */ on a separate line Comment alignments Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 6

[PATCH 13/15] staging: unisys: fix else statement in visornic_main.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: else is not generally useful after a break or return Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 05/15] staging: unisys: fix comments in visorchipset

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes all the Block comments by using a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH 15/15] staging: unisys: fix blank line in visornic_main.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following type of check patch warning: Blank lines aren't necessary before a close brace '}' Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 1 - 1 file changed, 1 de

[PATCH 06/15] staging: unisys: fix spacing in visorchipset.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following checkpatch warning: spaces preferred around that ‘*’ or ‘|’ Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[PATCH 01/15] staging: unisys: Fix guestlinuxdebug.h comments

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch simply cleans up all checkpatch comment issues Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/guestlinuxdebug.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH 00/15] staging: unisys: checkpatch cleanup series

2015-11-30 Thread Benjamin Romer
This set of patches cleans up all remaining checkpatch formatting warnings in the Unisys driver series. Erik Arfvidson (15): staging: unisys: Fix guestlinuxdebug.h comments staging: unisys: fix comments for controlvmchannel.h staging: unisys: Fix NULL comparison vbusdeviceinfo.h staging: u

[PATCH 08/15] staging: unisys: fix blank lines in visorchipset.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson this patch removes the following checkpatch warnings: please use a blank line after … Please don’t use multiple blank lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 3 +-- 1 file

[PATCH 09/15] staging: unisys: fix spaces after cast visorchipset.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes checkpatch's no space is necessary after a cast Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/st

[PATCH 04/15] staging: unisys: fix trailing comment in vbusdeviceinfo.h

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson Fixes checkpatch trailing */ comment in vbusdeviceinfo.h Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus

[PATCH 07/15] staging: unisys: fix comparison to NULL in visorchipset.c

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following type of check patch warnings: Comparison to NULL could be written Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchipset.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH 11/15] staging: unisys: fix block comments in ultrainputreport.h

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- .../staging/unisys/visorinput/ultrainputreport.h

[PATCH 02/15] staging: unisys: fix comments for controlvmchannel.h

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patch simply fixes all trailing */ by modifying the comments structures while trying to reduce the total number of lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/controlvmchannel.h | 237 +++-- 1

[PATCH 03/15] staging: unisys: Fix NULL comparison vbusdeviceinfo.h

2015-11-30 Thread Benjamin Romer
From: Erik Arfvidson This patches resolves the NULL comparison checkpatch warnings Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vbusdeviceinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys

[PATCH] staging: unisys: better config switch comments

2015-11-24 Thread Benjamin Romer
We should provide more information in the Kconfig help for visorbus and visorinput. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/Kconfig | 7 ++- drivers/staging/unisys/visorinput/Kconfig | 7 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a

[PATCH 14/14] staging: unisys: fix ultrainputreport.h block comment warnings

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the following types of check patch warnings: Block comments use * on subsequent lines Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- .../staging/unisys/visorinput/ultrainputreport.h

[PATCH 12/14] staging: unisys: controlvmcompletionstatus.h fix block comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the checkpatch warning messages in controlvmcompletionstatus.h. All the warning messages in this file are caused by "Block comments use atrailing */ on a separate line" Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- .../unisy

[PATCH 13/14] staging: unisys: fix vbuschannel.h comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson Fixes trailling */ from vbuschannel.h and alignment issue on the same comment block Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vbuschannel.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a

[PATCH 05/14] staging: unisys: visorbus.h fix block comment

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This fixes last checkpatch warning: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/visorbus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 07/14] staging: unisys: Fix guestlinuxdebug.h comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch simply cleans up all checkpatch warnings and fixes styling Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/guestlinuxdebug.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a

[PATCH 03/14] staging: unisys: iochannel fix spacing around operators

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes check warning from checkpatch.pl in the macro definition CHECK: spaces preferred around that '+' (ctx:VxV) Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/iochannel.h | 3 ++- 1 file changed, 2

[PATCH 00/14] staging: unisys: checkpatch cleanup series

2015-11-17 Thread Benjamin Romer
This series takes care of checkpatch.pl issues found recently, as the current version now inspects comment formatting. In addition, some spacing and alignment issues are corrected. Erik Arfvidson (14): staging: unisys: iochannel fix block comments staging: unisys: iochannel.h remove redundant

[PATCH 10/14] staging: unisys: Fix channel.h Block comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes all the checkpatch.pl block commments that use a trailing */ in channel.h Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/channel.h | 114 ++- 1 file changed, 67 insertions(+), 47

[PATCH 06/14] staging: unisys: vbushelper.h fix Block comment

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes last checkpatch warning for vbushelper.h WARNING: Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/vbushelper.h | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 04/14] staging: unisys: iochannel fix trailing */

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson Fixed last warning message from checkpatch.pl by removing the wordiness of the comment Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/iochannel.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 08/14] staging: unisys: Fix visorchannel.c block comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes the last checkpatch warning about: Block comments use a trailing */ on a separate line Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorchannel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 02/14] staging: unisys: iochannel.h remove redundant comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson iochannel cleanup redudant comments in function declarations. Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/iochannel.h | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/staging

[PATCH 11/14] staging: unisys: Fix periodic_work.c parenthesis alignment

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes checkpatch.pl message: CHECK: Alignment should match open parenthesis Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/periodic_work.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff

[PATCH 09/14] staging: unisys: Fix vmcallerinterface.h block comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes all the checkpatch Block comments use a trailing */ while keeping comments clean. Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/vmcallinterface.h | 34 ++- 1 file changed, 15

[PATCH 01/14] staging: unisys: iochannel fix block comments

2015-11-17 Thread Benjamin Romer
From: Erik Arfvidson This patch fixes warning messages from checkpatch.pl specifically: WARNING: Block comments use a trailing */ on a separate lines Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/iochannel.h | 137

[PATCH 11/14] staging: unisys: Don't go into POLLING mode in visornic_probe.

2015-11-17 Thread Benjamin Romer
From: David Kershner Since visorbus now supports s-Par interrupts it will handle the polling/interrupt mode for us. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH 12/14] staging: unisys: Don't set polling mode in visorhba_probe

2015-11-17 Thread Benjamin Romer
From: David Kershner Visorbus handles interrupt states for the drivers now, don't need to handle it in the driver. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorhba/visorhba_main.c | 14 -- 1 file changed, 14 deletions(-) diff

[PATCH 09/14] staging: unisys: Re-enable interrupts after we have done the work

2015-11-17 Thread Benjamin Romer
processing its queue. Visorinput, visorhba, and visornic were all updated to call the new function. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/visorbus.h | 2 ++ drivers/staging/unisys/visorbus/visorbus_main.c | 9 +++-- drivers

[PATCH 14/14] staging: unisys: Allow for unregistering of interrupts.

2015-11-17 Thread Benjamin Romer
-by: Benjamin Romer --- drivers/staging/unisys/include/visorbus.h | 2 + drivers/staging/unisys/visorbus/visorbus_main.c | 65 ++--- 2 files changed, 59 insertions(+), 8 deletions(-) diff --git a/drivers/staging/unisys/include/visorbus.h b/drivers/staging/unisys

[PATCH 10/14] staging: unisys: Capture data from device create to register interrupt.

2015-11-17 Thread Benjamin Romer
Sell Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/visorbus.h | 5 + drivers/staging/unisys/visorbus/visorbus_main.c | 118 ++-- drivers/staging/unisys/visorbus/visorchannel.c | 1 + drivers/staging/unisys/visorbus/visorchipset.c | 17

[PATCH 07/14] staging: unisys: Add support to update Features bits in channel queues

2015-11-17 Thread Benjamin Romer
From: David Kershner Add support to visorbus to update the features in the channel queues. Signal queues features is the memory location to disable/enable signal queue interrupts. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/visorbus.h

[PATCH 13/14] staging: unisys: Remove semaphores around channel interrupts.

2015-11-17 Thread Benjamin Romer
From: David Kershner We can remove the semaphore from around the interrupt callback in dev_periodic_work(). Signed-off-by: David Kershner Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH 02/14] staging: unisys: set client state

2015-11-17 Thread Benjamin Romer
From: David Kershner Every channel has an s-Par channel state associated with it. This patch correctly sets of the channels. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 32 - 1 file changed, 31

[PATCH 04/14] staging: unisys: Convert visornic to use visorbus channel interrupt code

2015-11-17 Thread Benjamin Romer
From: David Kershner Instead of having our own timer to set off a interrupt, use the shared code from visorbus. When visorbus gets s-Par interrupts working we will automatically get support from it. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys

[PATCH 05/14] staging: unisys: visorinput: use spinlock for channel_interrupt() locking

2015-11-17 Thread Benjamin Romer
sing it in visorinput_channel_interrupt(). Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorinput/visorinput.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/staging/unisys/visorinput/visorinput.c b/drive

[PATCH 00/14] staging: unisys: add channel interrupt support

2015-11-17 Thread Benjamin Romer
This patch series adds a centralized infrastructure and device support for channel interrupts sent to s-Par virtual devices. With these changes, the visorhba device is ~80% faster than with only polling, and visornic receives a speedup of over 3500% (from ~9Mb/s to between 360Mb/s and 390Mb/s). Da

[PATCH 03/14] staging: unisys: visorhba: Convert visorhba to use visorbus channel interrupts.

2015-11-17 Thread Benjamin Romer
Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorhba/visorhba_main.c | 114 +++- 1 file changed, 52 insertions(+), 62 deletions(-) diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys/visorhba/visorhba_

[PATCH 01/14] staging: unisys: Change poll rate to 2 ms for work

2015-11-17 Thread Benjamin Romer
From: David Kershner Use ms_to_jiffies for the periodic work queue instead of raw jiffies. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH 06/14] staging: unisys: Only process up to budget amount of responses

2015-11-17 Thread Benjamin Romer
From: David Kershner >From napi documentation you should only process the amount your budget allows, if you go over it just wait for the next napi poll to continue. Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visornic/visornic_main.c

[PATCH 08/14] staging: unisys: Add channel feature access functions

2015-11-17 Thread Benjamin Romer
From: David Kershner Need access functions to set channel polling Signed-off-by: David Kershner Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorbus/visorbus_main.c | 55 + 1 file changed, 55 insertions(+) diff --git a/drivers/staging/unisys/visorbus

[PATCH v2 4/7] staging: unisys: visorinput: respond to resolution changes on-the-fly

2015-11-16 Thread Benjamin Romer
to use a workqueue to do it asynchronously. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/visorinput.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/drivers/staging/unisys/visor

[PATCH v2 0/7] staging: unisys: visorinput fixes and enhancements

2015-11-16 Thread Benjamin Romer
This patch series fixes visorinput to remove the dependency on FB and add dependency to INPUT, cleans up some formatting issues found with checkpatch.pl, and adds the capability to change screen resolutions without breaking mouse functionality. This is a resubmission of the series. Tim Sell (7):

[PATCH v2 7/7] staging: unisys: visorinput: add INPUT to dependent driver list

2015-11-16 Thread Benjamin Romer
From: Tim Sell This was an obvious omission, as visorinput is an input-class driver. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v2 3/7] staging: unisys: visorinput: ensure proper locking wrt creation & ints

2015-11-16 Thread Benjamin Romer
()), after which we may quickly find ourselves in visorinput_open(), where we enable interrupts, and hence may call visorinput_channel_interrupt(). Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/visorinput.c | 12

[PATCH v2 2/7] staging: unisys: visorinput: remove need for 'depends on FB'

2015-11-16 Thread Benjamin Romer
implementations, mouse.x_resolution and mouse.y_resolution are always just initialized to 0 by the back-end, and only 1024x768 is supported, but coding it this way will allow other resolutions to work in the future. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was

[PATCH v2 6/7] staging: unisys: visorinput: add useful dev_dbg() and dev_info() messages

2015-11-16 Thread Benjamin Romer
From: Tim Sell The dev_info() messages at init time are particularly useful for mapping visor devices to input devices. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/visorinput.c | 11 +++ 1 file

[PATCH v2 1/7] staging: unisys: visorinput: use kref ref-counting for device data struct

2015-11-16 Thread Benjamin Romer
From: Tim Sell This is NOT technically required for the code as it stands now, but will be needed for subsequent patches. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: resources are released in the reverse order they were acquired, as per Dan Carpenter's co

[PATCH v2 5/7] staging: unisys: visorinput: sanity check resolution changes

2015-11-16 Thread Benjamin Romer
From: Tim Sell This commit sanity checks so that if a change resolution request is ever received for a non-mouse device, that an error message will be logged and the message will be ignored. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers

  1   2   3   4   5   6   7   8   9   10   >