[PATCH] staging: xillybus: Removed force to be a module

2013-12-09 Thread Eli Billauer
The driver was forced to module only following a previous failure to build into the kernel. The problem was resolved several months ago. This has been successfully tested with make allyesconfig on x86_64. Reported-by: Stephen Rothwell s...@canb.auug.org.au Signed-off-by: Eli Billauer

Re: [PATCH 1/7 v2] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread Greg Kroah-Hartman
On Sat, Dec 07, 2013 at 05:22:57PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) I have a mess of some patches resend in the series and others not.

Re: [PATCH 03/10] Staging: bcm: DDRInit: added space after commas.

2013-12-09 Thread Greg KH
On Sat, Dec 07, 2013 at 02:49:05AM -0500, Gary Rookard wrote: This is the third patch of a series. What series? Again, this isn't an ok changelog entry, did you read Documentation/SubmittingPatches for what should be here? thanks, greg k-h ___ devel

Re: [PATCH 11/11] Staging: bcm: DDRInint: tidy up indent issue.

2013-12-09 Thread Greg KH
On Sat, Dec 07, 2013 at 03:46:48AM -0500, Gary Rookard wrote: This is the eleventh patch of a series. No it isn't :) ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH v3 3/7] staging: et131x: reduce split lines in et131x_rx_dma_memory_free

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 9272548..5a45465 100644 ---

[PATCH v3 2/7] staging: et131x: reduce split lines in et131x_rx_dma_memory_alloc

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 48 - 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index d16ac57..9272548 100644 ---

[PATCH v3 1/7] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 5dd2170..d16ac57 100644 ---

[PATCH v3 7/7] staging: et131x: remove unnecessary pointer typecast

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 89bd8ca..fdb19df 100644 ---

[PATCH v3 6/7] staging: et131x: remove item that have been done in TODO file

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/README | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/et131x/README b/drivers/staging/et131x/README index 8da96a6..3befc45 100644 --- a/drivers/staging/et131x/README +++ b/drivers/staging/et131x/README

Re: [PATCH v3 1/7] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread Greg Kroah-Hartman
On Mon, Dec 09, 2013 at 04:46:08PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) What happened to all of Mark's Acked-by: lines? You should have put

Re: [PATCH v3 1/7] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread ZHAO Gang
On Mon, Dec 9, 2013 at 4:53 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 04:46:08PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 24 ++-- 1 file changed, 10 insertions(+), 14

Re: [PATCH v3 1/7] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread Greg Kroah-Hartman
On Mon, Dec 09, 2013 at 05:00:01PM +0800, ZHAO Gang wrote: On Mon, Dec 9, 2013 at 4:53 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 04:46:08PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 24

[PATCH][RESEND] [media] davinci: vpfe: remove deprecated IRQF_DISABLED

2013-12-09 Thread Michael Opdenacker
This patch proposes to remove the use of the IRQF_DISABLED flag It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com Acked-by: Lad, Prabhakar prabhakar.cse...@gmail.com ---

[PATCH v2] Staging: TIDSPBRIDGE: Remove UUID helper

2013-12-09 Thread Ivaylo DImitrov
From: Ivaylo Dimitrov freemangor...@abv.bg Custom uuid helper function is needed only in rmgr/dbdcd.c and doesn't need to be exported. It can also be made way simpler by using sscanf. Signed-off-by: Ivaylo Dimitrov freemangor...@abv.bg --- drivers/staging/tidspbridge/Makefile |

[PATCH v4 2/7] staging: et131x: reduce split lines in et131x_rx_dma_memory_alloc

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com --- drivers/staging/et131x/et131x.c | 48 - 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/drivers/staging/et131x/et131x.c

[PATCH v4 1/7] staging: et131x: reduce split lines in et131x_config_rx_dma_regs

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com --- drivers/staging/et131x/et131x.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index

[PATCH v4 4/7] staging: et131x: reduce split lines in nic_return_rfd

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/et131x.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 5a45465..f498eec 100644 ---

[PATCH v4 6/7] staging: et131x: remove item that have been done in TODO file

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com --- drivers/staging/et131x/README | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/et131x/README b/drivers/staging/et131x/README index 8da96a6..3befc45 100644 --- a/drivers/staging/et131x/README +++ b/drivers/staging/et131x/README

[PATCH v4 5/7] staging: et131x: reduce split lines in nic_rx_pkts

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com --- drivers/staging/et131x/et131x.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index f498eec..89bd8ca 100644

[PATCH v4 7/7] staging: et131x: remove unnecessary pointer typecast

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com --- drivers/staging/et131x/et131x.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index

[PATCH v4 3/7] staging: et131x: reduce split lines in et131x_rx_dma_memory_free

2013-12-09 Thread ZHAO Gang
Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com --- drivers/staging/et131x/et131x.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index

Re: [PATCH 1/3] drm: Add LCD display clock polarity flags

2013-12-09 Thread Marek Vasut
On Tuesday, December 03, 2013 at 12:44:52 PM, Shawn Guo wrote: On Mon, Dec 02, 2013 at 04:39:26PM +0100, Marek Vasut wrote: Add DRM flags for the LCD display clock polarity so the pixelclk-active DT property can be properly handled by drivers using the DRM API. Signed-off-by: Marek Vasut

Re: [PATCH v2] Staging: TIDSPBRIDGE: Remove UUID helper

2013-12-09 Thread Pavel Machek
On Mon 2013-12-09 12:13:16, Ivaylo DImitrov wrote: From: Ivaylo Dimitrov freemangor...@abv.bg Custom uuid helper function is needed only in rmgr/dbdcd.c and doesn't need to be exported. It can also be made way simpler by using sscanf. Signed-off-by: Ivaylo Dimitrov freemangor...@abv.bg

[PATCH] vme: Convert VME core to register as a subsystem

2013-12-09 Thread Aaron Sierra
Previously, VME bridge support was treated as any other driver (using module_init() macro), but if VME bridge and vme_user (staging) drivers were compiled into the kernel, then vme_user would attempt to register itself before the VME core support had been loaded. This would result in a kernel

[PATCH v2] vme_user: Update API to work in mixed environments

2013-12-09 Thread Aaron Sierra
This patch updates the vme_master and vme_slave structures to use types with well defined size and to prevent the compiler from inserting padding (between enable and vme_addr for one). The original vme_master and vme_slave structs would be different sizes and have different layouts depending on

[PATCH] staging: comedi: ni_at_a2150: fix an always true condition test

2013-12-09 Thread H Hartley Sweeten
As pointed out by the kbuild test robot, and Ian Abbott, the dma = 0 test is always true because dma is unsigned. This generates a warn message: drivers/staging/comedi/drivers/ni_at_a2150.c:715 a2150_attach() warn: always true condition '(dma = 0) = (0-u32max = 0)' Fix the test as suggested by

Re: [PATCH v4 4/7] staging: et131x: reduce split lines in nic_return_rfd

2013-12-09 Thread Mark Einon
On Mon, Dec 09, 2013 at 07:38:27PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH v4 6/7] staging: et131x: remove item that have been done in TODO file

2013-12-09 Thread Mark Einon
On Mon, Dec 09, 2013 at 07:38:29PM +0800, ZHAO Gang wrote: Signed-off-by: ZHAO Gang gamer...@gmail.com Acked-by: Mark Einon mark.ei...@gmail.com ___ devel mailing list de...@linuxdriverproject.org

[PATCH 47/48] staging: comedi: pcmmio: tidy up the multi-line comments

2013-12-09 Thread H Hartley Sweeten
Tidy up the multi-line comments are the beginning of the file to follow the CodingStyle. 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/pcmmio.c | 142

[PATCH 28/48] staging: comedi: pcmmio: unwind the digital i/o subdevice init

2013-12-09 Thread H Hartley Sweeten
The board supported by this driver only has one asic that provides the two digital i/o subdevices. The first dio subdevice has 24 channels that support interrupts. The second dio subdevice also has 24 channels but no interrupt support. To make the code clearer and easier to maintain, remove the

[PATCH 25/48] staging: comedi: pcmmio: simplify pcmmio_dio_insn_bits()

2013-12-09 Thread H Hartley Sweeten
Currently this function uses the subdevice private data to get the iobase address needed to update the dio output channel state and read the current state of the input channels. This subdevice private data is in the process of being removed. Use the subdevice 'index' to determine the base 'port'

[PATCH 00/48] staging: comedi: pcmmio: cleanup driver

2013-12-09 Thread H Hartley Sweeten
This driver is actually fairly simple but it's a bit confusing with all the subdevice private data usage. Clean the driver up and remove all the cruft. H Hartley Sweeten (48): staging: comedi: pcmmio: remove unused {lock,unlock}_port() staging: comedi: pcmmio: tidy up switch_page()

[PATCH 23/48] staging: comedi: pcmmio: introduce pcmmio_dio_write()

2013-12-09 Thread H Hartley Sweeten
The paged registers in the asic need to be spinlock protected to ensure that the page is not changed while writing to the registers. Introduce a helper function to make sure the spinlock is used. Use the new helper in pcmmio_reset(). This is one of the places where the spinlock is not used.

[PATCH 19/48] staging: comedi: pcmmio: tidy up init_asics()

2013-12-09 Thread H Hartley Sweeten
Rename this function so it has namespace associated with the driver. The board supported by this driver only has one WinSystems WS16C48 asic on it that handles the digital i/o. Remove the unnecessary for () loop that would reset multiple asics. Signed-off-by: H Hartley Sweeten

[PATCH 18/48] staging: comedi: pcmmio: remove 'asic' parameter from switch_page()

2013-12-09 Thread H Hartley Sweeten
The board supported by this driver only has one WinSystems WS16C48 asic on it that handles the digital i/o. Remove the unnecessary 'asic' parameter that is passed to switch_page(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

[PATCH 45/48] staging: comedi: pcmmio: return '0' after successful attach

2013-12-09 Thread H Hartley Sweeten
The comedi core expects the (*attach) functions to return 0 to indicate an error or = 0 for success. Change the return to '0' as that is more typical. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 26/48] staging: comedi: pcmmio: remove 'iobases' from the subdevice private data

2013-12-09 Thread H Hartley Sweeten
This member of the subdevice private data is not longer used. 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/pcmmio.c | 7 --- 1 file changed, 7

[PATCH 24/48] staging: comedi: pcmmio: simplify pcmmio_dio_insn_config()

2013-12-09 Thread H Hartley Sweeten
Currently this function uses the subdevice private data to get the iobase address needed to update the channel configuration. This subdevice private data is in the process of being removed. Use the subdevice 'index' to determine the base 'port' needed to access the correct digital i/o registers.

[PATCH 27/48] staging: comedi: pcmmio: simplify pcmmio_stop_intr()

2013-12-09 Thread H Hartley Sweeten
This function is only called by the interrupt subdevice so the sanity check of the 'asic' is not necessary. Remove it. The 'nports' is always 3 and the 'firstport' is always 0. Remove the for () loop that clears the registers to disable the interrupts and just use the pcmmio_dio_write() helper to

[PATCH 01/48] staging: comedi: pcmmio: remove unused {lock, unlock}_port()

2013-12-09 Thread H Hartley Sweeten
These functions are #ifdef'ed out and not needed in the driver. Just remove them. 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/pcmmio.c | 32

[PATCH 05/48] staging: comedi: pcmmio: cleanup ai_rinsn()

2013-12-09 Thread H Hartley Sweeten
Rename this function to have namespace associated with the driver. Refactor the function to remove the extra write to the command register between each ADC conversion. We only need to do one dummy conversion in order to flush the serial ADC. After that each command will return the result of the

[PATCH 35/48] staging: comedi: pcmmio: use comedi_legacy_detach() for (*detach)

2013-12-09 Thread H Hartley Sweeten
The (*detach) of this driver just calls comedi_legacy_detach(). Use that directly for the (*detach). 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/pcmmio.c | 7

[PATCH 17/48] staging: comedi: pcmmio: there is only one asic

2013-12-09 Thread H Hartley Sweeten
The board supported by this driver only has one WinSystems WS16C48 asic on it that handles the digital i/o. Remove the 'asics' struct array in the private data and add members for the single 'asic_iobase' and the spinlock used by the asic. Signed-off-by: H Hartley Sweeten

[PATCH 42/48] staging: comedi: pcmmio: tidy up pcmmio_start_intr()

2013-12-09 Thread H Hartley Sweeten
Refactor the function to remove some indent levels. Use pcmmio_dio_write() to write the polarity and enable paged registers instead of using the for () loop to write each register in the pages. The for () loop actually has a bug. It switches the page to the 'enab' registers for the first port

[PATCH 20/48] staging: comedi: pcmmio: cleanup the digital i/o register defines

2013-12-09 Thread H Hartley Sweeten
Redefine the registers used to access the digital i/o so that they are based on the dev-iobase of the board instead of the 'asic_iobase' that is stored in the private data. Remove the then unused 'asic_iobase'. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH 46/48] staging: comedi: pcmmio: update the MODULE_DESCRIPTION

2013-12-09 Thread H Hartley Sweeten
Change the MODULE_DESCRIPTION to something more usefull than the generic Comedi low-level driver. 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/pcmmio.c | 2 +- 1

[PATCH 34/48] staging: comedi: pcmmio: remove subdevice private data

2013-12-09 Thread H Hartley Sweeten
Only subdevice[2], the dio interrupt subdevice, uses the subdevice private data. Move the members from struct pcmmio_subdev_private to struct pcmmio_private and remove the subdevice private data. This also allows removing the allocation and freeing of devpriv-sprivs. Signed-off-by: H Hartley

[PATCH 06/48] staging: comedi: pcmmio: return error if ai conversion times out

2013-12-09 Thread H Hartley Sweeten
Rename adc_wait_ready() so it has namespace associated with the driver. Fix the function so it returns an errno if the conversion times out. Propogate this errno if it happens. Define the analog input status register to remove the magic numbers. Signed-off-by: H Hartley Sweeten

[PATCH 48/48] staging: comedi: pcmmio: fix final checkpatch warning

2013-12-09 Thread H Hartley Sweeten
Fis the last checkpatch.pl warning in this driver: WARNING: space prohibited between function name and open parenthesis '(' + comedi_buf_put (s-async, val 16)) { Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 37/48] staging: comedi: pcmmio: use pcmmio_dio_{read, write}() in interrupt_pcmmio()

2013-12-09 Thread H Hartley Sweeten
Use the helper functions to read/write the PCMMIO_PAGE_INT_ID registers. This allows removing the need to lock/unlock the spinlock 'pagelock' and removes the need for the for () loop that did the read/write of the 3 paged registers. Also, remove the need for the 'got1' local variable by just

[PATCH 14/48] staging: comedi: pcmmio: tidy up the ao subdevice init

2013-12-09 Thread H Hartley Sweeten
Add some whitespace to the analog output subdevice init and reorder the init to follow the norm in comedi drivers. Remove the init of len_chanlist. This member is only used for subdevices the support async commands. The core will default the value correctly. Signed-off-by: H Hartley Sweeten

[PATCH 40/48] staging: comedi: pcmmio: only hook up async command support if irq is available

2013-12-09 Thread H Hartley Sweeten
Refactor the board attach so that the async commands support is only hooked up if the irq is actually available. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 33/48] staging: comedi: pcmmio: remove 'num_asic_chans' from subdevice private data

2013-12-09 Thread H Hartley Sweeten
The 'num_asic_chans' that support interrupts in the interrupt subdevice is always initialized to '24'. Remove this unneeded information from the subdevice private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 10/48] staging: comedi: pcmmio: remove 'iobase' from subdevice private data

2013-12-09 Thread H Hartley Sweeten
The 'iobase' is only used to pass the iobase address of the analog output registers to ao_winsn(). This address is simply dev-iobase + 8. Use that instead and remove the 'iobase' from the subdevice private data. This removes a couple more uses of the ugly 'subpriv' macro. Signed-off-by: H

[PATCH 44/48] staging: comedi: pcmmio: cleanup the private data

2013-12-09 Thread H Hartley Sweeten
Fix the types of some of the private data members. The 'enabled_mask' and 'stop_count' should be unsigned int values. The 'active' and 'continuous' members are flags, change them to unsigned int bit fields. Remove the 'sprivs' pointer. This should have been removed when the subdevice private data

[PATCH 09/48] staging: comedi: pcmmio: move ai shadow data to device private data

2013-12-09 Thread H Hartley Sweeten
There is only one ai subdevice in this driver so there is no reason to hold the last sample written to each channel in the subdevice private data. Move the data into the device private data, This gets some of the data out of the subdevice private data union and removes some of the uses of the

[PATCH 21/48] staging: comedi: pcmmio: remove 'subpriv' macro

2013-12-09 Thread H Hartley Sweeten
This macro relies on a local variable having a specific name. Remove the macro and add a local variable where used. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 15/48] staging: comedi: pcmmio: tidy up the irq request

2013-12-09 Thread H Hartley Sweeten
The for () loop that does the request_irq() in this driver is a bit of an overkill. The code appears to have been copied from the pcmuio driver which supports boards with 1 or 2 ASIC devices. The board supported by this driver only has 1 ASIC. Simplify the code and store the irq number in the

[PATCH] staging: comedi: addi_apci_1032: fix subdevice type/flags bug

2013-12-09 Thread H Hartley Sweeten
The SDF_CMD_READ should be one of the s-subdev_flags not part of the s-type. 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/addi_apci_1032.c | 4 ++-- 1 file

[PATCH 00/31] staging: comedi: tidy up all the comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
This series cleans up all the comedi_lrange tables to make it easier to spot common code that could be reduced. The series is just to make it easier to review. If needed I can repost this as a single patch. H Hartley Sweeten (31): staging: comedi: pcl812: tidy up comedi_lrange tables

[PATCH 15/31] staging: comedi: ni_pcimio: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE and UNI_RANGE macros instead of the more generic RANGE macro to reduce possible typo errors. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 11/31] staging: comedi: dt282x: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE and UNI_RANGE macros instead of the more generic RANGE macro to reduce possible typo errors. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 03/31] staging: comedi: cb_pcidas64: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/cb_pcidas64.c | 142 +-- 1 file changed,

[PATCH 19/31] staging: comedi: das16m1: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/das16m1.c | 24 1 file changed, 12

[PATCH 20/31] staging: comedi: fl512: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/fl512.c | 19 ++- 1 file changed, 10

[PATCH 23/31] staging: comedi: icp_multi: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/icp_multi.c | 13 +++-- 1 file changed, 7 insertions(+),

[PATCH 17/31] staging: comedi: dmm32at: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/dmm32at.c | 26 -- 1 file changed, 12

[PATCH 14/31] staging: comedi: amplc_pci224: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/amplc_pci224.c | 44 --- 1 file changed,

[PATCH 13/31] staging: comedi: adl_pci9118: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/adl_pci9118.c | 42 +++- 1 file changed,

[PATCH 25/31] staging: comedi: dyna_pci10xx: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/dyna_pci10xx.c | 11 ++- 1 file changed, 6

[PATCH 31/31] staging: comedi: s626: tidy up comedi_lrange table

2013-12-09 Thread H Hartley Sweeten
The comedi_lrange tables are fixed length based on the 'length' value before the array of comedi_krange 'range' values. For aesthetics, remove the trailing comma from last 'range' value. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

[PATCH 30/31] staging: comedi: adl_pci9111: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the format of the comedi_lrange table. 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/adl_pci9111.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH 16/31] staging: comedi: amplc_pci230: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/amplc_pci230.c | 28 ++- 1 file changed,

[PATCH 26/31] staging: comedi: comedi_test: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/comedi_test.c | 9 - 1 file changed, 4 insertions(+), 5

[PATCH 10/31] staging: comedi: dt2811: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE and UNI_RANGE macros instead of the more generic RANGE macro to reduce possible typo errors. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 18/31] staging: comedi: adq12b: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/adq12b.c | 27 ++- 1 file changed, 14

[PATCH 22/31] staging: comedi: aio_aio12_8: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/aio_aio12_8.c | 13 ++--- 1 file changed, 6

[PATCH 27/31] staging: comedi: ni_at_a2150: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE macro instead of the more generic RANGE macro to reduce the potential for typos. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 12/48] staging: comedi: pcmmio: return error if ao conversion times out

2013-12-09 Thread H Hartley Sweeten
Rename wait_dac_ready() so it has namespace associated with the driver. Fix the function so it returns an errno if the conversion times out. Propogate this errno if it happens. Define the analog output status register to remove the magic numbers. Signed-off-by: H Hartley Sweeten

[PATCH 21/31] staging: comedi: pcl816: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/pcl816.c | 21 +++-- 1 file changed, 11

[PATCH 24/31] staging: comedi: me4000: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/me4000.c | 13 ++--- 1 file changed, 6 insertions(+), 7

[PATCH 12/31] staging: comedi: das1800: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE and UNI_RANGE macros instead of the more generic RANGE macro to reduce possible typo errors. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 01/31] staging: comedi: pcl812: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/pcl812.c | 248 +--- 1 file changed,

[PATCH 02/31] staging: comedi: ni_mio_common: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. Use the BIP_RANGE and UNI_RANGE macros instead of the more generic RANGE macro to reduce possible typo errors. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 08/31] staging: comedi: cb_pcidas: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/cb_pcidas.c | 55 ++ 1 file changed,

[PATCH 29/48] staging: comedi: pcmmio: remove unnecessary for () loop and sanity check

2013-12-09 Thread H Hartley Sweeten
There is only one asic on the board so the for () loop in the interrupt handler to check multiple asics is not needed. The sanity check of the 'irq' in the interrupt handler is also not needed. If it _is_ wrong we have bigger problems in the kernel. Signed-off-by: H Hartley Sweeten

[PATCH 07/48] staging: comedi: pcmmio: define the offset to the 2nd ADC device

2013-12-09 Thread H Hartley Sweeten
There are two ADC devices on this board. The first one handles ai channels 0-7 and the second one channels 8-15. Define the offset that is added to the iobase to access the 2nd ADC device. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

[PATCH 41/48] staging: comedi: pcmmio: setup irq routing during (*attach)

2013-12-09 Thread H Hartley Sweeten
To use interrupts the IRQ routing must be configured and interrupts enabled. Currently both steps are being handled in pcmmio_start_intr(). Move the code that sets the IRQ routing into the attach of the board. At this point interrupts are still disabled. The enable and polarity bits just need to

[PATCH 36/48] staging: comedi: pcmmio: cleanup indent levels in interrupt_pcmmio()

2013-12-09 Thread H Hartley Sweeten
Remove the extra indent levels in this function that resulted from code removed in previous patches. 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/pcmmio.c | 182

[PATCH 08/48] staging: comedi: pcmmio: tidy up the ai subdevice init

2013-12-09 Thread H Hartley Sweeten
Add some whitespace to the ai subdevice init and reorder it a bit to follow the norm in comedi drivers. Remove the init of s-len_chanlist. This member is only used with subdevices that support async commands. The core will default the value correctly.. The ai subdevice only uses the s-private

[PATCH 29/31] staging: comedi: adv_pci1724: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the format of the comedi_lrange table. 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/adv_pci1724.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 28/31] staging: comedi: usbduxfast: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/usbduxfast.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 16/48] staging: comedi: pcmmio: remove unused members in private data

2013-12-09 Thread H Hartley Sweeten
The 'pol' and 'enab' members in the private data are never used. The 'num' member is set during the attach but never used. Remove them. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 09/31] staging: comedi: ni_atmio16d: tidy up comedi_lrange tables

2013-12-09 Thread H Hartley Sweeten
Tidy up the whitespace in the comedi_lrange tables. 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/ni_atmio16d.c | 51 1 file changed,

[PATCH 32/48] staging: comedi: pcmmio: remove 'asic_chan' from subdevice private data

2013-12-09 Thread H Hartley Sweeten
The first 'asic_chan' that supports interrupts in the interrupt subdevice is always initialized to '0'. Remove this unneeded information from the subdevice private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 31/48] staging: comedi: pcmmio: remove 'first_chan' from subdevice private data

2013-12-09 Thread H Hartley Sweeten
The 'first_chan' that supports interrupts in the interrupt subdevice is always initialized to '0'. Remove this unneeded information from the subdevice private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 11/48] staging: comedi: pcmmio: cleanup ao_winsn()

2013-12-09 Thread H Hartley Sweeten
Rename this function to have namespace associated with the driver. Refactor the function to remove the extra write to the command register to set the range before writing the DAC value. Since the range is constant for the entire comedi_insn it only needs to be set once. All writes to the DAC

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-09 Thread Octavian Purdila
On Thu, Dec 5, 2013 at 4:02 AM, Arve Hjønnevåg a...@android.com wrote: On Wed, Dec 4, 2013 at 2:02 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 01:55:34PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec

Re: [PATCH] Staging: android: fix parantheses coding style issue in alarm-dev.c

2013-12-09 Thread Preetam D'Souza
Hey Greg--I'm working against Linus' latest tree on https://github.com/torvalds/linux.git ... which tree should I be using for the updated code? Thanks! Preetam On Sun, Dec 8, 2013 at 5:30 PM, Greg KH gre...@linuxfoundation.org wrote: On Sat, Dec 07, 2013 at 02:35:52PM -0800, Preetam D'Souza

Re: [Suggestion] drivers: staging: dgrp: dgrp_net_ops.c: 'buf' is used without initialized.

2013-12-09 Thread Greg KH
On Tue, Dec 10, 2013 at 01:07:58PM +0800, Chen Gang wrote: Hello Maintainers: The compiler help me find a warning about it, please help check thanks. The related git commit: b73db54 Staging: dgrp: Refactor the function dgrp_receive() in drrp_net_ops.c The related warning (with

  1   2   >