[PATCH] staging: iio: accel: remove unneeded braces around single statements

2017-03-22 Thread Mark Stenglein
Fixes three checkpatch warnings due to braces used when single statements are sufficient. Signed-off-by: Mark Stenglein --- drivers/staging/iio/accel/adis16209.c | 3 +-- drivers/staging/iio/accel/adis16240.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH] staging: most: Adds parentheses around macros with complex values

2017-03-23 Thread Mark Stenglein
Fixes three instances of the following checklist error: - ERROR: Macros with complex values should be enclosed in parentheses Simply adds parentheses around the macros to fix the problem. Signed-off-by: Mark Stenglein --- drivers/staging/most/mostcore/core.c | 12 ++-- 1 file

Re: [PATCH v3] staging: greybus: Fix warning to limit chars per line

2018-04-06 Thread Mark Greer
n audio.h > + * (Android media layer) > + */ > enum { > GBAUDIO_DEVICE_NONE = 0x0, > /* reserved bits */ > -- > 1.9.1 Reviewed-by: Mark Greer ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 08/15] ASoC: pxa: remove the dmaengine compat need

2018-04-12 Thread Mark Brown
On Mon, Apr 02, 2018 at 04:26:49PM +0200, Robert Jarzmik wrote: > As the pxa architecture switched towards the dmaengine slave map, the > old compatibility mechanism to acquire the dma requestor line number and > priority are not needed anymore. Acked-by: Mark Brown If there's no

Re: [PATCH 0/8] arm: renesas: Change platform dependency to ARCH_RENESAS

2018-04-20 Thread Mark Brown
On Fri, Apr 20, 2018 at 03:28:26PM +0200, Geert Uytterhoeven wrote: > The first 6 patches can be applied independently by subsystem > maintainers. > The last two patches depend on the first 6 patches, and are thus marked > RFC. Would it not make sense to try to apply everything en masse rather th

Re: [PATCH] staging: greybus: fix spelling mistake: "Inavlid" -> "Invalid"

2018-05-22 Thread Mark Greer
, "Invalid kcontrol count=%d for %s\n", > w->ncontrols, w->name); > return ret; > } Acked-by: Mark Greer ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/5] arm64: mm: Add slow_virt_to_phys()

2018-06-20 Thread Mark Rutland
f or hypervisor page tables. > + */ > + touch = READ_ONCE(*(char *)input); > + dmb(sy); > + } > + > + /* Let the caller sort it out. */ > + return -1; AFAICT, callers of slow_virt_to_phys() don't check the

Re: [PATCH v4] dt-bindings: iio: accel: add binding documentation for ADIS16240

2019-12-03 Thread Mark Brown
On Sun, Dec 01, 2019 at 11:40:32AM +, Jonathan Cameron wrote: > +CC Mark as we probably need a more general view point on > the question of whether SPI mode should be enforced by binding > or in the driver. Not sure I see the question here, I think I was missing a bit of the con

Re: [PATCH v4] dt-bindings: iio: accel: add binding documentation for ADIS16240

2019-12-04 Thread Mark Brown
On Tue, Dec 03, 2019 at 04:51:54PM +, Jonathan Cameron wrote: > If the driver picks a mode because that's what it says on the datasheet > it prevents odd board configurations from working. The question > becomes whether it makes sense in general to assume those odd board > conditions don't ex

Re: [PATCH v4] dt-bindings: iio: accel: add binding documentation for ADIS16240

2019-12-04 Thread Mark Brown
On Wed, Dec 04, 2019 at 07:18:15AM +, Ardelean, Alexandru wrote: > One example (for spi-cpha): > if (of_property_read_u32(nc, "spi-cpha", &tmp) == 0) { > spi->mode |= SPI_CPHA_OVERRIDE; > if (tmp) > spi->mode |= SPI_CPHA; We could al

Re: [PATCH] docs: dt: fix several broken doc references

2020-02-24 Thread Mark Brown
aml renames; > - file renames (still on txt format); This seems like it should've been split up a bit. :/ Acked-by: Mark Brown signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org http://driver

Re: [PATCH] staging: iio: ad5933: rework probe to use devm_ function variants

2020-05-08 Thread Mark Brown
On Fri, May 08, 2020 at 01:43:07PM +0100, Jonathan Cameron wrote: > Dan Carpenter wrote: > > It feels like we should just make a devm_ version of regulator_enable(). > > Or potentially this is more complicated than it seems, but in that case > > probably adding devm_add_action_or_reset() is more

Re: [PATCH] greybus: audio: remove unused code

2020-05-13 Thread Mark Greer
ing again they can take a look at the git history. Thanks for this, Alexandre. Acked-by: Mark Greer ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] et131x: fix allocation failures

2014-02-07 Thread Mark Einon
br[1]) { > kfree(rx_ring->fbr[0]); > return -ENOMEM; > } > > The other changes seem good. Yes, I agree - if this function is going to clear up after itself, there are a few other allocations further down that also need to handle freeing already allocated resources,

Re: [PATCH RESEND 3/3] staging: et131x: fix make W=1 build warning

2014-02-07 Thread Mark Einon
On Fri, Feb 07, 2014 at 07:12:50PM +0800, Zhao, Gang wrote: > Mark, could you look at this patch? It has not been acked. Sure, in time, I'm making my way through them. Unfortunately kernel programming is not my day job, and gets done in my spare time (which is a bit limited at present).

Digi International dgap driver in staging

2014-02-11 Thread Mark Hounschell
ap_trace.patch 016-remove-kcompat_and_types.h.patch 017-rename-driver-to-dgap.patch Regards Mark ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH RFC 02/17] staging: dgap: Merge dgap_fep5.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_fep5.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-01-31 10:53

[PATCH RFC 03/17] staging: dgap: Remove userland downld.c source file

2014-02-12 Thread Mark Hounschell
Remove userland downld.c source file. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urN linux-3.13.1-orig/drivers/staging/dgap/downld.c linux-3.13.1-new/drivers/staging/dgap/downld.c --- linux-3.13.1-orig/drivers/staging/dgap/downld.c 2014-01-29 08:06:37.0 -0500

[PATCH RFC 04/17] staging: dgap: Add in kernel firmware loading support

2014-02-12 Thread Mark Hounschell
Add in kernel firmware loading support Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-03 13:34

[PATCH RFC 05/17] staging: dgap: remove user land dgap_downld.h

2014-02-12 Thread Mark Hounschell
Remove user land dgap_downld.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_downld.h linux-3.13.1-new/drivers/staging/dgap/dgap_downld.h --- linux-3.13.1-orig/drivers/staging/dgap/dgap_downld.h2014-01-29 08:06

[PATCH RFC 07/17] staging: dgap: Merge dgap_parse.h into dgap-driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_parse.h into dgap-driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-10 15:39

[PATCH RFC 08/17] staging: dgap: Merge dgap_conf.h into dgap-driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_conf.h into dgap-driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_conf.h linux-3.13.1-new/drivers/staging/dgap/dgap_conf.h --- linux-3.13.1-orig/drivers/staging/dgap/dgap_conf.h 2014-01-29 08:06:37.0

[PATCH RFC 09/17] staging: dgap: Merge digi.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
Merge digi.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.h linux-3.13.1-new/drivers/staging/dgap/dgap_driver.h --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.h2014-02-10 16:27

[PATCH RFC 10/17] staging: dgap: Merge dgap_pci.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_pci.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-10 16:27

[PATCH RFC 13/17] staging: dgap: Merge dgap_sysfs.c into dgap_driver.c

2014-02-12 Thread Mark Hounschell
Merge dgap_sysfs.c into dgap_driver.c Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-11 09:03

[PATCH RFC 14/17] staging: dgap: Merge dgap_sysfs.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_sysfs.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-11 09:13

[PATCH RFC 16/17] staging: dgap: Remove dgap_kcompat.h and_dgap_types.h

2014-02-12 Thread Mark Hounschell
Remove dgap_kcompat.h and_dgap_types.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-11 09:55

[PATCH RFC 12/17] staging: dgap: Merge dgap_tty.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
Merge dgap_tty.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-11 08:47

[PATCH RFC 15/17] staging: dgap: Remove dgap_trace.c and dgap_trace.h

2014-02-12 Thread Mark Hounschell
Remove dgap_trace.c and dgap_trace.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c --- linux-3.13.1-orig/drivers/staging/dgap/dgap_driver.c2014-02-11 09:33

Re: [PATCH RFC 02/17] staging: dgap: Merge dgap_fep5.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
On 02/12/2014 01:40 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 12, 2014 at 12:46:31PM -0500, Mark Hounschell wrote: >> Merge dgap_fep5.h into dgap_driver.h >> >> Signed-off-by: Mark Hounschell >> Cc: Greg Kroah-Hartman > > Same here, why merge these files? >

Re: [PATCH RFC 04/17] staging: dgap: Add in kernel firmware loading support

2014-02-12 Thread Mark Hounschell
On 02/12/2014 01:41 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 12, 2014 at 12:49:46PM -0500, Mark Hounschell wrote: >> Add in kernel firmware loading support >> >> Signed-off-by: Mark Hounschell >> Cc: Greg Kroah-Hartman > > You also do other things in this

Re: [PATCH RFC 01/17] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-12 Thread Mark Hounschell
7.0 -0500 >> +++ linux-3.13.1-new/drivers/staging/dgap/dgap_driver.c 2014-01-31 >> 10:22:53.675819451 -0500 > > Did you generate this with git? What happened to the diffstat? > No, I did not use git. I used what was suggeste

Re: [PATCH RFC 02/17] staging: dgap: Merge dgap_fep5.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
On 02/12/2014 02:15 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 12, 2014 at 02:00:01PM -0500, Mark Hounschell wrote: >> On 02/12/2014 01:40 PM, Greg Kroah-Hartman wrote: >>> On Wed, Feb 12, 2014 at 12:46:31PM -0500, Mark Hounschell wrote: >>>> Merge dgap_fep5.h into

[PATCH RFC 02/17 v2] staging: dgap: Merge dgap_fep5.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_fep5.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging

[PATCH RFC 03/17 v2] staging: dgap: Remove userland downld.c source file

2014-02-12 Thread Mark Hounschell
Remove userland downld.c source file. This file is not used by the kernel. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap/downld.c | 798 1 file changed, 798 deletions(-) diff -urN linux-3.13.1-orig/drivers/staging/dgap/downld.c

[PATCH RFC 04/17 v2] staging: dgap: Add in kernel firmware loading support

2014-02-12 Thread Mark Hounschell
Add in kernel firmware loading support Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap/dgap_driver.c | 635 --- drivers/staging/dgap/dgap_driver.h |6 2 files changed, 381 insertions(+), 260 deletions(-) diff -urN linux-3.13.1-orig

[PATCH RFC 05/17 v2] staging: dgap: remove user land dgap_downld.h

2014-02-12 Thread Mark Hounschell
Remove user land dgap_downld.h. This file is not used by the kernel. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap/dgap_downld.h | 69 --- 1 file changed, 69 deletions(-) diff -urpN linux-3.13.1-orig/drivers/staging/dgap/dgap_downld.h

[PATCH RFC 07/17 v2] staging: dgap: Merge dgap_parse.h into dgap-driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_parse.h into dgap-driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers

[PATCH RFC 08/17 v2] staging: dgap: Merge dgap_conf.h into dgap-driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_conf.h into dgap-driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman diff -urpN linux

[PATCH RFC 09/17 v2] staging: dgap: Merge digi.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge digi.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap

[PATCH RFC 10/17 v2] staging: dgap: Merge dgap_pci.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_pci.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging

[PATCH RFC 12/17 v2] staging: dgap: Merge dgap_tty.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_tty.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging

[PATCH RFC 13/17 v2] staging: dgap: Merge dgap_sysfs.c into dgap_driver.c

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_sysfs.c into dgap_driver.c Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers

[PATCH RFC 14/17 v2] staging: dgap: Merge dgap_sysfs.h into dgap_driver.h

2014-02-12 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Merge dgap_sysfs.h into dgap_driver.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers

[PATCH RFC 15/17 v2] staging: dgap: Remove dgap_trace.c and dgap_trace.h

2014-02-12 Thread Mark Hounschell
Remove dgap_trace.c and dgap_trace.h. These files are not required. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap/Makefile |4 drivers/staging/dgap/dgap_driver.c |5 drivers/staging/dgap/dgap_trace.c | 185 --- drivers

[PATCH RFC 16/17 v2] staging: dgap: Remove dgap_kcompat.h and_dgap_types.h

2014-02-12 Thread Mark Hounschell
Remove dgap_kcompat.h and_dgap_types.h. These files are only required for older 2.x.x kernels. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman drivers/staging/dgap/dgap_driver.c |2 drivers/staging/dgap/dgap_driver.h | 22 drivers/staging/dgap/dgap_kcompat.h | 64

Re: [PATCH RFC 01/17] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-12 Thread Mark Hounschell
I always pretend submitters > work for the US government to sabotage things and insert backdoors. I > want to verify that the patch does exactly what it says and nothing > more. > Understood. I just sent v2 of the series. I hope all is OK. Regards Mark ___

Re: [PATCH RFC 01/17 v2] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-14 Thread Mark Hounschell
On 02/14/2014 12:34 PM, Greg Kroah-Hartman wrote: > Minor nits for future patch submissions: > > On Wed, Feb 12, 2014 at 03:32:10PM -0500, Mark Hounschell wrote: >> There is a lot of cleanup work to do on these digi drivers and merging as >> much as is possible will make it

Re: [PATCH RFC 01/17 v2] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-14 Thread Mark Hounschell
On 02/14/2014 12:38 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 12, 2014 at 03:32:10PM -0500, Mark Hounschell wrote: >> There is a lot of cleanup work to do on these digi drivers and merging as >> much as is possible will make it easier. I also notice that many merged >> driv

Re: [PATCH RFC 01/17 v2] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-17 Thread Mark Hounschell
On 02/14/2014 01:18 PM, Greg Kroah-Hartman wrote: > On Fri, Feb 14, 2014 at 12:45:30PM -0500, Mark Hounschell wrote: >> On 02/14/2014 12:38 PM, Greg Kroah-Hartman wrote: >>> On Wed, Feb 12, 2014 at 03:32:10PM -0500, Mark Hounschell wrote: >>>> There is a lot of cl

Re: [PATCH RFC 01/17 v2] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-18 Thread Mark Hounschell
On 02/17/2014 05:50 PM, Greg Kroah-Hartman wrote: > On Mon, Feb 17, 2014 at 02:32:28PM -0500, Mark Hounschell wrote: >> On 02/14/2014 01:18 PM, Greg Kroah-Hartman wrote: >>> On Fri, Feb 14, 2014 at 12:45:30PM -0500, Mark Hounschell wrote: >>>> On 02/14/2014 12:3

Re: [PATCH RFC 01/17 v2] staging: dgap: Merge dgap_fep5.c into dgap_driver.c

2014-02-18 Thread Mark Hounschell
On 02/18/2014 08:14 AM, Dan Carpenter wrote: > On Tue, Feb 18, 2014 at 08:00:57AM -0500, Mark Hounschell wrote: >> That's odd. I just installed vanilla 3.14-rc3 yesterday from kernel.org. >> It boots up fine but does not appear to have the same dgap driver as >> staging-

[PATCH 12/19] Merge dgap_conf.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_conf.h | 289

[PATCH 14/19] Merge dgap_kcompat.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.h | 33

[PATCH V3 00/19] staging: dgap: Digi International dgap driver

2014-02-19 Thread Mark Hounschell
This patch series whittles down the drivers/staging/dgap directory to just 4 files (dgap_driver.c, dgap_driver.h, Makefile, and Kconfig). This was done because there is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that ma

[PATCH 09/19] Merge dgap_sysfs.h into dgap_driver.c

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 22

[PATCH 08/19] Merge dgap_tty.h into dgap_driver.c

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 9

[PATCH 17/19] Make merged and local functions and variables static

2014-02-19 Thread Mark Hounschell
This patch makes all merged and original functions static to dgap.c. Doing so has revealed more dead code via gcc warnings. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 159 + drivers/staging/dgap

[PATCH 13/19] Merge dgap_parse.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 12

[PATCH 16/19] Merge digi.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.h | 353

[PATCH 10/19] Merge dgap_fep5.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 1 - drivers

[PATCH 01/19] Remove CVS ID tags

2014-02-19 Thread Mark Hounschell
This patch removes all the original CVS tags because they are in my way Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_conf.h | 1 - drivers/staging/dgap/dgap_downld.h | 1 - drivers/staging/dgap/dgap_driver.c | 1 - drivers/staging/dgap/dgap_fep5.c | 1

[PATCH 02/19] Remove userland source code files

2014-02-19 Thread Mark Hounschell
This patch removes userland source code files downld.c and dgap_downld.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_downld.h | 68 drivers/staging/dgap/downld.c | 797 - 2 files changed, 865 deletions

[PATCH 15/19] Merge dgap_types.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 1 - drivers

[PATCH 07/19] Remove unneeded dgap_trace.c and dgap_trace.h

2014-02-19 Thread Mark Hounschell
Removes unneeded files dgap_trace.c and dgap_trace.h Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/Makefile | 3 +- drivers/staging/dgap/dgap_driver.c | 1 - drivers/staging/dgap/dgap_trace.c | 185 - drivers

[PATCH 05/19] Merge dgap_sysfs.c into dgap_driver.c

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/Makefile | 3

[PATCH 19/19] Add in-kernel firmware loading support

2014-02-19 Thread Mark Hounschell
This patch adds in-kernel firmware loading support and removes support for the original userland firmware loading process. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 540 +++- 1 file changed, 338 insertions

[PATCH 11/19] Merge dgap_pci.h into dgap_driver.h

2014-02-19 Thread Mark Hounschell
There is a lot of cleanup work to do on these digi drivers and merging as much as is possible will make it easier. I also notice that many merged drivers are single source and header. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap_driver.c | 1 - drivers

Re: [PATCH 19/19] Add in-kernel firmware loading support

2014-02-19 Thread Mark Hounschell
On 02/19/2014 03:17 PM, Dan Carpenter wrote: > This one has white space problems. Run scripts/checkpatch.pl on your > patches before sending. Comments below. > > On Wed, Feb 19, 2014 at 01:12:15PM -0500, Mark Hounschell wrote: >> +static int dgap_firmware_load(struct

[PATCH 19/19] [v4] Add in-kernel firmware loading support

2014-02-19 Thread Mark Hounschell
This patch adds in-kernel firmware loading support and removes support for the original userland firmware loading process. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 529 +++- 1 file changed, 327 insertions

Re: [PATCH 19/19] [v4] Add in-kernel firmware loading support

2014-02-20 Thread Mark Hounschell
On 02/20/2014 03:58 AM, Dan Carpenter wrote: > On Wed, Feb 19, 2014 at 04:54:15PM -0500, Mark Hounschell wrote: >> This patch adds in-kernel firmware loading support and removes >> support for the original userland firmware loading process. >> >> Signed-off-by: Mark Ho

[PATCH] [v5] Add in-kernel firmware loading support

2014-02-20 Thread Mark Hounschell
This patch adds in-kernel firmware loading support and removes support for the original userland firmware loading process. Signed-off-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 525 +++- 1 file changed, 323 insertions(+), 202 deletions(-) diff

[PATCH] [v5] Add in-kernel firmware loading support

2014-02-20 Thread Mark Hounschell
This patch adds in-kernel firmware loading support and removes support for the original userland firmware loading process. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 525 +++- 1 file changed, 323 insertions

Question about staging drivers

2014-02-21 Thread Mark Hounschell
When a kernel subsystem undergoes a global change such as the serial subsystem has been since 3.5 or so, if a driver is in staging, does it automatically get those changes if they are applicable to it? Thanks Mark ___ devel mailing list de

Re: [PATCH 18/19] staging: dgap: Rename driver

2014-02-25 Thread Mark Hounschell
On 02/24/2014 07:49 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 19, 2014 at 01:12:14PM -0500, Mark Hounschell wrote: >> Renames driver file dgap_driver.c and dgap_driver.h to >> dgap.c and dgap.h because we are now single source and >> include file and better fits kern

[RFC]: staging: dgap

2014-02-25 Thread Mark Hounschell
blem types such as returns, white space, 80 char limits, etc, by individual patches? Or would a one shot patch fixing all that checkpatch finds be OK? Thanks mark ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.o

[PATCH] staging: dgap: fix compile warnings by remove dead code

2014-02-25 Thread Mark Hounschell
The last patch series exposed some dead code causing compile warnings. This patch removes that dead code and fixes the warnings Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 145 1 file changed, 145

[PATCH RFC only] staging: dgap: fix OOPS on open of port

2014-02-25 Thread Mark Hounschell
hat this is proper. Thanks for reviewing. mark diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 7cb1ad5..d56b3b2 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -223,7 +223,7 @@ static void dgap_get_vpd(struct board_t *brd); static void dgap_do_

Re: [PATCH RFC only] staging: dgap: fix OOPS on open of port

2014-02-25 Thread Mark Hounschell
On 02/25/2014 11:48 AM, Greg KH wrote: On Tue, Feb 25, 2014 at 10:56:22AM -0500, Mark Hounschell wrote: When opening a port the dgap driver OOPs with a message: tty_init_dev: driver does not set tty->port... will crash the kernel... fix the driver... etc... Then I have to reboot the box.

Re: [PATCH RFC only] staging: dgap: fix OOPS on open of port

2014-02-25 Thread Mark Hounschell
On 02/25/2014 01:40 PM, Mark Hounschell wrote: +struct dgap_port { +struct tty_port port; +}; Do you really need a wrapping structure here? I may be incorrect, but I think so. I will investigate this further before I make a patch. It looks to me like this is how it should be done

[PATCH] staging: dgap: fix kernel oops on port open

2014-02-26 Thread Mark Hounschell
This patch addresses the follow error message followed by a kernel oops: dgap: driver does not set tty->port. This will crash the kernel later. Fix the driver It also renames the main function this patch addresses because its name is misleading. Signed-off-by: Mark Hounschell Cc: Greg Kr

Re: [PATCH] staging: dgap: fix kernel oops on port open

2014-02-26 Thread Mark Hounschell
On 02/26/2014 09:01 AM, Dan Carpenter wrote: On Wed, Feb 26, 2014 at 08:41:38AM -0500, Mark Hounschell wrote: -static void dgap_sysfs_create(struct board_t *brd) +static int dgap_tty_register_ports(struct board_t *brd) { struct channel_t *ch; - int j = 0; + int i

[PATCH v2] staging: dgap: fix kernel oops on port open

2014-02-26 Thread Mark Hounschell
This patch addresses the follow error message followed by a kernel oops: dgap: driver does not set tty->port. This will crash the kernel later. Fix the driver It also renames the main function this patch addresses because its name is misleading. Signed-off-by: Mark Hounschell Cc: Greg Kr

Re: [PATCH v2] staging: dgap: fix kernel oops on port open

2014-02-27 Thread Mark Hounschell
On 02/26/2014 10:30 AM, Dan Carpenter wrote: > On Wed, Feb 26, 2014 at 10:18:26AM -0500, Mark Hounschell wrote: >> This patch addresses the follow error message followed >> by a kernel oops: >> >> dgap: driver does not set tty->port. This will crash the kernel late

Re: [PATCH] staging: dgap: Fix format string mismatch in downld.c

2014-02-28 Thread Mark Hounschell
for a userland application used to load firmware into the boards. It is no longer in the repo and firmware loading is now done in kernel. Regards Mark ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] staging: dgap: fix kernel oops on port open

2014-02-28 Thread Mark Hounschell
{ ch->ch_flags &= ~CH_WLOW; Thanks Dan. I see what should be done. I like and can work on this. But is it OK to save all the 80 char problems until the end of this next series or more likely a separate patch all together? Since I'm trying to make i

[PATCH 05/08] staging: dgap: Fix include errs reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes all "include" related errors in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/st

[PATCH 08/08] staging: dgap: Fix white space errors as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes white space errors in dgap.c as reported by checkpatch. It also changes unnecessary mutliple empty lines with a single empty line Signed-off-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 314 1 file changed, 86 insertions

[PATCH 04/08] staging: dgap: Fix foo* bar should be foo *bar as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes "foo* bar should be foo *bar" errors in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drive

[PATCH 07/08] staging:dgap: Fix externs should be avoided in .c files as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes "externs should be avoided in .c files" in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dg

[PATCH 03/08] staging: dgap: Fix indent errs as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes all indent errs in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 148 +++- 1 file changed, 77 insertions(+), 71 deletions(-) diff --git a/drivers/staging/dgap

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

2014-02-28 Thread Mark Hounschell
This patch series begins the process of cleaning up dgap.c and dgap.h using the checkpath tool. One or more of these patches will show checkpatch errors that will be cleaned up in following patches -- 1.8.1.4 ___ devel mailing list de...@linuxdriverpro

[PATCH 02/08] staging:dgap: Fix all return statments in err as reported by checkpatch

2014-02-28 Thread Mark Hounschell
Fix all return staments in err as reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 672 ++-- 1 file changed, 336 insertions(+), 336 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b

[PATCH 06/08] staging: dgap: Fix bracing errors reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes bracing errors in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 338 1 file changed, 121 insertions(+), 217 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging

[PATCH 09/11] staging: dgap: fix do not use assignment in if condition as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes "do not use assignment in if condition" errors reported by checkpatch Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 75 ++--- 1 file changed, 50 insertions(+), 25 deletions(-) di

[PATCH 10/11] staging: dgap: Fix printk related errors as reported by checkpatch

2014-02-28 Thread Mark Hounschell
This patch fixes some printk related errors report by checkpatch. It also removes more Digi debug/trace code left behind from patch #1. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 38 +- 1 file changed, 5

[PATCH 11/11] staging: dgap: Fix various previously missed checkpatch errors

2014-02-28 Thread Mark Hounschell
This patch fixes various small checkpatch errors I missed in patches 01-10. Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging

Re: [PATCH 01/08] staging:dgap: remove digi debug and tracing code

2014-03-01 Thread Mark Hounschell
I don't want to review it more than once if I can avoid that. On Fri, Feb 28, 2014 at 12:42:08PM -0500, Mark Hounschell wrote: The original debug and tracing code is no longer required. This patch removes it Signed-off-by: Mark Hounschell Cc: Greg Kroah-Hartman --- - if ((tty

Re: [PATCH 02/08] staging:dgap: Fix all return statments in err as reported by checkpatch

2014-03-01 Thread Mark Hounschell
() is disgusting. From what I read in CodingStyle, I should replace it with the actual code because of the returns in it? The -EFAULT vs -EINVAL thing can be addressed later on once I understand the difference? Thanks Mark ___ devel mailing list de

Re: [PATCH 07/08] staging:dgap: Fix externs should be avoided in .c files as reported by checkpatch

2014-03-01 Thread Mark Hounschell
On 02/28/2014 05:59 PM, Greg KH wrote: On Fri, Feb 28, 2014 at 12:42:14PM -0500, Mark Hounschell wrote: This patch fixes "externs should be avoided in .c files" in dgap.c as reported by checkpatch Signed-off-by: Mark Hounschell --- drivers/staging/dgap/dgap.c | 8 1 fi

<    1   2   3   4   5   6   >