Re: [PATCH v3] staging: dgnc: Fix Kconfig help header and text

2018-10-01 Thread Mark Hounschell
On 10/1/18 12:49 PM, Lidza Louina wrote: On Mon, Oct 1, 2018 at 8:09 AM Mark Hounschell <mailto:ma...@compro.net>> wrote: On 9/28/18 3:59 PM, Lidza Louina wrote: > I haven't done work on this driver in a long time. I looked up the > devices, and they seem

Re: [PATCH v3] staging: dgnc: Fix Kconfig help header and text

2018-10-01 Thread Mark Hounschell
On 9/28/18 3:59 PM, Lidza Louina wrote: I haven't done work on this driver in a long time. I looked up the devices, and they seem to already have an existing Linux driver: https://www.digi.com/products/usb-and-serial-connectivity/serial-cards/digineo and

[PATCH] staging: dgap: Remove myself from the MAINTAINERS file

2015-09-15 Thread Mark Hounschell
. They will not respond to an inquiry concerning it or its firmware. Signed-off-by: Mark Hounschell <ma...@compro.net> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Ben Hutchings <b...@decadent.org.uk> --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAI

Re: [PATCH] staging: dgap: Remove myself from the MAINTAINERS file

2015-09-15 Thread Mark Hounschell
On 09/15/2015 09:05 AM, Greg Kroah-Hartman wrote: On Tue, Sep 15, 2015 at 08:56:10AM -0400, Mark Hounschell wrote: Removes myself from the MAINTAINERS file for the dgap driver. There appears to be no way to get the firmware files required by the dgap driver into the linux-firmware tree

Re: [PATCH v2] dgnc: Don't save boards in memory that have failed to initialize

2015-03-16 Thread Mark Hounschell
On 03/15/2015 08:07 AM, Mark Hounschell wrote: On 03/14/2015 04:44 AM, Greg KH wrote: On Fri, Mar 13, 2015 at 04:55:55PM -0400, Mark Hounschell wrote: On 03/12/2015 12:14 PM, Giedrius Statkevičius wrote: On 2015.03.12 12:08, Greg KH wrote: On Mon, Mar 09, 2015 at 06:29:38PM +0200, Giedrius

Re: [PATCH v2] dgnc: Don't save boards in memory that have failed to initialize

2015-03-15 Thread Mark Hounschell
On 03/14/2015 04:44 AM, Greg KH wrote: On Fri, Mar 13, 2015 at 04:55:55PM -0400, Mark Hounschell wrote: On 03/12/2015 12:14 PM, Giedrius Statkevičius wrote: On 2015.03.12 12:08, Greg KH wrote: On Mon, Mar 09, 2015 at 06:29:38PM +0200, Giedrius Statkevičius wrote: Remove BOARD_FAILED

Re: [PATCH v2] dgnc: Don't save boards in memory that have failed to initialize

2015-03-13 Thread Mark Hounschell
On 03/12/2015 12:14 PM, Giedrius Statkevičius wrote: On 2015.03.12 12:08, Greg KH wrote: On Mon, Mar 09, 2015 at 06:29:38PM +0200, Giedrius Statkevičius wrote: Remove BOARD_FAILED and don't save dgnc_boards which failed to initialize. Assign the result of kzalloc() to brd in

Re: [PATCH v2] Staging: dgnc: Fix long line coding style issues in dgnc_cls.h

2014-12-04 Thread Mark Hounschell
On 12/03/2014 06:37 PM, Joe Perches wrote: On Wed, 2014-12-03 at 21:30 +, Sean Cleator wrote: A patch to fix the rest of the long line warnings in the dgnc_cls.h file found by the checkpatch.pl tool checkpatch is a brainless little tool. You should prefer to develop a readable style

Re: [PATCH RESEND] staging: dgap: re-arrange functions for removing forward declarations

2014-10-29 Thread Mark Hounschell
On 10/29/2014 05:22 AM, Greg KH wrote: On Sun, Oct 26, 2014 at 11:08:54AM +0900, Daeseok Youn wrote: Re-arrange the functions for removing forward declarations. Tested-by: Mark Hounschell ma...@compro.net Signed-off-by: Daeseok Youn daeseok.y...@gmail.com --- RESEND: This patch is tested all

Re: linux-3.18-rc1 bug report

2014-10-21 Thread Mark Hounschell
On 10/21/2014 07:33 AM, David Binderman wrote: Hello there, 1. [linux-3.18-rc1/drivers/staging/dgap/dgap.c:6692]: (warning) Logical disjunction always evaluates to true: conc_type != 65 || conc_type != 66. Source code is if (conc_type == 0 || conc_type != CX ||

Re: [PATCH] staging: dgap: re-arrange functions for removing forward declarations.

2014-10-21 Thread Mark Hounschell
On 10/14/2014 08:01 AM, Mark Hounschell wrote: On 10/13/2014 10:04 PM, Greg KH wrote: On Mon, Oct 13, 2014 at 07:56:38AM -0700, Joe Perches wrote: On Mon, 2014-10-13 at 17:01 +0900, DaeSeok Youn wrote: Hi, 2014-10-13 12:25 GMT+09:00 Greg KH gre...@linuxfoundation.org: On Mon, Oct 13, 2014

Re: [PATCH] staging: dgap: re-arrange functions for removing forward declarations.

2014-10-14 Thread Mark Hounschell
On 10/13/2014 10:04 PM, Greg KH wrote: On Mon, Oct 13, 2014 at 07:56:38AM -0700, Joe Perches wrote: On Mon, 2014-10-13 at 17:01 +0900, DaeSeok Youn wrote: Hi, 2014-10-13 12:25 GMT+09:00 Greg KH gre...@linuxfoundation.org: On Mon, Oct 13, 2014 at 11:34:25AM +0900, Daeseok Youn wrote:

Re: [PATCH V2] staging: dgap: introduce dgap_cleanup_nodes()

2014-08-04 Thread Mark Hounschell
On 07/31/2014 07:14 PM, DaeSeok Youn wrote: Hi, Mark 2014-07-31 21:44 GMT+09:00 Mark Hounschell ma...@compro.net: On 07/31/2014 12:02 AM, Daeseok Youn wrote: When a configration file is parsed with dgap_parsefile(), makes nodes for saving configrations for board. Making a node will allocate

Re: [PATCH V2] staging: dgap: introduce dgap_cleanup_nodes()

2014-07-31 Thread Mark Hounschell
On 07/31/2014 12:02 AM, Daeseok Youn wrote: When a configration file is parsed with dgap_parsefile(), makes nodes for saving configrations for board. Making a node will allocate node memory and strings for saving configrations with kstrdup(). So these are freed when dgap is unloaded or failed

Re: [PATCH 6/8 V2] staging: dgap: remove unneeded dgap_err()

2014-07-17 Thread Mark Hounschell
On 07/16/2014 08:42 PM, DaeSeok Youn wrote: 2014-07-16 23:17 GMT+09:00 Mark Hounschell ma...@compro.net: On 07/16/2014 05:26 AM, DaeSeok Youn wrote: 2014-07-16 8:50 GMT+09:00 Greg KH gre...@linuxfoundation.org: On Wed, Jul 16, 2014 at 08:21:30AM +0900, DaeSeok Youn wrote: Hi, 2014-07-16

Re: [PATCH] staging: dgap: introduce dgap_cleanup_nodes()

2014-07-17 Thread Mark Hounschell
On 07/16/2014 09:35 PM, Daeseok Youn wrote: When a configration file is parsed with dgap_parsefile(), makes nodes for saving configrations for board. Making a node will allocate node memory and strings for saving configrations with kstrdup(). So these are freed when dgap is unloaded or

Re: [PATCH 7/8 RESEND] staging: dgap: introduce dgap_cleanup_nodes()

2014-07-16 Thread Mark Hounschell
On 07/15/2014 11:30 AM, Greg KH wrote: On Tue, Jul 15, 2014 at 06:14:25PM +0900, Daeseok Youn wrote: When a configration file is parsed with dgap_parsefile(), makes nodes for saving configrations for board. configuration files should not be parsed in the kernel at all. That logic should be

Re: [PATCH 6/8 V2] staging: dgap: remove unneeded dgap_err()

2014-07-16 Thread Mark Hounschell
On 07/16/2014 05:26 AM, DaeSeok Youn wrote: 2014-07-16 8:50 GMT+09:00 Greg KH gre...@linuxfoundation.org: On Wed, Jul 16, 2014 at 08:21:30AM +0900, DaeSeok Youn wrote: Hi, 2014-07-16 0:29 GMT+09:00 Greg KH gre...@linuxfoundation.org: On Tue, Jul 15, 2014 at 06:11:44PM +0900, Daeseok Youn

staging: dgap:

2014-07-01 Thread Mark Hounschell
Hi Dan, I've been away for a while but should be able to find some time to work on the dgap driver some more. Do you have a TODO list? Thanks Mark ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH V2] staging: dgap: implement proper error handling in dgap_firmware_load()

2014-05-28 Thread Mark Hounschell
On 05/28/2014 06:11 AM, Dan Carpenter wrote: On Wed, May 28, 2014 at 06:29:38PM +0900, DaeSeok Youn wrote: In your patch it has: + dgap_tty_uninit(brd, false); But it should only be false if dgap_tty_init() failed. If dgap_tty_register_ports() fails then it should be true. Another

[PATCH] staging: dgap: misc cleanup of NULL conditionals

2014-05-28 Thread Mark Hounschell
refactors NULL conditionals Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 64 ++--- 1 file changed, 32 insertions(+), 32

[PATCH] staging: dgap: Simplify dgap_find_config

2014-05-28 Thread Mark Hounschell
Simplify ugly dgap_find_config function Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 84 +++-- 1 file changed, 43 insertions

[PATCH] staging: dgap: Use EIO instead of ENXIO

2014-05-28 Thread Mark Hounschell
Replaces ENXIO with EIO errno Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 44 ++-- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/staging/dgap

[PATCH] staging: dgap: Remove more extra white space and tabs

2014-05-23 Thread Mark Hounschell
Removes more extra white space and tabs Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 178 +--- 1 file changed, 86 insertions(+), 92 deletions(-) diff --git a/drivers

[PATCH] staging: dgap: Replace double negative conditionals

2014-05-23 Thread Mark Hounschell
This patch replaces double negativeconditionals Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff

[PATCH] staging: dgap: Simplify get_altpin and get_useintr functions

2014-05-23 Thread Mark Hounschell
Simplify dgap_config_get_useintr and dgap_config_get_altpin changing the case statement to an if statement. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 10

[PATCH] staging: dgap: Change GFP_ATOMICs to GFP_KERNEL

2014-05-23 Thread Mark Hounschell
We don't need to use GFP_ATOMIC at driver load time so use GFP_KERNEL instead. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 8 1 file changed, 4 insertions

Re: staging: dgap: Question about declaring variables

2014-05-22 Thread Mark Hounschell
On 05/22/2014 04:38 PM, Dan Carpenter wrote: On Thu, May 22, 2014 at 01:49:22PM -0400, Mark Hounschell wrote: I understand that unnecessarily initializing them is wrong. But if they do need initialized, is it preferred to do it in the declaration or in the code before it is used? Which ever

[PATCH] staging: dgap: fix smatch warn: missing break in case

2014-05-21 Thread Mark Hounschell
This patch fixes an smatch warning about a missing break in a case statement. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 6 ++ 1 file changed, 2 insertions

[PATCH] staging: dgap: fix smatch warn: unsigned var is never less than zero

2014-05-21 Thread Mark Hounschell
This patch fixes a smatch warning about an unsigned integer being tested for less than zero. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.h | 2 +- 1 file changed, 1

[PATCH] staging: dgap: Remove dead sniff buffer code

2014-05-21 Thread Mark Hounschell
The sniff buffer was a /proc filesystem file. This module no longer uses /proc. This patch removes the deaed code associated with the sniff buffer. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net

[PATCH] staging: dgap: Remove erroneous comment

2014-05-21 Thread Mark Hounschell
This patch removes a false comment Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index b3ad3ac..6816cf7

[PATCH] staging: dgap: Remove unnecessary test on count

2014-05-21 Thread Mark Hounschell
This patch removes an unnecessary test. We've already tested it by the time we get here with no possiblity of it being changed. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap

Re: [PATCH] staging: dgap: fix smatch warn: missing break in case

2014-05-21 Thread Mark Hounschell
On 05/21/2014 03:59 PM, Dan Carpenter wrote: On Wed, May 21, 2014 at 01:03:09PM -0400, Mark Hounschell wrote: This patch fixes an smatch warning about a missing break in a case statement. I would prefer if we leave the code as-is and fix Smatch. The fix will be to read the previous line

[PATCH] staging: dgap: replace dgap_savestring function with kstrdup

2014-05-21 Thread Mark Hounschell
Removes dgap_savestring function to use kstrdup instead. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 44 +++- 1 file changed

Re: staging: dgap/dgnc maintainers list

2014-05-16 Thread Mark Hounschell
On 05/15/2014 06:49 PM, Dan Carpenter wrote: On Fri, May 16, 2014 at 12:27:01AM +0200, Christian Engelmayer wrote: Hi, As I got a bit queued up for dgap, I just noticed that commit 542f3d5a states to add Mark to the maintainers list for dgap, while the patch addresses the dgnc entry. Was

Re: staging: dgap/dgnc maintainers list

2014-05-16 Thread Mark Hounschell
On 05/16/2014 07:52 AM, Mark Hounschell wrote: On 05/15/2014 06:49 PM, Dan Carpenter wrote: On Fri, May 16, 2014 at 12:27:01AM +0200, Christian Engelmayer wrote: Hi, As I got a bit queued up for dgap, I just noticed that commit 542f3d5a states to add Mark to the maintainers list for dgap

[PATCH] staging: dgap: Add Mark Hounschell to maintainers list for dgap

2014-05-16 Thread Mark Hounschell
Add Mark Hounschell to the MAINTAINERs list for the dgap driver Signed-off-by: Mark Hounschell ma...@compro.net Suggested-by: Dan Carpenter dan.carpen...@oracle.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b

When is it proper to resend patches?

2014-05-12 Thread Mark Hounschell
I have some patches submitted almost 3 weeks ago that I have not received any email responses to. When should I think about resubmitting them? Or should I just be more patient? Thanks Mark ___ devel mailing list de...@linuxdriverproject.org

[PATCH] staging: dgap: back out a previous change causing a new sparse warning

2014-04-25 Thread Mark Hounschell
This patch just backs out a change in a previous patch that generated a new sparse warning. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] staging: dgap: back out a previous change causing a new sparse warning

2014-04-25 Thread Mark Hounschell
On 04/25/2014 09:44 AM, Dan Carpenter wrote: On Fri, Apr 25, 2014 at 09:38:48AM -0400, Mark Hounschell wrote: This patch just backs out a change in a previous patch that generated a new sparse warning. Could you redo the previous change instead? Or has it already been applied? I have

[PATCH v2] staging: dgap: fix a few more sparse warnings

2014-04-25 Thread Mark Hounschell
This patch fixes a few more sparse warnings related to __iomem version 2 excludes a change that actually caused a new sparse warning. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 37

Re: [PATCH] staging: dgap: implement error handling in dgap_tty_register()

2014-04-25 Thread Mark Hounschell
On 04/25/2014 08:59 AM, Dan Carpenter wrote: On Fri, Apr 25, 2014 at 08:29:41AM -0400, Mark Hounschell wrote: On 04/25/2014 07:02 AM, DaeSeok Youn wrote: Hi, Dan. 2014-04-25 18:26 GMT+09:00 Dan Carpenter dan.carpen...@oracle.com: Mark, maybe you should add yourself to the MAINTAINERS entry

[PATCH 02/03] staging: dgap: remove two unnecessary conditionals

2014-04-25 Thread Mark Hounschell
Remove 2 unnessessary conditionals. They are always false in this code path. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 32 ++-- 1 file changed, 14 insertions(+), 18 deletions

[PATCH 01/03] staging: dgap: check unchecked return values

2014-04-25 Thread Mark Hounschell
Check the return values of dgap_tty_register and dgap_finalize_board_init. If they fail for a particular board we should not be able to try to use that board. IE. no device entries shall be created for that board. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre

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

2014-04-25 Thread Mark Hounschell
patch 1: check return values of dgap_tty_register and dgap_finalize_board_init patch 2: removes 2 unnecessary conditionals patch 3: only allow driver to configure MAXBOARDS (32) -- 1.8.1.4 ___ devel mailing list de...@linuxdriverproject.org

[PATCH] staging: dgap: refactor ugly dgap_init_one function

2014-04-25 Thread Mark Hounschell
This patch just cleans up the ugly dgap_init_one function Signed-off-by: Mark Hounschell ma...@compro.net Suggested-by: Dan Carpenter dan.carpen...@oracle.com Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.c | 19 --- 1 file changed, 8 insertions(+), 11

[PATCH] staging: dgap: Add Mark Hounschell to maintainers list for dgap

2014-04-25 Thread Mark Hounschell
Add Mark Hounschell to the MAINTAINERs list for the dgap driver Signed-off-by: Mark Hounschell ma...@compro.net Suggested-by: Dan Carpenter dan.carpen...@oracle.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b

[RFC] staging: dgap: sparse warning question

2014-04-25 Thread Mark Hounschell
I get the sparse warning: drivers/staging/dgap/dgap.c:367:25: warning: too long initializer-string for array of char It's referring to INIT_C_CC in the following code segment. static struct ktermios DgapDefaultTermios = { .c_iflag = (DEFAULT_IFLAGS), /* iflags */

[PATCH] staging: dgap: Get rid of CamelCase

2014-04-25 Thread Mark Hounschell
This patch gets rid of the obvious CamelCases from both dgap.c and dgap.h Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Suggested-by: Dan Carpenter dan.carpen...@oracle.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap

[PATCH] staging: dgap: fix a few more sparse warnings

2014-04-24 Thread Mark Hounschell
This patch fixes a few more sparse warnings related to __iomem Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 37 +++-- 1 file changed

[PATCH] [v3] fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] [v3] fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
Oops, ignore this. I got the subject wrong. resending... Mark On 04/24/2014 10:31 AM, Mark Hounschell wrote: This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman

[PATCH] staging: dgap: fix sparse warning about dgap_poll_lock

2014-04-24 Thread Mark Hounschell
This patch fixes a sparse warning: warning: symbol 'dgap_poll_lock' was not declared. Should it be static? Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] staging: dgap: fix sparse warnings Using plain integer as NULL pointer

2014-04-24 Thread Mark Hounschell
This patch fixes sparse warnings: warning: Using plain integer as NULL pointer Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 32 1 file changed, 16 insertions(+), 16 deletions

[PATCH 01/02] staging: dgap: Fix how we insure config data is a string

2014-04-23 Thread Mark Hounschell
This patch changes the way we insure the config data is a string. Clearly this was just wrong. After a certain number of loads/unloads various OOPs were generated indicating something other than this driver had a problem. It was this driver. Signed-off-by: Mark Hounschell ma...@compro.net Tested

[PATCH 02/02] staging: dgap: Fix BUG in processing config file

2014-04-23 Thread Mark Hounschell
This patch fixes an OOPS caused by a pointer being changed between the malloc and free. Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Reported-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

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

2014-04-23 Thread Mark Hounschell
This patch series fixes 2 different BUGS that didn't reveal themselves until the 3.15 series started. patch 1 fixes how we insure the config data is a string. The original code is clearly just wrong. After many loads/unloads of the driver, various OOPs would occure. None of which indicated this

[PATCH] staging: dgap: fix sparse warnings for re_map_membase and re_map_port

2014-04-23 Thread Mark Hounschell
This patch fixes sparse warnings for the re_map_membase and re_map_port variables. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 24 drivers/staging/dgap/dgap.h | 4 ++-- 2 files

[PATCH] staging: dgap: fix sparse warnings for the entire bs_t structure

2014-04-23 Thread Mark Hounschell
This patch fixes sparse warnings for the entire bs_t structure This entire structure defines a hardware segment Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 22

[PATCH] staging: dgap: fix sparse warnings for the entire cm_t structure

2014-04-23 Thread Mark Hounschell
This patch fixes sparse warnings for the entire cm_t structure This entire structure defines a hardware segment Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 8

Staging: dgap: RFC

2014-04-17 Thread Mark Hounschell
The latest staging tree based on 3.15-rc1 has revealed a bug that I introduced into the dgap driver way back. Various oops occur when loading and unloading the driver multiple times in succession. The oops never actually indicate anything dgap driver related. When I send a patch to fix the

Re: [PATCH 02/06] staging: dgap: Only read config file dgap.conf once

2014-04-15 Thread Mark Hounschell
On 04/15/2014 06:01 AM, Dan Carpenter wrote: On Mon, Apr 14, 2014 at 03:17:19PM -0400, Mark Hounschell wrote: On 04/14/2014 11:49 AM, Greg Kroah-Hartman wrote: On Tue, Mar 25, 2014 at 04:38:14PM -0400, Mark Hounschell wrote: The config file is currently read for each board found. It only

Re: [PATCH] staging: dgap: change all uchar to u8

2014-04-14 Thread Mark Hounschell
On 04/14/2014 12:00 PM, Greg Kroah-Hartman wrote: On Thu, Apr 03, 2014 at 08:57:56AM -0400, Mark Hounschell wrote: This patch removes the uchar define in dgap.h and changes all uses of uchar to u8. Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net

Re: [PATCH 02/06] staging: dgap: Only read config file dgap.conf once

2014-04-14 Thread Mark Hounschell
On 04/14/2014 11:49 AM, Greg Kroah-Hartman wrote: On Tue, Mar 25, 2014 at 04:38:14PM -0400, Mark Hounschell wrote: The config file is currently read for each board found. It only needs to be read one time. The buffer it is read into can now be freed immediately after it is parsed instead

[PATCH] staging: dgap: remove uchar typedef and replace use with u8

2014-04-14 Thread Mark Hounschell
This patch removes the uchar typedef in dgap.h and changes all uses of it to u8. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 100 ++-- drivers/staging/dgap/dgap.h | 65

Re: [PATCH 03/03] staging: dgap: remove more unneeded brd-state states

2014-03-28 Thread Mark Hounschell
On 03/28/2014 07:34 AM, Dan Carpenter wrote: These patches are fine and they were applied already. On Wed, Mar 12, 2014 at 12:50:55PM -0400, Mark Hounschell wrote: @@ -4368,15 +4364,16 @@ static void dgap_do_bios_load(struct board_t *brd, uchar __user *ubios, int len) /* * Checks

Re: [PATCH 03/03] staging: dgap: remove more unneeded brd-state states

2014-03-28 Thread Mark Hounschell
On 03/28/2014 09:08 AM, Mark Hounschell wrote: On 03/28/2014 07:34 AM, Dan Carpenter wrote: These patches are fine and they were applied already. On Wed, Mar 12, 2014 at 12:50:55PM -0400, Mark Hounschell wrote: @@ -4368,15 +4364,16 @@ static void dgap_do_bios_load(struct board_t *brd, uchar

[PATCH 04/06] staging: dgap: remove volatiles from dgap.h

2014-03-25 Thread Mark Hounschell
This patch fixes checkpatch warnings about using volatiles in dgap.h Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Tested-by: Mark Hounschell ma...@compro.net --- drivers/staging/dgap/dgap.h | 152 ++-- 1

[PATCH 06/06] staging: dgap: fix checkpatch warning about adding typedefs

2014-03-25 Thread Mark Hounschell
This patch fixes a checkpatch warning about adding typedefs in dgap.h Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.h

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

2014-03-25 Thread Mark Hounschell
patch 1: remove some extra empty lines not previously caught. patch 2: the firmware loading provess loads the config file for each board found. It only needs to load it once. patch 3: fixes a checkpatch warning about a macro needing parenthesis patch 4: removes volatiles from dgap.h as

[PATCH 03/06] staging: dgap: Macros with complex values should be enclosed in parenthesis

2014-03-25 Thread Mark Hounschell
This patch fixes a checkpatch warning Macros with complex values should be enclosed in parenthesis Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 01/06] staging: dgap: Removes excessive empty lines from dgap.h

2014-03-25 Thread Mark Hounschell
This patch removes excessive empty lines from dgap.h not previously caught. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.h | 26 -- 1 file changed, 26 deletions(-) diff --git a/drivers

[PATCH 05/06] staging: dgap: fix/change a pr_info

2014-03-25 Thread Mark Hounschell
This patch just fixes a pr_info. brd-state is not proper at this point in time. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 02/06] staging: dgap: Only read config file dgap.conf once

2014-03-25 Thread Mark Hounschell
The config file is currently read for each board found. It only needs to be read one time. The buffer it is read into can now be freed immediately after it is parsed instead of at driver unload time. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

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

2014-03-21 Thread Mark Hounschell
patch 1 removes some unused code in dgap.c patch 2 removes some unneeded comments in dgap.c patch 3 fixes some whitespace warnings by checkpatch in dgap.h patch 4 fixes several 80+ char lines in dgap.h. Note that many of these 80+ char lines are lines using volatile which also

[PATCH 01/xx] staging: dgap: re-factor some code for 80+ lines as reported by checkpatch

2014-03-19 Thread Mark Hounschell
Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 107 +++- 1 file changed, 35 insertions(+), 72 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b

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

2014-03-19 Thread Mark Hounschell
patch 1 re-factors some code to fix warnings by checkpatch about 80+ char lines. This patch was suggested by Dan Carpenter. A test case for this patch has been written and used and used to show the patch to be correct. patch 2 gets rid of the DGAP_LOCK and DGAP_UNLOCK macros patch 3 re-factors

[PATCH 02/xx] staging: dgap: get rid of DGAP_LOCK and DGAP_UNLOCK macros

2014-03-19 Thread Mark Hounschell
This patch replaces the DGAP_LOCK and DGAP_UNLOCK macros with spin_lock_irqsave spin_unlock_irqrestore. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 442 ++-- drivers

[PATCH 03/03] staging: dgap: re-factor some more code for 80+ lines

2014-03-19 Thread Mark Hounschell
This patch fixes more 80+ char lines as reported by checkpatch Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 40 +--- 1 file

[PATCH] staging: dgap: fix the rest of the checkpatch warnings in dgap.c

2014-03-19 Thread Mark Hounschell
This patch fixes all the simple_strtol and simple_strtoul warnings as reported by checkpatch. After this patch, checkpatch will report zero errors or warnings on dgap.c. Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre

Re: [PATCH RFC] staging: dgap: more 80+ char lines work

2014-03-17 Thread Mark Hounschell
On 03/07/2014 05:46 PM, Dan Carpenter wrote: I still prefer my patch. Unless I'm missing something? Could you review it and I will submit it as a patch tomorrow. regards, dan carpenter diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index d00283a226a2..783cd75a2d96

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

2014-03-12 Thread Mark Hounschell
patches 1-3 remove most of the unneeded state machine tracking code and variables previously used in the old firmware loading process. patch 4 adds back in a pr_info that provided information on each board found and configured. This got removed in a previous patch that removed the debug and

[PATCH 01/03] staging: dgap: remove unneeded dgap_driver_states

2014-03-12 Thread Mark Hounschell
The only driver states we need now is READY or !READY. No need for a sysfs method of seeing those 2 states so the sysfs entries for dgap_driver_state is also removed. Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre

[PATCH 03/03] staging: dgap: remove more unneeded brd-state states

2014-03-12 Thread Mark Hounschell
This patch removes more unneeded brd-state states Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 35 +-- drivers/staging/dgap/dgap.h

[PATCH 02/03] staging: dgap: remove unused brd-state states

2014-03-12 Thread Mark Hounschell
This patch removes unused brd-state states previously used in the userland firmware download process. Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 5 - drivers

[PATCH 04/04] staging: dgap: Add a pr_info per board info

2014-03-12 Thread Mark Hounschell
This patch adds a pr_info per board that indicates board number, type, etc.. Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/dgap/dgap.c b

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

2014-03-11 Thread Mark Hounschell
Patch 1 - removes some unused defines in dgap.h Patch 2 - removes some unneeded code supporting the old firmware loading process. -- 1.8.1.4 ___ devel mailing list de...@linuxdriverproject.org

[PATCH 02/02] staging: dgap: Remove unneeded code from dgap.c

2014-03-11 Thread Mark Hounschell
This patch removes more unneeded code that was supporting the old firmware loading process Signed-off-by: Mark Hounschell ma...@compro.net Tested-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 149

[PATCH 01/02] staging: dgap: remove some unused defines in dgap.h

2014-03-11 Thread Mark Hounschell
This patch removes some unused defines in dgap.h Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.h | 53 ++--- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git

[PATCH 03/04] staging: dgap: Remove unused DGAP_TRYLOCK macro

2014-03-11 Thread Mark Hounschell
This patch removes the unused DGAP_TRYLOCK macro Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index

[PATCH 04/04] staging: dgap: Replace/remove DGAP_SPINLOCK_INIT macro

2014-03-11 Thread Mark Hounschell
This patch gets rid of the DGAP_SPINLOCK_INIT macro Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 4 ++-- drivers/staging/dgap/dgap.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH RFC] staging: dgap: more 80+ char lines work

2014-03-10 Thread Mark Hounschell
On 03/08/2014 04:59 AM, Mark Hounschell wrote: On 03/07/2014 05:46 PM, Dan Carpenter wrote: I still prefer my patch. Unless I'm missing something? Could you review it and I will submit it as a patch tomorrow. I've reviewed it and see no obvious problems. If you like it better, I'm OK

[PATCH] staging: dgap: fix a few 80+ char lines

2014-03-10 Thread Mark Hounschell
This patch fixes a few 80+ char lines as reported by checkpatch Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 55 - 1 file changed, 30 insertions(+), 25 deletions

[PATCH 02/02] staging: dgap: fix a few more 80+ char lines (02/02)

2014-03-10 Thread Mark Hounschell
This patch fixes a few more 80+ char lines as reported by checkpatch Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git

[PATCH 01/02] staging: dgap: fix a few more 80+ char lines (01/02)

2014-03-10 Thread Mark Hounschell
This patch fixes a few more 80+ char lines as reported by checkpatch Signed-off-by: Mark Hounschell ma...@compro.net Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/dgap/dgap.c | 162 ++-- 1 file changed, 113 insertions(+), 49

Re: [PATCH RFC] staging: dgap: more 80+ char lines work

2014-03-08 Thread Mark Hounschell
On 03/07/2014 05:46 PM, Dan Carpenter wrote: I still prefer my patch. Unless I'm missing something? Could you review it and I will submit it as a patch tomorrow. regards, dan carpenter diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index d00283a226a2..783cd75a2d96

[PATCH RFC] staging: dgap: more 80+ char lines work

2014-03-07 Thread Mark Hounschell
This is just for comments. The indentation was alread so far over 80 chars I (as recommended earlier) make a couple of new functions. Somehow I don't think this is proper and there is probably a better way to do this. This is untested. Signed-off-by: Mark Hounschell ma...@compro.net --- drivers

Re: [PATCH] staging: dgap: remove useless cast on kzalloc()

2014-03-06 Thread Mark Hounschell
On 03/06/2014 01:17 AM, Daeseok Youn wrote: coccinelle warning: drivers/staging/dgap/dgap.c:782:3-7: WARNING: casting value returned by k[cmz]alloc to (char *) is useless. drivers/staging/dgap/dgap.c:776:2-16: WARNING: casting value returned by k[cmz]alloc to (struct board_t *) is useless.

Re: [PATCH 01/03] staging: dgap: fix a few more 80+ lines as reported by checkpatch

2014-03-06 Thread Mark Hounschell
On 03/05/2014 04:39 PM, Dan Carpenter wrote: Btw, if you don't get any messages from me that means I have given your patch the stamp of approval. So good job on your previous patchset. :) On Wed, Mar 05, 2014 at 03:54:49PM -0500, Mark Hounschell wrote: @@ -1613,7 +1616,8 @@ static void

  1   2   3   >