Re: [PATCH]staging: slicoss: Fix possible reuse of freed memory in timer function

2014-02-10 Thread Denis Kirjanov
On 2/10/14, Kirill Tkhai wrote: > Do not call kfree() till timer function is finished. > > [This was found using grep. Compiled tested only] > > Signed-off-by: Kirill Tkhai > CC: Joe Perches > CC: Greg Kroah-Hartman CC Chris Harrer. The problem with that driver is that alacritech guys don't s

[PATCH 1/2] drivers:staging:silicom: Fixed MACRO and Extern Coding style warnings and errors

2014-02-10 Thread Surendra Patil
Fixed MACRO and Extern Coding style warnings and errors - listed only few bpctl_mod.c:120: WARNING: externs should be avoided in .c files bpctl_mod.c:121: WARNING: externs should be avoided in .c files bpctl_mod.c:122: WARNING: externs should be avoided in .c files bpctl_mod.c:124: WARNING: externs

[PATCH 2/2] drivers:staging:silicom Removed bp_proc_create() declaration

2014-02-10 Thread Surendra Patil
Removed bp_proc_create() declaration from bp_mod.h, already declared static in bpctl_mod.c in first patch Signed-off-by: Surendra Patil --- drivers/staging/silicom/bp_mod.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/silicom/bp_mod.h b/drivers/staging/silicom/bp_mod.h i

Re: [PATCH]staging: slicoss: Fix possible reuse of freed memory in timer function

2014-02-10 Thread Joe Perches
On Mon, 2014-02-10 at 22:36 +0400, Kirill Tkhai wrote: > Do not call kfree() till timer function is finished. > > [This was found using grep. Compiled tested only] > > Signed-off-by: Kirill Tkhai > CC: Joe Perches > CC: Greg Kroah-Hartman I don't need to be cc'd on this. Perhaps the MAINTAIN

[PATCH 9/9] staging: comedi: pcl816: trigger sources were validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Remove the unnecessary checks in pcl816_ai_cmd(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 9 - 1 file changed, 9

[PATCH 5/9] staging: comedi: cb_pcidas: trigger sources are validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Refactor the code in cb_pcidas_ai_cmd() to remove the final else which can never be reached. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driver

[PATCH 1/9] staging: comedi: usbduxfast: 'cmd->chanlist_len' was already validataed

2014-02-10 Thread H Hartley Sweeten
Remove the unnecessary check of 'cmd->chanlist_len > 0'. The (*do_cmdtest) already validated this before the (*do_cmd) was called. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxfast.c | 40 ++--- 1 file

[PATCH 4/9] staging: comedi: cb_das16_cs: remove incomplete async command support

2014-02-10 Thread H Hartley Sweeten
This driver has a (*do_cmdtest) function for analog input async command support but the (*do_cmd) function just returns -EINVAL. Remove the incomplete async command support. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_das16_cs.c

[PATCH 6/9] staging: comedi: comedi_test: trigger sources are validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Refactor the code in waveform_ai_cmd() to remove the final else which can never be reached. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers

[PATCH 3/9] staging: comedi: adl_pci9111: trigger sources are validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Refactor the code in pci9111_ai_do_cmd() to use if/else instead of the switch since the default cases can never be reached. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 7/9] staging: comedi: das800: trigger sources are validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Refactor the code in das800_ai_do_cmd() to use if/else instead of the switch since the default cases can never be reached. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 2/9] staging: comedi: usbduxfast: remove TRIG_TIMER from scan_begin_src

2014-02-10 Thread H Hartley Sweeten
Currently the (*do_cmdtest) indicates that TRIG_TIMER is a valid scan_begin_src but later this source is tested as -EINVAL. To simplify the code a bit just remove the TRIG_TIMER source. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/us

[PATCH 8/9] staging: comedi: pcl812: trigger sources were validated in (*do_cmdtest)

2014-02-10 Thread H Hartley Sweeten
The trigger sources were already validataed in the (*do_cmdtest) before the (*do_cmd) is called. Remove the unnecessary checks in pcl812_ai_cmd(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 18 -- 1 file

[PATCH 0/9] staging: comedi: remove some async command cruft

2014-02-10 Thread H Hartley Sweeten
The comedi core always calls the subdevice (*do_cmdtest) to validata the async command before it calls the (*do_cmd) to actually execute the command. Since the (*do_cmdtest) has already validataed the command, any duplicate tests in the (*do_cmd) are unnecessary. Remove them. Also, the cb_das16_c

Re: [RFC PATCH 2/3] staging: imx-drm-core: Use graph to find connection between crtc and encoder

2014-02-10 Thread Philipp Zabel
On Mon, Feb 10, 2014 at 04:26:31PM +, Russell King - ARM Linux wrote: [...] > Why is this loop soo complicated? Why do you need to mess around with > this "last_ep" stuff - you don't actually end up using it. The last_ep dance is necessary because v4l2_of_get_next_endpoint(node,prev) does not

RE: [PATCH] hyperv_fb: Add screen refresh after pause/resume operation

2014-02-10 Thread Haiyang Zhang
> -Original Message- > From: Haiyang Zhang [mailto:[email protected]] > Sent: Monday, January 13, 2014 7:21 PM > To: [email protected]; [email protected]; linux- > [email protected] > Cc: Haiyang Zhang; KY Srinivasan; [email protected]; [email protected]; > linux-ke

Re: [PATCH] drivers:staging:silicom: Fixed MACRO, Extern, parentheses Coding style warnings and errors

2014-02-10 Thread Dan Carpenter
On Mon, Feb 10, 2014 at 12:18:42PM +0300, Dan Carpenter wrote: > On Sun, Feb 09, 2014 at 07:05:24PM -0800, Surendra Patil wrote: > > Fixed MACRO,Extern and parentheses Coding style warnings and errors - > > listed only few > > bpctl_mod.c:120: WARNING: externs should be avoided in .c files > > bpc

staging: sbe-2t3e3: Fix possible reuse of freed memory in timer function

2014-02-10 Thread Kirill Tkhai
Do not call kfree() till timer function is finished. [This was found using grep. Compilation tested only] Signed-off-by: Kirill Tkhai CC: Joe Perches CC: Greg Kroah-Hartman --- drivers/staging/sbe-2t3e3/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stagin

[PATCH 40/47 v2] staging: comedi: daqboard2000: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input pipe full, scanning, amd end-of-conversion status. The status to check it passed as the 'context' to comedi_timeout(). Use comedi_timeout() to wait for the analog output end-of-conversion. This also fixes a possible bug where invalid data is retur

[PATCH 39/47 v2] staging: comedi: dt282x: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
The wait_for() macro in this driver is a bit nasty. It effects control flow which according to the CodingStyle is a _very_ bad idea. The mux_busy() and ad_done() macros are also bad since they rely on a local variable having a specific name. Remove these macros and use comedi_timeout() to wait fo

[PATCH 27/47 v2] staging: comedi: ni_atmio16d: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Change the errno returned when the conversion overflows from -ETIME to -EOVERFLOW. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_atmio16d.c | 52

[PATCH 42/47 v2] staging: comedi: pcl816: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 45 - 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/driver

[PATCH 43/47 v2] staging: comedi: pcl818: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 35 +++-- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/driver

[PATCH 45/47 v2] staging: comedi: dmm32at: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input settle and end-of- conversion. These tests use different registers but the same bit so the register is passed as the 'context'. The same test is used in dmm32at_ai_cmd() but the 'insn' is not available. This is ok since the test function, and comedi

[PATCH 32/47 v2] staging: comedi: amplc_pci230: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 32 +++ 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/driver

[PATCH 18/47 v2] staging: comedi: cb_pcimdas: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Remove the unnecessary comments. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_pcimdas.c | 35 - 1 file changed, 19 insertions(+), 16

[PATCH 37/47 v2] staging: comedi: rtd520: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input and output end-of- conversions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/rtd520.c | 84 +++-- 1 file changed, 38 insertions(+), 46 deletions(-) diff -

[PATCH 46/47 v2] staging: comedi: move (*insn_{read, write}) timeout debug messages to core

2014-02-10 Thread H Hartley Sweeten
Have the comedi core display a standard dev_dbg() message when a timeout occurs and remove all the driver specific messages. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_fops.c | 13 - drivers/staging/comedi/drive

[PATCH 44/47 v2] staging: comedi: dt2814: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2814.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/st

[PATCH 41/47 v2] staging: comedi: pcl812: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Combine the logic for the pcl812 and acl812 end-of-conversion in the helper function to simplify the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c

[PATCH 05/47 v2] staging: comedi: das800: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das800.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 47/47 v2] staging: comedi: don't clear 'data' on (*insn_read) timeout

2014-02-10 Thread H Hartley Sweeten
It's not necessary to clear the returned data pointer when an (*insn_read) times out. For aesthetics, remove all of these in the drivers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 1 - drivers/staging/comedi/drive

[PATCH 34/47 v2] staging: comedi: icp_multi: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input and output end-of- conversion. Use break to exit the loop when a timeout occurs during the analog input read so that common code can be used to disable the device. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- driv

[PATCH 15/47 v2] staging: comedi: cb_das16_cs: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_das16_cs.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/s

[PATCH 24/47 v2] staging: comedi: s526: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/s526.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/s

[PATCH 26/47 v2] staging: comedi: ni_at_a2150: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_a2150.c | 42 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/driver

[PATCH 22/47 v2] staging: comedi: me_daq: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/me_daq.c | 35 ++--- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/driver

[PATCH 13/47 v2] staging: comedi: rti800: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Change the errno returned for an overrun from -EIO to -EOVERFLOW. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/rti800.c | 29 + 1 file

[PATCH 38/47 v2] staging: comedi: s626: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. This prevents a deadlock condition that could occur by providing a timeout in case the end-of-conversion does not happen. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driv

[PATCH 28/47 v2] staging: comedi: adl_pci9111: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 36 +++- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/driver

[PATCH 11/47 v2] staging: comedi: pcmmio: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input and output end-of- conversions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcmmio.c | 42 +++-- 1 file changed, 24 insertions(+), 18 deletions(-) diff -

[PATCH 04/47 v2] staging: comedi: das16: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 36/47 v2] staging: comedi: ni_daq_700: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_daq_700.c | 53 ++--- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/driver

[PATCH 30/47 v2] staging: comedi: adv_pci1710: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 38 +--- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/driver

[PATCH 31/47 v2] staging: comedi: adq12b: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. This also fixes a possible bug where invalid data is returned if the conversion did not complete. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adq12b.c | 31 ++

[PATCH 35/47 v2] staging: comedi: multiq3: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/multiq3.c | 38 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/driver

[PATCH 12/47 v2] staging: comedi: dt2815: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog output end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2815.c | 39 ++--- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/drive

[PATCH 17/47 v2] staging: comedi: cb_pcidas64: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_pcidas64.c | 44 +--- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/driver

[PATCH 09/47 v2] staging: comedi: pcl711: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl711.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/co

[PATCH 21/47 v2] staging: comedi: dt2811: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2811.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/staging/c

[PATCH 20/47 v2] staging: comedi: das16m1: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/stag

[PATCH 06/47 v2] staging: comedi: ii_pci20kc: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ii_pci20kc.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/staging/

[PATCH 23/47 v2] staging: comedi: mpc624: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mpc624.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/sta

[PATCH 00/47 v2] staging: comedi: cleanup the "timeout" loops

2014-02-10 Thread H Hartley Sweeten
Many of the comedi drivers implement a "timeout" loop of some sort in the analog input (*insn_read) or analog output (*insn_write) functions. Some of these are just crazy "loop this many times" for some status to change. There are a couple that could actually deadlock the system if the status does

[PATCH 25/47 v2] staging: comedi: addi_apci_3xx: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input and output end-of- conversions. This prevents a deadlock condition that could occur by providing a timeout in case the end-of-conversion does not happen. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 07/47 v2] staging: comedi: mf6x4: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mf6x4.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/staging/c

[PATCH 01/47 v2] staging: comedi: introduce comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Introduce a comedi core helper function to handle the boilerplate needed by the drivers to busy- wait for a condition to occur. Typically this condition is the analog input/output end-of-conversion used with the comedi (*insn_read) and (*insn_write) operations. To use this function, the drivers ju

[PATCH 08/47 v2] staging: comedi: ni_labpc: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/staging/c

[PATCH 29/47 v2] staging: comedi: adl_pci9118: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 34 ++-- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/driver

[PATCH 03/47 v2] staging: comedi: adl_pci6208x: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog output end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/sta

[PATCH 33/47 v2] staging: comedi: dyna_pci10xx: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Also, remove some unnecessary comments. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 40 --- 1 file changed, 24 insertions

[PATCH 16/47 v2] staging: comedi: cb_pcidas: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_pcidas.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/st

[PATCH 14/47 v2] staging: comedi: aio_aio12_8: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/aio_aio12_8.c | 30 ++-- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/driver

[PATCH 02/47 v2] staging: comedi: skel: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Since this is the sample skeleton driver, add comments about how the callback function works with comedi_timeout(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/sk

[PATCH 19/47 v2] staging: comedi: das08: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das08.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/staging

[PATCH 10/47 v2] staging: comedi: pcmad: use comedi_timeout()

2014-02-10 Thread H Hartley Sweeten
Use comedi_timeout() to wait for the analog input end-of-conversion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcmad.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/com

[PATCH]staging: slicoss: Fix possible reuse of freed memory in timer function

2014-02-10 Thread Kirill Tkhai
Do not call kfree() till timer function is finished. [This was found using grep. Compiled tested only] Signed-off-by: Kirill Tkhai CC: Joe Perches CC: Greg Kroah-Hartman --- drivers/staging/slicoss/slicoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/s

RE: [PATCH net] hyperv: Fix the carrier status setting

2014-02-10 Thread Haiyang Zhang
> -Original Message- > From: Dan Carpenter [mailto:[email protected]] > Sent: Monday, February 10, 2014 4:04 AM > To: Haiyang Zhang > Cc: [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; linux- > ker...@vger

Re: [PATCH RFC v2 00/35] Second preview of imx-drm cleanup series

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 06:37:26PM +0100, Philipp Zabel wrote: > I'd like all of them to go through, too. If you don't want to have the DT > changes integrated, I'd appreciate if you could have a look at my > patches on top of your series and possibly append them to your > series or let me synchro

RE: [PATCH net] hyperv: Fix the carrier status setting

2014-02-10 Thread Haiyang Zhang
> -Original Message- > From: Sergei Shtylyov [mailto:[email protected]] > Sent: Monday, February 10, 2014 8:29 AM > To: Haiyang Zhang; [email protected]; [email protected] > Cc: KY Srinivasan; [email protected]; [email protected]; linux- > [email protected]; dr

[PATCH net,v2] hyperv: Fix the carrier status setting

2014-02-10 Thread Haiyang Zhang
Without this patch, the "cat /sys/class/net/ethN/operstate" shows "unknown", and "ethtool ethN" shows "Link detected: yes", when VM boots up with or without vNIC connected. This patch fixed the problem. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_dr

Re: [RFC PATCH 2/3] staging: imx-drm-core: Use graph to find connection between crtc and encoder

2014-02-10 Thread Russell King - ARM Linux
On Mon, Jan 06, 2014 at 03:52:01PM +0100, Philipp Zabel wrote: > @@ -438,24 +453,21 @@ int imx_drm_encoder_parse_of(struct drm_device *drm, > struct drm_encoder *encoder, struct device_node *np) > { > struct imx_drm_device *imxdrm = drm->dev_private; > + struct device_node *ep, *la

Re: [PATCH RFC v2 00/35] Second preview of imx-drm cleanup series

2014-02-10 Thread Jean-Francois Moine
On Mon, 10 Feb 2014 15:18:21 + Russell King - ARM Linux wrote: > Now, mind explaining what "v4l2 style device tree bindings" means? I've > no idea since I'm relatively new to DT. Documentation/devicetree/bindings/media/video-interfaces.txt For the Cubox, I have: tda998x: hdmi-enco

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Laurent Pinchart
Hi Paul, On Monday 10 February 2014 16:13:51 Paul Bolle wrote: > On Mon, 2014-02-10 at 15:13 +0100, Laurent Pinchart wrote: > > On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > > > camera interface - Build system") add

Re: [PATCH RFC v2 00/35] Second preview of imx-drm cleanup series

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 04:12:19PM +0100, Philipp Zabel wrote: > Am Montag, den 10.02.2014, 12:28 + schrieb Russell King - ARM Linux: > > This is the latest revision of my series cleaning up imx-drm and > > hopefully getting it ready to be moved out of drivers/staging. > > This series is update

Re: [PATCH RFC v2 00/35] Second preview of imx-drm cleanup series

2014-02-10 Thread Philipp Zabel
Am Montag, den 10.02.2014, 12:28 + schrieb Russell King - ARM Linux: > This is the latest revision of my series cleaning up imx-drm and > hopefully getting it ready to be moved out of drivers/staging. > This series is updated to v3.14-rc2. > > Since the last round of patches were posted, the c

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 03:35:51PM +0100, Jean-Francois Moine wrote: > On Mon, 10 Feb 2014 13:12:33 + > Russell King - ARM Linux wrote: > > > I've NAK'd these patches already - I believe they're based on a > > mis-understanding of how this should be used. I believe Jean-Francois > > has only

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Paul Bolle
Laurent, On Mon, 2014-02-10 at 15:13 +0100, Laurent Pinchart wrote: > On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > > camera interface - Build system") added a Kconfig entry for > > VIDEO_OMAP4_DEBUG. But nothing uses

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Jean-Francois Moine
On Mon, 10 Feb 2014 13:12:33 + Russell King - ARM Linux wrote: > I've NAK'd these patches already - I believe they're based on a > mis-understanding of how this should be used. I believe Jean-Francois > has only looked at the core, rather than looking at the imx-drm example > it was posted w

Re: [PATCH] staging : ion : Fix some checkpatch warnings and an error

2014-02-10 Thread Joe Perches
On Mon, 2014-02-10 at 14:56 +0900, Daeseok Youn wrote: > Hello. > diff --git a/drivers/staging/android/ion/ion_priv.h > b/drivers/staging/android/ion/ion_priv.h [] > - struct sg_table *(*map_dma) (struct ion_heap *heap, > + struct sg_table * (*map_dma)(struct ion_heap *heap, The message

Re: [PATCH] [media] v4l: omap4iss: Remove VIDEO_OMAP4_DEBUG

2014-02-10 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Sunday 09 February 2014 16:09:37 Paul Bolle wrote: > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > camera interface - Build system") added a Kconfig entry for > VIDEO_OMAP4_DEBUG. But nothing uses that symbol. > > This entry was apparen

Re: [PATCH net] hyperv: Fix the carrier status setting

2014-02-10 Thread Sergei Shtylyov
Hello. On 10-02-2014 5:07, Haiyang Zhang wrote: Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c | 24 +++- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hy

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Russell King - ARM Linux
On Mon, Feb 10, 2014 at 01:53:08PM +0100, Thierry Reding wrote: > On Fri, Feb 07, 2014 at 04:55:00PM +0100, Jean-Francois Moine wrote: > > Some simple components don't need to do any specific action on > > bind to / unbind from a master component. > > > > This patch permits such components to omit

Re: [PATCH v3 1/2] drivers/base: permit base components to omit the bind/unbind ops

2014-02-10 Thread Thierry Reding
On Fri, Feb 07, 2014 at 04:55:00PM +0100, Jean-Francois Moine wrote: > Some simple components don't need to do any specific action on > bind to / unbind from a master component. > > This patch permits such components to omit the bind/unbind > operations. > > Signed-off-by: Jean-Francois Moine >

Re: [PATCH] Staging: comedi: fix memory leak in comedi_bond.c

2014-02-10 Thread Ian Abbott
On 2014-02-08 05:02, Chase Southwood wrote: We allocate bdev and then krealloc the devs pointer in order to add bdev at the end of the devpriv->devs array list. But if for some reason this krealloc fails, we need to free bdev before returning an error otherwise this memory is leaked. Signed-off

[PATCH RFC v2 31/35] imx-drm: imx-drm-core: kill off mutex

2014-02-10 Thread Russell King
This mutex doesn't protect anything anymore; get rid of it. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx

[PATCH RFC v2 32/35] imx-drm: imx-drm-core: move allocation of imxdrm device to driver load function

2014-02-10 Thread Russell King
It is now no longer necessary to keep this structure around; we can allocate it upon DRM driver load and destroy it thereafter without affecting the other components now. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 47 +- 1 file change

[PATCH RFC v2 35/35] imx-drm: imx-hdmi: add hotplug support to HDMI component

2014-02-10 Thread Russell King
Add hotplug support. We have to make the interrupt handler threaded so we can call drm_helper_hpd_irq_event(). Keeping in mind that we will want to share the interrupt with other HDMI interface drivers (eg, audio and CEC) put the groundwork in now for that, rather than just using IRQF_ONESHOT. A

[PATCH RFC v2 34/35] imx-drm: imx-drm-core: add core hotplug connector support

2014-02-10 Thread Russell King
Add core imx-drm support for hotplug connector support. We need to setup the poll helper after we've setup the connectors; the helper scans the connectors to determine their capabilities. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 21 + 1 file c

[PATCH RFC v2 29/35] imx-drm: imx-drm-core: remove imx_drm_connector and imx_drm_encoder code

2014-02-10 Thread Russell King
The core imx_drm_connector and imx_drm_encoder code is no longer required - the connectors and encoders are all using the component support, so we can remove this. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 371 + drivers/staging/imx-

[PATCH RFC v2 33/35] imx-drm: imx-drm-core: various cleanups

2014-02-10 Thread Russell King
Various cleanups are possible after the previous round of changes; these have no real functional bearing other than tidying up the code. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 47 -- drivers/staging/imx-drm/imx-drm.h | 5 ++-

[PATCH RFC v2 30/35] imx-drm: imx-drm-core: get rid of drm_mode_group_init_legacy_group()

2014-02-10 Thread Russell King
Since we're now operating like a conventional DRM driver, doing all the initialisation within the driver's ->load callback, we don't need to mess around with the mode groups - we can rely on the one in the DRM platform code. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c

[PATCH RFC v2 19/35] imx-drm: convert to componentised device support

2014-02-10 Thread Russell King
Use the componentised device support for imx-drm. This requires all the sub-components and the master device to register with the component device support. Signed-off-by: Russell King --- arch/arm/boot/dts/imx51-babbage.dts| 10 ++- arch/arm/boot/dts/imx53-m53evk.dts | 8 ++-

[PATCH RFC v2 22/35] imx-drm: remove separate imx-fbdev

2014-02-10 Thread Russell King
Now that we know when the components of the imx-drm subsystem will be initialised, we can move the fbdev helper initialisation and teardown into imx-drm-core. This gives us the required ordering that DRM wants in both driver load and unload methods. We can also stop exporting the imx_drm_device_g

[PATCH RFC v2 23/35] imx-drm: remove imx-fb.c

2014-02-10 Thread Russell King
imx-fb.c doesn't need to be separate from imx-drm-core.c - all it is doing is setting up the minimum and maximum sizes of the scanout buffers, and setting up the mode_config function pointers. Move the contents into imx-drm-core.c and kill this file. Signed-off-by: Russell King --- drivers/stag

[PATCH RFC v2 24/35] imx-drm: use supplied drm_device where possible

2014-02-10 Thread Russell King
The component helper provides us the drm_device which is being registered. Rather than having to reference a global in imx-drm-core, use this to get the imxdrm device, and also use it to register the CRTC against. This means we never have CRTCs/encoders/connectors without the drivers private data

[PATCH RFC v2 26/35] imx-drm: imx-drm-core: provide common connector and encoder cleanup functions

2014-02-10 Thread Russell King
Provide two helper functions to assist with cleaning up imx-drm connectors and encoders. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 13 + drivers/staging/imx-drm/imx-drm.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/drivers/staging/imx

[PATCH RFC v2 28/35] imx-drm: imx-hdmi: initialise drm components directly

2014-02-10 Thread Russell King
Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-hdmi.c | 56 ++ 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c index 7086ea66490f..c5e57ac07243 100644 --- a/dr

[PATCH RFC v2 25/35] imx-drm: imx-drm-core: provide helper function to parse possible crtcs

2014-02-10 Thread Russell King
Provide a helper function to parse possible crtcs before the encoder is registered. The crtc mask is derived from the position of the CRTCs registered in the drm_device. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 66 ++ drivers/stagi

[PATCH RFC v2 27/35] imx-drm: parallel-display,imx-tve,imx-ldb: initialise drm components directly

2014-02-10 Thread Russell King
Now that our bind function is only ever called during the main DRM driver ->load callback, we don't need to have the imx_drm_connector or imx_drm_encoder abstractions anymore. So let's get rid of it, and move the DRM connector and encoder setup into the connector support files. Signed-off-by: Rus

  1   2   >