Re: vme_ca91cx42.c

2012-09-24 Thread Martyn Welch
On 20/09/12 15:13, gschr...@beyondelectronics.us wrote: We are currently attempting to write a validation suite for the vme_ca91cx42 driver (Tundra Universe currently in staging) and are looking for starting points. I have found a significant amount of code and documentation, but am unsure

Re: [RFC] mm: add support for zsmalloc and zcache

2012-09-24 Thread Mel Gorman
On Sat, Sep 22, 2012 at 02:18:44PM -0700, Dan Magenheimer wrote: From: Mel Gorman [mailto:mgor...@suse.de] Subject: Re: [RFC] mm: add support for zsmalloc and zcache On Fri, Sep 21, 2012 at 01:35:15PM -0700, Dan Magenheimer wrote: From: Seth Jennings

Re: [PATCH] Staging:bcm: fix coding style issue in Bcmchar.c

2012-09-24 Thread Dan Carpenter
On Mon, Sep 24, 2012 at 04:44:43PM +0600, Gorskin Ilya wrote: This is a patch to the Bcmchar.c file that fixes up a coding style warning found by the checkpatch.pl tool The right way to fix this is to choose better variable names and to get rid of the bogus BCM_DEBUG_PRINT() macro. It's

Re: [PATCH 3/8] Staging: bcm: Remove typedef for _stLocalSFAddIndication and call directly.

2012-09-24 Thread Dan Carpenter
On Sun, Sep 23, 2012 at 11:07:12PM -0400, Kevin McKinney wrote: - pstAddIndication = kmalloc(sizeof(*pstAddIndication), GFP_KERNEL); + pstAddIndication = kmalloc(sizeof(struct bcm_add_indication), GFP_KERNEL); Don't resend, but the style was still better in the original. regards, dan

Re: [PATCH 8/8] Staging: bcm: Remove typedef for _stCPacketClassificationRuleSI and call directly.

2012-09-24 Thread Dan Carpenter
On Sun, Sep 23, 2012 at 11:07:17PM -0400, Kevin McKinney wrote: This patch removes typedef for _stCPacketClassificationRuleSI, changes the name of the struct to bcm_packet_class_rules, and updates the comments appropriately . In addition, any calls to typedefs CCPacketClassificationRuleSI,

Re: vme_ca91cx42.c

2012-09-24 Thread gschreck
On Mon, 24 Sep 2012 11:00:17 +0100, Martyn Welch martyn.we...@ge.com wrote: On 20/09/12 15:13, gschr...@beyondelectronics.us wrote: snip Hi George, There is an in-kernel API. This is documented in the vme_api.txt file found in Documentation/ (or drivers/staging/vme for older kernels,

[PATCH v2 0/3] staging: comedi: avoid mixing __user and kernel pointers

2012-09-24 Thread Ian Abbott
Some patches from the v1 sequence of 9 patches that were nothing to do with mixing __user and kernel pointers have already been applied by Greg, leaving 4 patches unapplied. For v2, I've combined 2 of those 4 patches, reordered them, slightly modified one of them and changed the commit messages.

[PATCH 3/3] staging: comedi: add __user tag to chanlist

2012-09-24 Thread Ian Abbott
This reverts staging: comedi: comedi.h: remove __user tag from chanlist by H Hartley Sweeten on 2012-09-18 (committed by Greg Kroah-Hartman on Wed Sep 19 09:36:44 2012 +0100), and also removes a couple of `__user` casts that are now unnecessary and a couple of `__force` casts that are now wrong.

Re: [PATCH v2 0/3] staging: comedi: avoid mixing __user and kernel pointers

2012-09-24 Thread Dan Carpenter
On Mon, Sep 24, 2012 at 01:34:11PM +0100, Ian Abbott wrote: Some patches from the v1 sequence of 9 patches that were nothing to do with mixing __user and kernel pointers have already been applied by Greg, leaving 4 patches unapplied. For v2, I've combined 2 of those 4 patches, reordered them,

Re: [PATCH 3/8] Staging: bcm: Remove typedef for _stLocalSFAddIndication and call directly.

2012-09-24 Thread Kevin McKinney
On Mon, Sep 24, 2012 at 6:57 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Sep 23, 2012 at 11:07:12PM -0400, Kevin McKinney wrote: - pstAddIndication = kmalloc(sizeof(*pstAddIndication), GFP_KERNEL); + pstAddIndication = kmalloc(sizeof(struct bcm_add_indication),

Re: [PATCH 3/8] Staging: bcm: Remove typedef for _stLocalSFAddIndication and call directly.

2012-09-24 Thread Dan Carpenter
On Mon, Sep 24, 2012 at 09:46:05AM -0400, Kevin McKinney wrote: On Mon, Sep 24, 2012 at 6:57 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Sep 23, 2012 at 11:07:12PM -0400, Kevin McKinney wrote: - pstAddIndication = kmalloc(sizeof(*pstAddIndication), GFP_KERNEL); +

[PATCH] staging: comedi: jr3_pci: add __iomem tags

2012-09-24 Thread Ian Abbott
Tag pointers to remapped I/O memory with `__iomem` and remove the `volatile` qualifiers. Fix the single place in `jr3_pci_attach()` where an I/O memory pointer is being dereferenced directly to use the appropriate I/O memory access function. Signed-off-by: Ian Abbott abbo...@mev.co.uk ---

[PATCH] staging: comedi: gsc_hpdi: make internal functions static

2012-09-24 Thread Ian Abbott
This module does not export any symbols so declare all the functions as `static`. Some of them are currently unused but might get used in the future, so tag them as `__maybe_unused` for now to get rid of compiler warnings. Signed-off-by: Ian Abbott abbo...@mev.co.uk ---

[PATCH] staging: comedi: ni_mio_common: always lock in ni_ai_poll()

2012-09-24 Thread Ian Abbott
`ni_ai_poll()` currently acquires (and later releases) the comedi device's spin-lock iff `in_interrupt()` returns 0. However, it is only called during processing of a `COMEDI_POLL` ioctl so `in_interrupt()` will always return 0 in this case. Remove this test and acquire/release the spin-lock

Re: [PATCH 3/8] Staging: bcm: Remove typedef for _stLocalSFAddIndication and call directly.

2012-09-24 Thread Kevin McKinney
On Mon, Sep 24, 2012 at 10:16 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Mon, Sep 24, 2012 at 09:46:05AM -0400, Kevin McKinney wrote: On Mon, Sep 24, 2012 at 6:57 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Sun, Sep 23, 2012 at 11:07:12PM -0400, Kevin McKinney wrote: -

[PATCH]staging wlan-ng Fix typos.

2012-09-24 Thread Justin P. Mattock
From: Justin P. Mattock justinmatt...@gmail.com Signed-off-by: Justin P. Mattock justinmatt...@gmail.com --- The below patch fixes typos found while reading through staging wlan-ng drivers/staging/wlan-ng/cfg80211.c |4 ++-- drivers/staging/wlan-ng/p80211netdev.c |2 +-

[PATCH 2/2] staging: comedi: s626: add FIXME comment

2012-09-24 Thread Ian Abbott
`s626_enc_insn_config()` is the `insn_config()` handler for a counter subdevice. The `data[0]` value is supposed to be one of the `INSN_CONFIG_...` constants defined in comedi.h indicating the type of configuration instruction, but this function seems to be using it as a variable value to preload

[PATCH 1/2] staging: comedi: s626: don't dereference insn-data

2012-09-24 Thread Ian Abbott
`s626_enc_insn_config()` is incorrectly dereferencing `insn-data` which is a pointer to user memory. It should be dereferencing the separate `data` parameter that points to a copy of the data in kernel memory. Cc: sta...@vger.kernel.org Signed-off-by: Ian Abbott abbo...@mev.co.uk ---

Re: [PATCH] staging: comedi: jr3_pci: add __iomem tags

2012-09-24 Thread Ian Abbott
On 2012-09-24 17:38, H Hartley Sweeten wrote: On Monday, September 24, 2012 7:20 AM, Ian Abbott wrote: Tag pointers to remapped I/O memory with `__iomem` and remove the `volatile` qualifiers. Fix the single place in `jr3_pci_attach()` where an I/O memory pointer is being dereferenced directly

Re: [RFC] mm: add support for zsmalloc and zcache

2012-09-24 Thread Seth Jennings
On 09/21/2012 03:35 PM, Dan Magenheimer wrote: From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] Subject: Re: [RFC] mm: add support for zsmalloc and zcache On 09/21/2012 01:02 PM, Konrad Rzeszutek Wilk wrote: On Fri, Sep 21, 2012 at 05:12:52PM +0100, Mel Gorman wrote: On Tue, Sep 04,

re: staging: Add dgrp driver for Digi Realport devices

2012-09-24 Thread Dan Carpenter
Hi Bill, I have a concern about the following code: drivers/staging/dgrp/dgrp_net_ops.c:3159 dgrp_receive() 3128 plen = get_unaligned_be16(b + 2); 3129 3130 if (plen 4 || plen 1000) {

[PATCH 1/2] The tidspbridge driver does not compile anymore (Some OMAP34XX CPU definitions are missing). I Added a header file for these definitions.

2012-09-24 Thread selso
From: sli sli@SLI-V420.(none) Signed-off-by: sli sli@SLI-V420.(none) --- drivers/staging/tidspbridge/core/dsp-clock.c |3 ++ drivers/staging/tidspbridge/core/tiomap3430.c |4 ++ drivers/staging/tidspbridge/core/wdt.c |2 +-

Re: staging: Add dgrp driver for Digi Realport devices

2012-09-24 Thread Bill Pemberton
I have a concern about the following code: drivers/staging/dgrp/dgrp_net_ops.c:3159 dgrp_receive() 3128 plen = get_unaligned_be16(b + 2); 3129 3130 if (plen 4 || plen 1000) {

RE: [RFC] mm: add support for zsmalloc and zcache

2012-09-24 Thread Dan Magenheimer
From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] Subject: Re: [RFC] mm: add support for zsmalloc and zcache On Sat, 2012-09-22 at 02:07 +0100, Mel Gorman wrote: The two proposals: A) Recreate all the work done for zcache2 as a proper sequence of independent

[PATCH 00/20] staging: comedi: s626: cleanup board attach

2012-09-24 Thread H Hartley Sweeten
Start cleaning up this driver by reworking the board attach to use the comedi PCI auto config mechanism and cleanup all the attach code. H Hartley Sweeten (20): staging: comedi: s626: remove boardinfo staging: comedi: s626: use attach_pci callback staging: comedi: s626: store the pci_dev in

[PATCH 01/20] staging: comedi: s626: remove boardinfo

2012-09-24 Thread H Hartley Sweeten
This driver only supports one board type. Move the used board info out of the boardinfo struct and remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c

[PATCH 02/20] staging: comedi: s626: use attach_pci callback

2012-09-24 Thread H Hartley Sweeten
Convert this PCI driver to use the comedi PCI auto config attach mechanism by adding an 'attach_pci' callback function. Since the driver does not require any external configuration options, and the legacy 'attach' callback is not optional, remove it. Signed-off-by: H Hartley Sweeten

[PATCH 03/20] staging: comedi: s626: store the pci_dev in the comedi_device

2012-09-24 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 04/20] staging: comedi: s626: use dev-board_name for resource name

2012-09-24 Thread H Hartley Sweeten
Instead of the literal string s626, use the dev-board_name for the resource name when enabling the PCI device and requesting the irq. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 05/20] staging: comedi: s626: remove unneeded local variable in attach_pci()

2012-09-24 Thread H Hartley Sweeten
The 'result' variable is only used to check the return from comedi_pci_enable(). Just reuse the 'ret' variable. Also, remove the kernel noise and use the error code from comedi_pci_enable() instead of returning -ENODEV. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH 06/20] staging: comedi: s626: remove 'got_regions' from private data

2012-09-24 Thread H Hartley Sweeten
This variable is only used as a flag to indicate that the pci device has been enabled and needs to be disabled in the detach. Use the comedi_device 'iobase' for this and remove the private data variable. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH 07/20] staging: comedi: s626: cleanup ioremap()

2012-09-24 Thread H Hartley Sweeten
The local variable 'resourceStart' is only used in the ioremap() to hold the PCI bar 0 base address. Just use the pci_resource_start() directly in the ioremap(). Also, instead of assuming the resource size for the ioremap, use pci_resource_len() to get the actual size. Remove the kernel noise

[PATCH 09/20] staging: comedi: s626: factor out the dma buffer allocation

2012-09-24 Thread H Hartley Sweeten
To make the attach a bit cleaner, factor the dma buffer allocation out of attach_pci() into a new function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c |

[PATCH 08/20] staging: comedi: s626: remove unnecessary checks of 'devpriv-base_addr'

2012-09-24 Thread H Hartley Sweeten
'devpriv-base_addr' is valid from this point on in the attach_pci() function. Remove the unnecessary checks. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c

[PATCH 10/20] staging: comedi: s626: cleanup request_irq in s626_attach_pci()

2012-09-24 Thread H Hartley Sweeten
Only set dev-irq if request_irq is successfull. Remove the kernel message noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 23

[PATCH 11/20] staging: comedi: s626: factor out the board init code

2012-09-24 Thread H Hartley Sweeten
To make the attach a bit cleaner, factor the board init code out of attach_pci() into a new function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 246

[PATCH 12/20] staging: comedi: s626: remove unneeded clear of private data

2012-09-24 Thread H Hartley Sweeten
The private data is kzalloc'ed. All the variables in it are initially '0'. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 3 --- 1 file changed, 3

RE: [RFC] mm: add support for zsmalloc and zcache

2012-09-24 Thread Dan Magenheimer
From: Mel Gorman [mailto:mgor...@suse.de] Subject: Re: [RFC] mm: add support for zsmalloc and zcache On Sat, Sep 22, 2012 at 02:18:44PM -0700, Dan Magenheimer wrote: From: Mel Gorman [mailto:mgor...@suse.de] Subject: Re: [RFC] mm: add support for zsmalloc and zcache On Fri, Sep

[PATCH 13/20] staging: comedi: s626: add final attach message

2012-09-24 Thread H Hartley Sweeten
Add a simple dev_info() message after a successfull attach. Change the final return to '0' to indicate success. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 14/20] staging: comedi: s626: remove 'allocatedBuf' from private data

2012-09-24 Thread H Hartley Sweeten
This variable is only used to count the number of dma buffers allocated during the attach. If an allocation fails, the attach function exits with -ENOMEM. When this variable is checked later it will always be == 2. Just remove the variable and the check. This allows bringing the code back an

[PATCH 15/20] staging: comedi: s626: #if 0 out the SAA7146 BUG WORKAROUND

2012-09-24 Thread H Hartley Sweeten
Until it's determined if this workaround can be removed, block out the code with an #if 0/#endif and remove the individual comments on each line. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 16/20] staging: comedi: s626: remove 'IsBoardRevA' comment

2012-09-24 Thread H Hartley Sweeten
IsBoardRevA is not defined in the driver. Remove the comment about it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 25 ++--- 1 file

[PATCH 18/20] staging: comedi: s626: remove 'WDInterval' from private data

2012-09-24 Thread H Hartley Sweeten
This variable is never used in the driver. Just remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 7 --- 1 file changed, 7 deletions(-) diff

[PATCH 19/20] staging: comedi: s626: remove clear of kzalloc'ed data

2012-09-24 Thread H Hartley Sweeten
The private data is kzalloc'ed. There is no need to set any of the initial data to '0'. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 6 -- 1 file

[PATCH 20/20] staging: comedi: s626: cleanup comments in s626_initialize()

2012-09-24 Thread H Hartley Sweeten
Cleanup the comments to follow the coding style of the kernel. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/s626.c | 169 ++ 1

RE: [PATCH 16/17] staging: comedi: s526: remove struct s526GPCTConfig

2012-09-24 Thread H Hartley Sweeten
On Saturday, September 22, 2012 6:11 AM, Dan Carpenter wrote: On Wed, Sep 19, 2012 at 03:12:54PM -0700, H Hartley Sweeten wrote: +case INSN_CONFIG_GPCT_PULSE_TRAIN_GENERATOR: /* data[0] contains the PULSE_WIDTH data[1] contains the PULSE_PERIOD

[PATCH] staging: dgrp: fix potential call to strncpy with a negative number

2012-09-24 Thread Bill Pemberton
In dgrp_receive() there is: desclen = ((plen - 12) MAX_DESC_LEN) ? MAX_DESC_LEN : plen - 12; strncpy(nd-nd_ps_desc, b + 12, desclen); However, it's possible for plen to be = 12 here so we'd be passing a negative number into the strncpy(). Fix this to not make

RE: [PATCH] staging: comedi: gsc_hpdi: make internal functions static

2012-09-24 Thread H Hartley Sweeten
On Monday, September 24, 2012 7:48 AM, Ian Abbott wrote: This module does not export any symbols so declare all the functions as `static`. Some of them are currently unused but might get used in the future, so tag them as `__maybe_unused` for now to get rid of compiler warnings.

[PATCH] staging: comedi: s526: fix if() check in s526_gpct_winsn()

2012-09-24 Thread H Hartley Sweeten
This if() check was flipped from a test for valid data params to a test for invalid params. As pointed out by Dan Carpenter, the orignal test was: if ((data[1] data[0]) (data[0] 0)) { the flipped test should be: if (data[1] = data[0]) ... Add the missing '='.

RE: [PATCH] staging: comedi: ni_mio_common: always lock in ni_ai_poll()

2012-09-24 Thread H Hartley Sweeten
On Monday, September 24, 2012 8:28 AM, Ian Abbott wrote: `ni_ai_poll()` currently acquires (and later releases) the comedi device's spin-lock iff `in_interrupt()` returns 0. However, it is only called during processing of a `COMEDI_POLL` ioctl so `in_interrupt()` will always return 0 in this

RE: [PATCH 1/2] staging: comedi: s626: don't dereference insn-data

2012-09-24 Thread H Hartley Sweeten
On Monday, September 24, 2012 9:21 AM, Ian Abbott wrote: `s626_enc_insn_config()` is incorrectly dereferencing `insn-data` which is a pointer to user memory. It should be dereferencing the separate `data` parameter that points to a copy of the data in kernel memory. Cc:

RE: [PATCH] staging: comedi: jr3_pci: add __iomem tags

2012-09-24 Thread H Hartley Sweeten
On Monday, September 24, 2012 9:47 AM, Ian Abbott wrote: On 2012-09-24 17:38, H Hartley Sweeten wrote: On Monday, September 24, 2012 7:20 AM, Ian Abbott wrote: Tag pointers to remapped I/O memory with `__iomem` and remove the `volatile` qualifiers. Fix the single place in

Re: [PATCH 1/2] The tidspbridge driver does not compile anymore (Some OMAP34XX CPU definitions are missing). I Added a header file for these definitions.

2012-09-24 Thread Omar Ramirez Luna
Hi, On Mon, Sep 24, 2012 at 1:54 PM, selso selso.liber...@gmail.com wrote: From: sli sli@SLI-V420.(none) Signed-off-by: sli sli@SLI-V420.(none) --- drivers/staging/tidspbridge/core/dsp-clock.c |3 ++ drivers/staging/tidspbridge/core/tiomap3430.c |4 ++

[PATCH] Staging:bcm: fix coding style error in InterfaceDld.c and InterfaceIdleMode.c

2012-09-24 Thread Gorskin Ilya
This is a patch to the InterfaceIdleMode.c, InterfaceDld.c files that fixes up a coding style errors found by the checkpatch.pl tool Signed-off-by: Ilya Gorskin reven...@gmail.com --- drivers/staging/bcm/InterfaceDld.c | 16 +-- drivers/staging/bcm/InterfaceIdleMode.c | 219

[PATCH 2/3] Staging:bcm: fix coding style error in InterfaceIsr.c

2012-09-24 Thread Gorskin Ilya
This is a patch to the InterfaceIsr.c file that fixes up a coding style issues found by the checkpatch.pl tool Signed-off-by: Ilya Gorskin reven...@gmail.com --- drivers/staging/bcm/InterfaceIsr.c | 178 + 1 file changed, 102 insertions(+), 76 deletions(-)

[PATCH 3/3] Staging:bcm: fix coding style error in InterfaceIsr.c

2012-09-24 Thread Gorskin Ilya
This is a patch to the InterfaceIsr.c file that fixes up a coding style issues found by the checkpatch.pl tool Signed-off-by: Ilya Gorskin reven...@gmail.com --- drivers/staging/bcm/InterfaceIsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git