[GIT PULL] Staging driver update for 4.7-rc1

2016-05-20 Thread Greg KH
The following changes since commit 44549e8f5eea4e0a41b487b63e616cb089922b99: Linux 4.6-rc7 (2016-05-08 14:38:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.7-rc1 for you to fetch changes up to

[PATCH] Staging: unisys: visorhba: visorhba_main: fixed a coding style issue

2016-05-20 Thread Rumesh Hapuarachchi
fixed checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Rumesh Hapuarahcchi --- drivers/staging/unisys/visorhba/visorhba_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/3] fix wlan-ng/prism2usb.c

2016-05-20 Thread Kevin McKinney
This patchset will fix the below issues reported checkpatch.pl tool. Kevin McKinney (3): Staging: wlan-ng: fix Alignment should match open parenthesis. This patch fixes alignment of parenthesis found by checkpatch.pl tool. Staging: wlan-ng: fix unnecessary parentheses around

[PATCH 2/3] Staging: wlan-ng: fix unnecessary parentheses around interface-dev. This is a path to fix unnecessary parentheses around interface-dev found by checkpatch.pl tool.

2016-05-20 Thread Kevin McKinney
Signed-off-by: Kevin McKinney --- drivers/staging/wlan-ng/prism2usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c index 43123f3..82be343 100644 ---

[PATCH 3/3] Staging: wlan-ng: fix comparison to NULL. This patch fixes comparison to NULL found by checkpatch.pl tool.

2016-05-20 Thread Kevin McKinney
Signed-off-by: Kevin McKinney --- drivers/staging/wlan-ng/prism2usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c index 82be343..0463ec1 100644 ---

[PATCH 1/3] Staging: wlan-ng: fix Alignment should match open parenthesis. This patch fixes alignment of parenthesis found by checkpatch.pl tool.

2016-05-20 Thread Kevin McKinney
Signed-off-by: Kevin McKinney --- drivers/staging/wlan-ng/prism2usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c index b26d09f..43123f3 100644 ---

RE: [PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 10:18 AM, Ian Abbott wrote: > On 20/05/16 17:37, Hartley Sweeten wrote: >> On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: >>> Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in >>> "plx9080.h", using the prefix `PLX_LASRR_`. Make use of the `BIT(x)`

Re: [PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Ian Abbott
On 20/05/16 17:37, Hartley Sweeten wrote: On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in "plx9080.h", using the prefix `PLX_LASRR_`. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Define a

RE: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 9:31 AM, Ian Abbott wrote: > On 20/05/16 17:21, Hartley Sweeten wrote: >> Just an comment on your renaming. >> >> You also renamed the registers in the daqbook2000 driver in the >> _REG_ format. Personally I prefer the format to be >> __REG. That way a grep for _ will >>

RE: [PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: > Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in > "plx9080.h", using the prefix `PLX_LASRR_`. Make use of the `BIT(x)` > and `GENMASK(h,l)` macros to define the values. > > Define a macro `PLX_LASRR_PREFETCH` for the

Re: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Ian Abbott
On 20/05/16 17:21, Hartley Sweeten wrote: On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: Rename the macros in "plx9080.h" that define the offsets of registers, following the pattern `PLX_REG_`, where `` is the register name from the PLX PCI 9080 Data Book. Add defines for the "Mailbox"

[PATCH] staging/vme: explicitly use `unsigned int` instead of `unsigned`

2016-05-20 Thread Daniel Lockyer
Kernel code style is to prefer the former so add `int` to the method parameters. Signed-off-by: Daniel Lockyer --- drivers/staging/vme/devices/vme_pio2_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

RE: [PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Hartley Sweeten
On Friday, May 20, 2016 6:49 AM, Ian Abbott wrote: > Rename the macros in "plx9080.h" that define the offsets of registers, > following the pattern `PLX_REG_`, where `` is the register > name from the PLX PCI 9080 Data Book. > > Add defines for the "Mailbox" registers, and add parameterized macros

RE: [PATCH v2] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

2016-05-20 Thread Dexuan Cui
> From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > Behalf Of Dexuan Cui > Sent: Wednesday, May 18, 2016 11:44 > To: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

[PATCH 13/20] staging: comedi: plx9080.h: add hard-coded PCIHIDR register value

2016-05-20 Thread Ian Abbott
For the PLX PCI 9080, the read-only PCIHIDR register is hard-coded with the value `0x908010b5`. Add a macro `PLX_PCIHIDR_9080` that expands to this value. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/plx9080.h | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 18/20] staging: comedi: plx9080.h: tidy up some comments

2016-05-20 Thread Ian Abbott
Use the usual block comment style and remove some excess spaces from single-line comments. Remove some obvious stuff about register offsets being zero relative. Remove some text about the original history of the file, as it bears hardly any resemblance to it now. Signed-off-by: Ian Abbott

[PATCH 11/20] staging: comedi: drivers: re-do PLX PCI 9080 INTCSR register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the INTCSR register. Use the prefix `PLX_INTCSR_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 20/20] staging: comedi: plx9080.h: include headers for declarations

2016-05-20 Thread Ian Abbott
Add `#include` lines to declare stuff used by "plx9080.h" itself. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/plx9080.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/comedi/drivers/plx9080.h

[PATCH 12/20] staging: comedi: drivers: re-do PLX PCI 9080 CNTRL register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the CNTRL register. Use the prefix `PLX_CNTRL_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 16/20] staging: comedi: drivers: re-do PLX PCI 9080 DMACSRx register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the DMACSR0 and DMACSR0 registers. Use the prefix `PLX_DMACSR_` for the macros. Make use of the `BIT(x)` macro to define the values. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/cb_pcidas64.c

[PATCH 14/20] staging: comedi: drivers: re-do PLX PCI 9080 DMAMODEx register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the DMAMODE0 and DMAMODE1 registers. Use the prefix `PLX_DMAMODE_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 15/20] staging: comedi: drivers: re-do PLX PCI 9080 DMADPRx register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the DMADPR0 and DMADPR1 registers. (A little-endian version of the register value is also placed in the `next` member of `struct plx_dma_desc`.) Use the prefix `PLX_DMADPR_` for the macros. Make use of the `BIT(x)` and

[PATCH 19/20] staging: comedi: plx9080.h: Add kerneldoc comments

2016-05-20 Thread Ian Abbott
Document the DMA descriptor `struct plx_dma_desc`, and the DMA abort function `plx9080_abort_dma()`. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/plx9080.h | 35 ++-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git

[PATCH 07/20] staging: comedi: drivers: re-do PLX PCI 9080 BIGEND register values

2016-05-20 Thread Ian Abbott
Replace `enum bigend_bits` in "plx9080.h" with a bunch of macros defining values for the BIGEND register. Use the prefix `PLX_BIGEND_` for the macro names. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 04/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

2016-05-20 Thread Ian Abbott
Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in "plx9080.h", using the prefix `PLX_LASRR_`. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Define a macro `PLX_LASRR_PREFETCH` for the "prefetchable memory" bit in this register, and define a macro

[PATCH 00/20] staging: comedi: re-do drivers/plx9080.h

2016-05-20 Thread Ian Abbott
Re-do "drivers/staging/comedi/drivers/plx9080.h". It mostly contains defines for register offsets and values for the PLX PCI 9080 PCI interface chip. To make it easier to follow, base the macro names for register offsets on the register names from the PLX PCI 9080 data book. Base the macro names

[PATCH 17/20] staging: comedi: drivers: add PLX PCI 9080 DMATHR register values

2016-05-20 Thread Ian Abbott
Add macros in "plx9080.h" that define values for the DMATHR register values. Use the prefix `PLX_DMATHR_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/plx9080.h | 41

[PATCH 05/20] staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxBA values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the LAS0BA and LAS1BA registers. Use the prefix `PLX_LASBA_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the macros. Signed-off-by: Ian Abbott ---

[PATCH 08/20] staging: comedi: drivers: re-do PLX PCI 9080 LBRDx register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the LBRD0 and LBRD1 registers. Use the prefix `PLX_LBRD_` for macros that apply to both registers, `PLX_LBRD0_` for macros that apply only to the LBRD0 register, and `PLX_LBRD1_` for macros that apply only to the LBRD1 register.

[PATCH 10/20] staging: comedi: drivers: re-do PLX PCI 9080 DMCFGA register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the DMCFGA register. Use the prefix `PLX_DMCFGA_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 09/20] staging: comedi: drivers: re-do PLX PCI 9080 DMPBAM register values

2016-05-20 Thread Ian Abbott
Replace the existing macros in "plx9080.h" that define values for the DMPBAM register. Use the prefix `PLX_DMPBAM_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the values. Signed-off-by: Ian Abbott ---

[PATCH 02/20] staging: comedi: plx9080.h: remove Power-Up Test Suite stuff

2016-05-20 Thread Ian Abbott
The defines related to the Power-Up Test Suite (PUTS) are just cruft that has nothing to do with the PLX PCI-9080 chip. They seem to have been inherited from "drivers/net/plx9060.h" in the kernel 2.2.16 sources for use by the "wanxl" driver. Remove them. Signed-off-by: Ian Abbott

[PATCH 03/20] staging: comedi: drivers: rename PLX PCI 9080 register offsets

2016-05-20 Thread Ian Abbott
Rename the macros in "plx9080.h" that define the offsets of registers, following the pattern `PLX_REG_`, where `` is the register name from the PLX PCI 9080 Data Book. Add defines for the "Mailbox" registers, and add parameterized macros for the mailbox registers and the DMA control registers.

[PATCH 06/20] staging: comedi: drivers: re-do PLX PCI 9080 MARBR register values

2016-05-20 Thread Ian Abbott
Replace `enum marb_bits` in "plx9080.h" with a bunch of macros defining values for the MARBR and DMAARB registers (which are the same Mode/Arbitation register at two different offsets). Use the prefix `PLX_MARBR_` for the macros. Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define the

[PATCH 01/20] staging: comedi: plx9080.h: correct LRNG_IO_MASK and LMAP_IO_MASK

2016-05-20 Thread Ian Abbott
For the PLX local address space range registers, LAS0RR and LAS1RR, bit 0 indicates whether the local address space will be mapped to memory space or I/O space. If mapped to I/O space, bit 1 must be set to 0, and bits 31 to 2 form the address decoding mask, which should be -2^N mod 2^32 for a

Re: [PATCH v2 4/4] Staging: comedi: fix line over 80 characters issue in s626.c

2016-05-20 Thread Ian Abbott
On 20/05/16 07:22, Ravishankar Karkala Mallikarjunayya wrote: This is a patch to the s626.c file that fixes up a line over 80 characters issues found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- Changes since V1: - No change ---

Re: [PATCH v2 3/4] Staging: comedi:Fix unsigned int to bare use of unsigned issue in s626.c

2016-05-20 Thread Ian Abbott
On 20/05/16 07:22, Ravishankar Karkala Mallikarjunayya wrote: This is a patch to the s626.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool Signed-off-by: Ravishankar Karkala Mallikarjunayya --- Changes

Re: [PATCH v2 1/4] Staging: comedi: fix type issue in s626.c

2016-05-20 Thread Ian Abbott
On 20/05/16 07:21, Ravishankar Karkala Mallikarjunayya wrote: This is a patch to the s626.c file that fixes up a type issues found by the checkpatch.pl tool. i.e Prefer kernel type 'u8' over 'uint8_t' Prefer kernel type 'u16' over 'uint16_t' Prefer kernel type 'u32' over 'uint32_t'

[PATCH 2/2] staging: dgnc: remove redundant null check in

2016-05-20 Thread Daeseok Youn
the "brd" was already checked for NULL before calling dgnc_do_remap(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index

[PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-20 Thread Daeseok Youn
the "brd" value cannot be NULL in dgnc_finalize_board_init(). Because "brd" as a parameter of this function was already checked for NULL. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH 00/27] staging: add driver for KS7010 based SDIO cards

2016-05-20 Thread Wolfram Sang
Hi Greg, > An add-on patch is probably easiest for everyone involved here. Any chance for the new-driver-rule for this one? Thanks, Wolfram signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org

[PATCH v2 4/4] Staging: comedi: fix line over 80 characters issue in s626.c

2016-05-20 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a line over 80 characters issues found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- Changes since V1: - No change --- drivers/staging/comedi/drivers/s626.c | 3 ++- 1 file changed,

[PATCH v2 3/4] Staging: comedi:Fix unsigned int to bare use of unsigned issue in s626.c

2016-05-20 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool Signed-off-by: Ravishankar Karkala Mallikarjunayya --- Changes since V1: - No change --- drivers/staging/comedi/drivers/s626.c |

[PATCH v2 2/4] Staging: comedi: Fix WARNING issue in s626.c

2016-05-20 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a Block comments issues found by the checkpatch.pl tool. i.e. Block comments use a trailing */ on a separate line Signed-off-by: Ravishankar Karkala Mallikarjunayya --- Changes since V1: - No change ---

[PATCH v2 1/4] Staging: comedi: fix type issue in s626.c

2016-05-20 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the s626.c file that fixes up a type issues found by the checkpatch.pl tool. i.e Prefer kernel type 'u8' over 'uint8_t' Prefer kernel type 'u16' over 'uint16_t' Prefer kernel type 'u32' over 'uint32_t' Prefer kernel type 's16' over 'int16_t' Prefer kernel type