[PATCH 046/108] staging: comedi: addi_apci_3120: remove interrupt support from ai (*insn_read)

2014-11-04 Thread H Hartley Sweeten
(*insn_read) functions are supposed to do simple polled reads of a single channel. This driver tries to be tricky and allow enabling interrupts in the analog input (*insn_config) to allow the (*insn_read) to read samples with the end-of-conversion interrupt. The (*insn_config) doesn't follow the c

[PATCH 071/108] staging: comedi: addi_apci_3120: set scan length/start after programming chanlist

2014-11-04 Thread H Hartley Sweeten
The APCI-3120 documentation says that the PR/PA bits should be set after the chanlist sequence is programmed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_3120.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH 025/108] staging: comedi: addi_apci_3120: tidy up scan chanlist programming

2014-11-04 Thread H Hartley Sweeten
Define the chanlist register and its bits and tidy up the programming of the scan chanlist. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 38 +++--- drivers/staging/comedi/drivers/addi_apci_3120.c

[PATCH 010/108] staging: comedi: addi_apci_3120: introduce apci3120_timer_set_mode()

2014-11-04 Thread H Hartley Sweeten
Introduce a helper function to set the operation mode of a timer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 57 +++--- drivers/staging/comedi/drivers/addi_apci_3120.c| 6 +++ 2 files chan

[PATCH 033/108] staging: comedi: addi_apci_3120: remove devpriv->mode '0xef' magic value

2014-11-04 Thread H Hartley Sweeten
This mask value is the same as APCI3120_DISABLE_TIMER_COUNTER. Use that instead and remove the "magic" value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH 035/108] staging: comedi: addi_apci_3120: remove APCI3120_DISABLE_WATCHDOG

2014-11-04 Thread H Hartley Sweeten
For aesthetics, remove this define and just use ~APCI3120_ENABLE_WATCHDOG. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/

[PATCH 024/108] staging: comedi: addi_apci_3120: remove unnecessary reset of the scan sequence

2014-11-04 Thread H Hartley Sweeten
The scan sequence does not need to be reset when the driver is attached. Remove the code in apci3120_reset() that does this. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 7 --- 1 file changed, 7 delet

[PATCH 075/108] staging: comedi: addi_apci_3120: remove private data 'b_ExttrigEnable'

2014-11-04 Thread H Hartley Sweeten
This member of the private data is not really needed. The devpriv->ctrl value can be checked to determine if the external trigger is enabled. Remove the unnecessary member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv

[PATCH 008/108] staging: comedi: addi_apci_3120: rename private data 'b_TimerSelectMode'

2014-11-04 Thread H Hartley Sweeten
Rename this CamelCase member of the private data and tidy up the mask/set of its bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 70 +- drivers/staging/comedi/drivers/addi_apci_3120.c|

[PATCH 039/108] staging: comedi: addi_apci_3120: remove APCI3120_DISABLE_SCAN

2014-11-04 Thread H Hartley Sweeten
This define is not used in the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c b

[PATCH 030/108] staging: comedi: addi_apci_3120: properly disable interrupts in apci3120_cancel()

2014-11-04 Thread H Hartley Sweeten
The APCI3120_DISABLE_ALL_INTERRUPT define is a mask value used to clear bits in devpriv->b_ModeSelectRegister to disable the interrupt sources. Writing this value directly sets unintended bits. Just set the devpriv->b_ModeSelectRegister to '0' and write that to the register. Signed-off-by: H Har

[PATCH 047/108] staging: comedi: addi_apci_3120: remove apci3120_ai_insn_config()

2014-11-04 Thread H Hartley Sweeten
This function does not follow the comedi API for (*insn_config) functions. It's also no long needed. Just remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 15 --- drivers/staging/comedi

[PATCH 009/108] staging: comedi: addi_apci_3120: tidy up timer_mode masking

2014-11-04 Thread H Hartley Sweeten
Define a macro that returns the mask of the timer_mode bits for a given timer. Use the macro to remove the "magic" values used to clear the bits. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../staging/comedi/drivers/addi-data/hwdrv_apci3120.c| 16 ---

[PATCH 085/108] staging: comedi: addi_apci_3120: rename private data 'b_DmaDoubleBuffer'

2014-11-04 Thread H Hartley Sweeten
Rename this CamelCase member of the private data and convert it to a bit-field. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 4 ++-- drivers/staging/comedi/drivers/addi_apci_3120.c | 4 ++-- 2 f

[PATCH 034/108] staging: comedi: addi_apci_3120: remove APCI3120_DISABLE_TIMER_COUNTER

2014-11-04 Thread H Hartley Sweeten
For aesthetics, remove this define and just use ~APCI3120_ENABLE_TIMER_COUNTER. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/

[PATCH 052/108] staging: comedi: addi_apci_3120: remove private data 'ui_AiChannelList'

2014-11-04 Thread H Hartley Sweeten
This member of the private data is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_3120.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/addi_apci_3120.c b/drivers

[PATCH 081/108] staging: comedi: addi_apci_3120: move DMA init code to apci3120_init_dma()

2014-11-04 Thread H Hartley Sweeten
Move the common code used to initialize DMA to apci3120_init_dma(). This follows the programming procedure described in the APCI-3120 documentation. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 99 ++---

[PATCH 037/108] staging: comedi: addi_apci_3120: remove APCI3120_DISABLE_EOC_INT

2014-11-04 Thread H Hartley Sweeten
For aesthetics, remove this define and just use ~APCI3120_ENABLE_EOC_INT. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/stagin

[PATCH 021/108] staging: comedi: addi_apci_3120: move apci3120_timer_enable() to driver source

2014-11-04 Thread H Hartley Sweeten
Move this helper function from the included source file into the main driver source file. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 12 drivers/staging/comedi/drivers/addi_apci_3120.c

[PATCH 017/108] staging: comedi: addi_apci_3120: tidy up apci3120_exttrig_{enable, disable}()

2014-11-04 Thread H Hartley Sweeten
Merge these two functions and use an 'enable' parameter to determine if the external trigger needs to be enabled or disabled. This function always succeeds and the callers don't check the return. Change the return type to void. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hart

[PATCH 002/108] staging: comedi: addi_apci_3120: rename private data 'b_DigitalOutputRegister'

2014-11-04 Thread H Hartley Sweeten
Rename this CamelCase member of the private data. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 50 -- drivers/staging/comedi/drivers/addi_apci_3120.c| 2 +- 2 files changed, 18 insertion

[PATCH 000/108] staging: comedi: addi_apci_3120: cleanup driver

2014-11-04 Thread H Hartley Sweeten
Following is the big cleanup series for the ADDI-DATA APCI-3120 driver. Quick summary of the cleanup: * Removes all the CamelCase * Cleans up the register map defines * Fixes the Analog Input subdevice * Fixes the async command support for the Analog Input subdevice * Cleans up all the

[PATCH 019/108] staging: comedi: addi_apci_3120: fix timer 2 disable in apci3120_write_insn_timer()

2014-11-04 Thread H Hartley Sweeten
The wrong define is being used to disable the gate to stop timer 2 in this function. Use the apci3120_timer_enable() helper to properly disable the timer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 4 +

[PATCH 007/108] staging: comedi: addi_apci_3120: rename APCI3120_TIMER_VALUE

2014-11-04 Thread H Hartley Sweeten
For aesthetics, rename this register offset. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 9 - drivers/staging/comedi/drivers/addi_apci_3120.c | 1 + 2 files changed, 5 insertions(+), 5

[PATCH 004/108] staging: comedi: addi_apci_3120: introduce apci3120_timer_read()

2014-11-04 Thread H Hartley Sweeten
Introduce a helper function to select a timer and read a value from it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 45 -- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/dri

Re: [PATCH 4/4] [media] solo6x10: don't turn off/on encoder interrupt in processing loop

2014-11-04 Thread Andrey Utkin
2014-11-03 19:15 GMT+04:00 Hans Verkuil : > Hi Andrey, > > On 10/29/2014 05:03 PM, Andrey Utkin wrote: >> The used approach actually cannot prevent new encoder interrupt to >> appear, because interrupt handler can execute in different thread, and >> in current implementation there is still race con

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

2014-11-04 Thread Philipp Zabel
Am Dienstag, den 04.11.2014, 16:19 + schrieb Emil Velikov: > Hi Philipp, > > Just a flyby question > > On 04/11/14 10:52, Philipp Zabel wrote: > > The imx-drm driver was put into staging mostly for the following reasons, > > all of which have been addressed or superseded: > > - convert the i

[PATCH 07/13] staging: comedi: usbduxfast: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_sample_count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually add to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc

[PATCH 06/13] staging: comedi: amplc_pci230: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_scan_count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Use the comedi_nsamples_left() helper to work out the number of 'wake' samples in pci230_ai_update_fifo_trigger_level() and the number of 'todo' samples actu

[PATCH 09/13] staging: comedi: cb_pcidas: use comedi_async 'scans_done' to detect AO EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ao_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually read from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: G

[PATCH 13/13] staging: comedi: das1800: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually add to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman -

[PATCH 04/13] staging: comedi: amplc_pci230: use comedi_async 'scans_done' to detect AO EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Use the helper function comedi_nscans_left() to get the number of scans in the async buffer of left in the command. Signed-off-by: H Hartley Sweeten Cc: Ian Abbo

[PATCH 03/13] staging: comedi: comedi_test: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Use the helper function comedi_nscans_left() to check if the number of scans left in the command. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 05/13] staging: comedi: drivers: introduce comedi_nsamples_left()

2014-11-04 Thread H Hartley Sweeten
Introduce a helper function to calculate the number of samples remaining when the cmd->stop_src is TRIG_COUNT. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedidev.h | 2 ++ drivers/staging/comedi/drivers.c | 32

[PATCH 12/13] staging: comedi: quatech_daqp_cs: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 27 1 file changed, 14 in

[PATCH 10/13] staging: comedi: cb_pcidas64: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually add to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg

[PATCH 08/13] staging: comedi: cb_pcidas: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually add to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kro

[PATCH 01/13] staging: comedi: drivers: introduce comedi_nscans_left()

2014-11-04 Thread H Hartley Sweeten
Introduce a helper function to determine the number of scans left in the async command. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedidev.h | 2 ++ drivers/staging/comedi/drivers.c | 39 ++ 2 files

[PATCH 00/13] staging: comedi: convert more drivers to use 'scans_done'

2014-11-04 Thread H Hartley Sweeten
This series converts the remaining comedi drivers to use the comedi_async 'scans_done' member to count the number of scans completed when counting scans with a cmd->stop_src of TRIG_COUNT. H Hartley Sweeten (13): staging: comedi: drivers: introduce comedi_nscans_left() staging: comedi: amplc_p

[PATCH 11/13] staging: comedi: cb_pcidas64: use comedi_async 'scans_done' to detect AO EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ao_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Use the comedi_nsamples_left() helper to get the number of samples to actually read from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: G

[PATCH 02/13] staging: comedi: amplc_pci224: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ao_stop_count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Use the helper function comedi_nscans_left() to determine the number of scans available in the async buffer or left in the command. Signed-off-by: H Hartley Sweeten Cc: I

[PATCH 17/18] staging: comedi: addi_apci_3120: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_AiActualScan' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. The function v_APCI3120_InterruptDmaMoveBlock16bit() is then just a wrapper for comedi_buf_write_samples(). Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott

[PATCH 00/18] staging: comedi: make core track the number of scans

2014-11-04 Thread H Hartley Sweeten
The comedi drivers that support async commands with a cmd->stop_src of TRIG_COUNT currently have a private data member that is used to count the number of scans completed in order to detect the end of acquisition for the command. This series addes a new member, 'scans_done', to comedi_async and m

[PATCH 13/18] staging: comedi: usbdux: use comedi_async 'scans_done' to detect AO EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ao_sample_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbdux.c | 29 - 1

[PATCH 07/18] staging: comedi: pcl818: remove private data member 'ai_act_chan'

2014-11-04 Thread H Hartley Sweeten
This member of the private data is set to '0' but never used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/st

[PATCH 03/18] staging: comedi: amplc_dio200_common: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'stopcount' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_dio200_common.c | 14 +++--- 1 file changed, 3 inser

[PATCH 05/18] staging: comedi: pcl812: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_act_scan' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 9 + 1 file changed, 1 insertion(+), 8 deleti

[PATCH 10/18] staging: comedi: pcmmio: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcmmio.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletio

[PATCH 08/18] staging: comedi: pcl818: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_act_scan' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 15 ++- 1 file changed, 6 insertions(+),

[PATCH 04/18] staging: comedi: pcl711: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ntrig' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl711.c | 16 ++-- 1 file changed, 6 insertions(+), 10 de

[PATCH 06/18] staging: comedi: pcl816: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_act_scan' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 9 + 1 file changed, 1 insertion(+), 8 deleti

[PATCH 16/18] staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_sample_count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Move the EOA check so it happens after adding the samples from the current urb to the async buffer. This prevents the unnecessary resubmit of the urb when th

[PATCH 14/18] staging: comedi: usbdux: use comedi_async 'scans_done' to detect AI EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_sample_count' and use the comedi_async 'scans_done' member to detect the analog input end-of-acquisition. Move the EOA check so it happens after adding the samples from the current urb to the async buffer. This prevents the unnecessary resubmit of the urb when th

[PATCH 18/18] staging: comedi: das800: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das800.c | 31 --- 1 file changed, 12 inse

[PATCH 09/18] staging: comedi: adv_pci1710: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_act_scan' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 26 +- 1 file changed, 5

[PATCH 12/18] staging: comedi: s626: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ai_sample_count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Also, remove the unnecessary COMEDI_CB_EOS event. The core automatically detects and adds that event. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Ha

[PATCH 02/18] staging: comedi: addi_apci_2032: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'stop_count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_2032.c | 17 + 1 file changed, 5 inser

[PATCH 11/18] staging: comedi: pcmuio: use comedi_async 'scans_done' to detect EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'stop_count' and use the comedi_async 'scans_done' member to detect the end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcmuio.c | 14 +++--- 1 file changed, 3 insertions(+), 1

[PATCH 15/18] staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AO EOA

2014-11-04 Thread H Hartley Sweeten
Remove the private data member 'ao_sample_count' and use the comedi_async 'scans_done' member to detect the analog output end-of-acquisition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxsigma.c | 30 ---

[PATCH 01/18] staging: comedi: comedidev.h: add 'scans_done' member to comedi_async

2014-11-04 Thread H Hartley Sweeten
Introduce a new member to comedi_async to count the number of scans completed. This member is cleared by comedi_buf_reset() along with the other comedi_async members. It is incremented in comedi_inc_scan_progress() when the end of scan is detected. This member will be used to clean up the scan cou

RE: [PATCH] Drivers: hv: vmbus: Fix a race condition when unregistering a device

2014-11-04 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, November 4, 2014 4:40 AM > To: KY Srinivasan; Haiyang Zhang > Cc: Greg Kroah-Hartman; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org > Subject: [PATCH] Drivers: hv: vmbus: Fix a race

[PATCH 03/15] staging: unisys: split double assignment in visor_charqueue_create()

2014-11-04 Thread Benjamin Romer
Split up the doubled assignment in visor_charqueue_create() into two separate assignments. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/charqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/

[PATCH 13/15] staging: unisys: fix spacing in visorkmodutils.c

2014-11-04 Thread Benjamin Romer
Remove all the extraneous blank lines from visorkmodutils.c. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/visorkmodutils.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/unisys/visorutil/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodu

[PATCH 07/15] staging: unisys: remove unnecessary spaces in casts in memregion_direct.c

2014-11-04 Thread Benjamin Romer
Get rid of all extra spaces between casts and their targets in this file. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/memregion_direct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers

[PATCH 02/15] staging: unisys: refactor CHARQUEUE

2014-11-04 Thread Benjamin Romer
Remove the typedef and just use struct charqueue instead. Update all references. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/charqueue.c | 21 +++-- drivers/staging/unisys/visorutil/charqueue.h | 17 + 2 files changed, 20 insertions(+), 18 d

[PATCH 06/15] staging: unisys: refactor visor_memregion_create()

2014-11-04 Thread Benjamin Romer
Fix the sizeof() so it uses the variable name rather than the type, fix the argument alignment to the kzalloc(), and rename the goto label. Away => cleanup Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/memregion_direct.c | 8 1 file changed, 4 insertions(+), 4 dele

[PATCH 05/15] staging: unisys: remove typedef for MEMREGION

2014-11-04 Thread Benjamin Romer
Remove the typedef for this structure and just use struct memregion instead. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel.h | 2 +- .../unisys/visorchannel/visorchannel_funcs.c | 6 ++-- drivers/staging/unisys/visorchipset/parser.c | 2 +- dri

[PATCH 15/15] staging: unisys: refactor visorutil_mod_init()

2014-11-04 Thread Benjamin Romer
Fix the function name declaration so it is just one line, and add the missing brackets to the else clause in the if statement. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/visorkmodutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/sta

[PATCH 00/15] staging: unisys: cleanup in visorutil

2014-11-04 Thread Benjamin Romer
Fix warnings, errors, and strict checks in the visorutil directory. Benjamin Romer (15): staging: unisys: fix line spacing in charqueue.c staging: unisys: refactor CHARQUEUE staging: unisys: split double assignment in visor_charqueue_create() staging: unisys: add comment to spinlock in str

[PATCH 12/15] staging: unisys: fix bracketing in visor_periodic_work_stop()

2014-11-04 Thread Benjamin Romer
The last if statement in this function is missing brackets on the else clause. Add them. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/periodic_work.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorutil/periodic_work.c b/dr

[PATCH 14/15] staging: unisys: refactor visorutil_spar_detect()

2014-11-04 Thread Benjamin Romer
Fix the declaration line so it is just one single line, and add the missing brackets on the else clause in the if statement. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/visorkmodutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/stagi

[PATCH 01/15] staging: unisys: fix line spacing in charqueue.c

2014-11-04 Thread Benjamin Romer
Clean up the extraneous blank lines in charqueue.c. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/charqueue.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c ind

[PATCH 08/15] staging: unisys: remove extra blank lines in memregion_direct.c

2014-11-04 Thread Benjamin Romer
Get rid of the extra blank lines in this file. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/memregion_direct.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drivers/staging/unisys/visorutil/memregion_direct.c ind

[PATCH 04/15] staging: unisys: add comment to spinlock in struct charqueue

2014-11-04 Thread Benjamin Romer
Add a comment to the charqueue's spinlock to explain that it is a lock for the structure. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/charqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/sta

[PATCH 10/15] staging: unisys: fix sizeof() in visor_memregion_create_overlapped()

2014-11-04 Thread Benjamin Romer
Use the variable name rather than the type in the sizeof() call in this function. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/memregion_direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorutil/memregion_direct.c b/drive

[PATCH 11/15] staging: unisys: fix spacing in periodic_work.c

2014-11-04 Thread Benjamin Romer
Get rid of all extraneous blank lines in periodic_work.c. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/periodic_work.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/staging/unisys/visorutil/periodic_work.c b/drivers/staging/unisys/visorutil/p

[PATCH 09/15] staging: unisys: fix line over 80 characters in mapit()

2014-11-04 Thread Benjamin Romer
The error output in mapit() in memregion_direct.c has variables past the 80 character limit. Move them to the next line, but the string constant will still go past the limit, and that's okay. Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/memregion_direct.c | 3 ++- 1 file ch

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

2014-11-04 Thread Emil Velikov
Hi Philipp, Just a flyby question On 04/11/14 10:52, Philipp Zabel wrote: > The imx-drm driver was put into staging mostly for the following reasons, > all of which have been addressed or superseded: > - convert the irq driver to use linear irq domains > - work out the device tree bindings, thi

Re: [PATCH 2/2] move imx-hdmi to bridge/dw-hdmi

2014-11-04 Thread Greg Kroah-Hartman
On Tue, Nov 04, 2014 at 09:39:58PM +0800, Andy Yan wrote: > From: Andy yan > > the original imx hdmi driver is under staging/imx-drm, > which depends on imx-drm, so move the imx hdmi drvier out > to drm/bridge and rename imx-hdmi to dw-hdmi > > Change-Id: I5f417372f256aa26cd00a3cd0160741680afd39

Re: [PATCH 0/2] make imx hdmi publicly used by dw hdmi compatible platform

2014-11-04 Thread Russell King - ARM Linux
On Tue, Nov 04, 2014 at 09:33:10PM +0800, Andy Yan wrote: > From: Andy yan > > We found freescale imx6 and rockchip rk3288 and Ingenic JZ4780 (Xburst/MIPS) > use the interface compatible Designware HDMI IP, but they also have some > lightly difference, such as phy pll configuration, register widt

Re: [PATCH 1/2] imx-drm: imx-hdmi: split imx soc specific code from imx-hdmi

2014-11-04 Thread Zubair Lutfullah Kakakhel
Hi Andy, On 04/11/14 13:33, Andy Yan wrote: > imx6 and rockchip rk3288 and JZ4780 (Ingenic Xburst/MIPS) > use the interface compatible Designware HDMI IP, but they > also have some lightly difference, such as phy pll configuration, > register width(imx hdmi register is one byte, but rk3288 is 4 >

[PATCH 1/2] imx-drm: imx-hdmi: split imx soc specific code from imx-hdmi

2014-11-04 Thread Andy Yan
imx6 and rockchip rk3288 and JZ4780 (Ingenic Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly difference, such as phy pll configuration, register width(imx hdmi register is one byte, but rk3288 is 4 bytes width), 4K support(imx6 doesn't support 4k, but r

Re: [PATCH 2/2] move imx-hdmi to bridge/dw-hdmi

2014-11-04 Thread Zubair Lutfullah Kakakhel
Hi, On 04/11/14 13:39, Andy Yan wrote: > From: Andy yan > > the original imx hdmi driver is under staging/imx-drm, > which depends on imx-drm, so move the imx hdmi drvier out > to drm/bridge and rename imx-hdmi to dw-hdmi > > Change-Id: I5f417372f256aa26cd00a3cd0160741680afd39d > --- > drivers

Re: [PATCH] tools: hv: introduce -n/--no-daemon option

2014-11-04 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Wednesday, October 22, 2014 9:07 AM >> To: KY Srinivasan; Haiyang Zhang; de...@linuxdriverproject.org >> Cc: linux-ker...@vger.kernel.org >> Subject: [PATCH] tools: hv: introduce -n

[PATCH 0/2] make imx hdmi publicly used by dw hdmi compatible platform

2014-11-04 Thread Andy Yan
From: Andy yan We found freescale imx6 and rockchip rk3288 and Ingenic JZ4780 (Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly difference, such as phy pll configuration, register width(imx hdmi register is one byte, but rk3288 is 4 bytes width and can

[PATCH] Drivers: hv: vmbus: Fix a race condition when unregistering a device

2014-11-04 Thread Vitaly Kuznetsov
When build with Debug the following crash is sometimes observed: Call Trace: [] string+0x40/0x100 [] vsnprintf+0x218/0x5e0 [] ? trace_hardirqs_off+0xd/0x10 [] vscnprintf+0x11/0x30 [] vprintk+0xd0/0x5c0 [] ? vmbus_process_rescind_offer+0x0/0x110 [hv_vmbus] [] printk+0x41/0x45 [] vmbus_device

Re: [PATCH 3/3] MAINTAINERS: add maintainer for i.MX DRM driver

2014-11-04 Thread Shawn Guo
On Tue, Nov 4, 2014 at 6:52 PM, Philipp Zabel wrote: > Add myself as the maintainer of the i.MX DRM driver. > > Signed-off-by: Philipp Zabel Acked-by: Shawn Guo > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index df2aecf..ddf19

Re: [PATCH 01/15] [media] Move mediabus format definition to a more standard place

2014-11-04 Thread Hans Verkuil
Well, I gave two alternatives :-) Both are fine as far as I am concerned, but it would be nice to hear what others think. Regards, Hans On 11/04/14 11:45, Boris Brezillon wrote: > Hi Hans, > > On Tue, 04 Nov 2014 11:20:40 +0100 > Hans Verkuil wrote: > >> Hi Boris, >> >> On 11/04/14 1

Re: [PATCH 2/3] drm: imx: Move imx-drm driver out of staging

2014-11-04 Thread Philipp Zabel
Am Dienstag, den 04.11.2014, 11:52 +0100 schrieb Philipp Zabel: > The imx-drm driver was put into staging mostly for the following reasons, > all of which have been addressed or superseded: > - convert the irq driver to use linear irq domains > - work out the device tree bindings, this lead to th

[PATCH 2/3] drm: imx: Move imx-drm driver out of staging

2014-11-04 Thread Philipp Zabel
The imx-drm driver was put into staging mostly for the following reasons, all of which have been addressed or superseded: - convert the irq driver to use linear irq domains - work out the device tree bindings, this lead to the common of_graph bindings being used - factor out common helper fun

[PATCH 1/3] staging: imx-drm: remove old FSF address from license text

2014-11-04 Thread Philipp Zabel
Linux already includes a copy of the GPL, checkpatch compains about the address. Remove it from the license text. Signed-off-by: Philipp Zabel --- drivers/staging/imx-drm/imx-ldb.c | 5 - drivers/staging/imx-drm/imx-tve.c | 5 - drivers/staging/imx-drm/ipuv3-crtc.c

[PATCH 3/3] MAINTAINERS: add maintainer for i.MX DRM driver

2014-11-04 Thread Philipp Zabel
Add myself as the maintainer of the i.MX DRM driver. Signed-off-by: Philipp Zabel --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index df2aecf..ddf191d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3183,6 +3183,13 @@ F: drivers/gpu/drm

Re: [PATCH 01/15] [media] Move mediabus format definition to a more standard place

2014-11-04 Thread Boris Brezillon
Hi Hans, On Tue, 04 Nov 2014 11:20:40 +0100 Hans Verkuil wrote: > Hi Boris, > > On 11/04/14 10:54, Boris Brezillon wrote: > > Rename mediabus formats and move the enum into a separate header file so > > that it can be used by DRM/KMS subsystem without any reference to the V4L2 > > subsystem. >

Re: [PATCH 01/15] [media] Move mediabus format definition to a more standard place

2014-11-04 Thread Hans Verkuil
Hi Boris, On 11/04/14 10:54, Boris Brezillon wrote: > Rename mediabus formats and move the enum into a separate header file so > that it can be used by DRM/KMS subsystem without any reference to the V4L2 > subsystem. > > Old V4L2_MBUS_FMT_ definitions are now referencing MEDIA_BUS_FMT_ value. I

Re: [PATCH 01/15] [media] Move mediabus format definition to a more standard place

2014-11-04 Thread Hans Verkuil
On 11/04/14 11:20, Hans Verkuil wrote: > Hi Boris, > > On 11/04/14 10:54, Boris Brezillon wrote: >> Rename mediabus formats and move the enum into a separate header file so >> that it can be used by DRM/KMS subsystem without any reference to the V4L2 >> subsystem. >> >> Old V4L2_MBUS_FMT_ defini

[PATCH 06/15] [media] platform: Make use of media_bus_format enum

2014-11-04 Thread Boris Brezillon
In order to have subsytem agnostic media bus format definitions we've moved media bus definition to include/uapi/linux/media-bus-format.h and prefixed enum values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Reference new definitions in all platform drivers. Signed-off-by: Boris Brezillon --- D

[PATCH 04/15] [media] i2c: Make use of media_bus_format enum

2014-11-04 Thread Boris Brezillon
In order to have subsytem agnostic media bus format definitions we've moved media bus definitions to include/uapi/linux/media-bus-format.h and prefixed enum values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Replace all references to the old definitions in i2c drivers. Signed-off-by: Boris Brezi

[PATCH 02/15] [media] v4l: Update subdev-formats doc with new MEDIA_BUS_FMT values

2014-11-04 Thread Boris Brezillon
In order to have subsytem agnostic media bus format definitions we've moved media bus definition to include/uapi/linux/media-bus-format.h and prefixed enum values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Update the v4l documentation accordingly. Signed-off-by: Boris Brezillon --- Documentat

[PATCH 08/15] staging: media: Make use of media_bus_format enum

2014-11-04 Thread Boris Brezillon
In order to have subsytem agnostic media bus format definitions we've moved media bus definition to include/uapi/linux/media-bus-format.h and prefixed enum values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Reference new definitions in all media drivers residing in staging. Signed-off-by: Boris

[PATCH 12/15] [media] i2c: Replace v4l2-mediabus.h inclusion with v4l2-mbus.h

2014-11-04 Thread Boris Brezillon
The v4l2-mediabus.h header is now deprecated and should be replaced with v4l2-mbus.h. Signed-off-by: Boris Brezillon --- drivers/media/i2c/mt9m032.c | 2 +- drivers/media/i2c/mt9t001.c | 2 +- drivers/media/i2c/mt9v032.c | 2 +- drivers/media/i2c/smiapp/

<    1   2   3   >