Re: [PATCH 00/16] sleep_on removal, second try

2014-02-28 Thread Karsten Keil
Am 26.02.2014 12:01, schrieb Arnd Bergmann: It's been a while since the first submission of these patches, but a lot of them have made it into linux-next already, so here is the stuff that is not merged yet, hopefully addressing all the comments. Geert and Michael: the I was expecting the

Re: [PATCH v3 06/15] dt: binding: add binding for ImgTec IR block

2014-02-28 Thread James Hogan
On 28/02/14 01:28, Rob Herring wrote: On Thu, Feb 27, 2014 at 4:52 PM, James Hogan james.ho...@imgtec.com wrote: v3: - Rename compatible string to img,ir-rev1 (Rob Herring). - Specify ordering of clocks explicitly (Rob Herring). I'd appreciate if somebody could give this another glance after

Re: Dell XPS 12 USB camera bulk mode issues

2014-02-28 Thread Mark Ryan
Hi Laurent, On 02/26/2014 04:40 PM, Laurent Pinchart wrote: Hi Mark, [ ... ] With the information I've given you, could you try to log more information in the driver to try and find what goes wrong ? You could for instance log the content of each header at the beginning of the

[PATCH v2] omap3isp: Fix kerneldoc for _module_sync_is_stopping and isp_isr()

2014-02-28 Thread Peter Meerwald
use the correct name in the comment describing function omap3isp_module_sync_is_stopping() isp_isr() never returned IRQ_NONE, remove the comment saying so Signed-off-by: Peter Meerwald pme...@pmeerw.net --- drivers/media/platform/omap3isp/isp.c | 5 + 1 file changed, 1 insertion(+), 4

[git:media_tree/master] [media] omap_vout: avoid sleep_on race

2014-02-28 Thread Mauro Carvalho Chehab
This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/media_tree.git tree: Subject: [media] omap_vout: avoid sleep_on race Author: Arnd Bergmann a...@arndb.de Date:Thu Jan 2 09:07:29 2014 -0300 sleep_on and its variants are

[REVIEWv3 PATCH 01/17] vb2: Check if there are buffers before streamon

2014-02-28 Thread Hans Verkuil
From: Ricardo Ribalda Delgado ricardo.riba...@gmail.com This patch adds a test preventing streamon() if there is no buffer ready. Without this patch, a user could call streamon() before preparing any buffer. This leads to a situation where if he calls close() before calling streamoff() the

[REVIEWv3 PATCH 03/17] vb2: fix PREPARE_BUF regression

2014-02-28 Thread Hans Verkuil
Fix an incorrect test in vb2_internal_qbuf() where only DEQUEUED buffers are allowed. But PREPARED buffers are also OK. Introduced by commit 4138111a27859dcc56a5592c804dd16bb12a23d1 (vb2: simplify qbuf/prepare_buf by removing callback). Signed-off-by: Hans Verkuil hans.verk...@cisco.com

[REVIEWv3 PATCH 04/17] vb2: add debugging code to check for unbalanced ops

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com When a vb2_queue is freed check if all the mem_ops and queue ops were balanced. So the number of calls to e.g. buf_finish has to match the number of calls to buf_prepare, etc. This code is only enabled if CONFIG_VIDEO_ADV_DEBUG is set. Signed-off-by:

[REVIEWv3 PATCH 06/17] vb2: call buf_finish from __queue_cancel.

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If a queue was canceled, then the buf_finish op was never called for the pending buffers. So add this call to queue_cancel. Before calling buf_finish set the buffer state to PREPARED, which is the correct state. That way the states DONE and ERROR will

[REVIEWv3 PATCH 16/17] vivi: correctly cleanup after a start_streaming failure

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If start_streaming fails then any queued buffers must be given back to the vb2 core. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivi.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[REVIEWv3 PATCH 10/17] vb2: don't init the list if there are still buffers

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com __vb2_queue_free() would init the queued_list at all times, even if q-num_buffers 0. This should only happen if num_buffers == 0. This situation can happen if a CREATE_BUFFERS call couldn't allocate enough buffers and had to free those it did manage to

[REVIEWv3 PATCH 12/17] vb2: properly clean up PREPARED and QUEUED buffers

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If __reqbufs was called then existing buffers are freed. However, if that happens without ever having started STREAMON, but if buffers have been queued, then the buf_finish op is never called. Add a call to __vb2_queue_cancel in __reqbufs so that these

[REVIEWv3 PATCH 00/17] vb2: fixes, balancing callbacks (PART 1)

2014-02-28 Thread Hans Verkuil
This third version incorporates the comments I received, and I also made some additional changes. Changes since REVIEWv2: - the patches regarding the buf_finish changes were reorganized. Laurent pointed out a bug in patch 07/15 that is fixed here by adding the buf_finish call to

[REVIEWv3 PATCH 11/17] vb2: only call start_streaming if sufficient buffers are queued

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com In commit 02f142ecd24aaf891324ffba8527284c1731b561 support was added to start_streaming to return -ENOBUFS if insufficient buffers were queued for the DMA engine to start. The vb2 core would attempt calling start_streaming again if another buffer would be

[REVIEWv3 PATCH 17/17] vivi: fix ENUM_FRAMEINTERVALS implementation

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This function never checked if width and height are correct. Add such a check so the v4l2-compliance tool returns OK again for vivi. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/vivi.c | 6 +- 1 file changed, 5

[REVIEWv3 PATCH 08/17] vb2: fix buf_init/buf_cleanup call sequences

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Ensure that these ops are properly balanced. There are two scenarios: 1) for MMAP buf_init is called when the buffers are created and buf_cleanup must be called when the queue is finally freed. This scenario was always working. 2) for USERPTR and

[REVIEWv3 PATCH 07/17] vb2: consistent usage of periods in videobuf2-core.h

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Sometimes sentences in comments ended with a period, and sometimes they didn't. Add periods. No other changes. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- include/media/videobuf2-core.h | 40 1 file

[REVIEWv3 PATCH 09/17] vb2: rename queued_count to owned_by_drv_count

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com 'queued_count' is a bit vague since it is not clear to which queue it refers to: the vb2 internal list of buffers or the driver-owned list of buffers. Rename to make it explicit. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Pawel Osciak

[REVIEWv3 PATCH 02/17] vb2: fix read/write regression

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Commit 88e268702bfba78448abd20a31129458707383aa (vb2: Improve file I/O emulation to handle buffers in any order) broke read/write support if the size of the buffer being read/written is less than the size of the image. When the commit was tested

[REVIEWv3 PATCH 13/17] vb2: replace BUG by WARN_ON

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com No need to oops for this, WARN_ON is good enough. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/v4l2-core/videobuf2-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[REVIEWv3 PATCH 05/17] vb2: change result code of buf_finish to void

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The buf_finish op should always work, so change the return type to void. Update the few drivers that use it. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Pawel Osciak pa...@osciak.com Reviewed-by: Pawel Osciak pa...@osciak.com ---

[REVIEWv3 PATCH 14/17] vb2: fix streamoff handling if streamon wasn't called.

2014-02-28 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com If you request buffers, then queue buffers and then call STREAMOFF those buffers are not returned to their dequeued state because streamoff will just return if q-streaming was 0. This means that afterwards you can never QBUF that same buffer again unless

Re: [PATCH v5 3/7] of: Warn if of_graph_get_next_endpoint is called with the root node

2014-02-28 Thread Sylwester Nawrocki
On 02/27/2014 06:35 PM, Philipp Zabel wrote: If of_graph_get_next_endpoint is given a parentless node instead of an endpoint node, it is clearly a bug. Signed-off-by: Philipp Zabelp.za...@pengutronix.de --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH v5 5/7] [media] of: move common endpoint parsing to drivers/of

2014-02-28 Thread Sylwester Nawrocki
On 02/27/2014 06:35 PM, Philipp Zabel wrote: This patch adds a new struct of_endpoint which is then embedded in struct v4l2_of_endpoint and contains the endpoint properties that are not V4L2 (or even media) specific: the port number, endpoint id, local device tree node and remote endpoint

Re: [PATCH v5 2/7] Documentation: of: Document graph bindings

2014-02-28 Thread Sylwester Nawrocki
Hi Philipp, Just couple minor comments... On 02/27/2014 06:35 PM, Philipp Zabel wrote: The device tree graph bindings as used by V4L2 and documented in Documentation/device-tree/bindings/media/video-interfaces.txt contain generic parts that are not media specific but could be useful for any

[PATCH 0/3] media/drx39xyj: fix DJH_DEBUG path null pointer dereferences, and compile errors.

2014-02-28 Thread Shuah Khan
This patch series fixes null pointer dereference boot failure as well as compile errors. Shuah Khan (3): media/drx39xyj: fix pr_dbg undefined compile errors when DJH_DEBUG is defined media/drx39xyj: remove return that prevents DJH_DEBUG code to run media/drx39xyj: fix boot failure due

[PATCH 3/3] media/drx39xyj: fix boot failure due to null pointer dereference

2014-02-28 Thread Shuah Khan
DJH_DEBUG only code path in drxbsp_i2c_write_read() dereferences w_dev_addr and subsequently w_dev_addr-user_data-i2c which results in failure during boot. This patch fixes the null pointer derefence bug as well as the following compile errors: LD arch/x86/built-in.o CC

[PATCH 2/3] media/drx39xyj: remove return that prevents DJH_DEBUG code to run

2014-02-28 Thread Shuah Khan
drxbsp_i2c_write_read() has return that prevents DJH_DEBUG code to run. Remove it. Signed-off-by: Shuah Khan shuah...@samsung.com --- drivers/media/dvb-frontends/drx39xyj/drxj.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c

[PATCH 1/3] media/drx39xyj: fix pr_dbg undefined compile errors when DJH_DEBUG is defined

2014-02-28 Thread Shuah Khan
drxj.c fails to compile with the following errors when DJH_DEBUG is defined. drivers/media/dvb-frontends/drx39xyj/drxj.c:1567:2: error: implicit declaration of function ‘pr_dbg’ [-Werror=implicit-function-declaration] pr_dbg(drx3933 i2c operation addr=%x i2c=%p, wc=%x rc=%x\n, ^

[linuxtv-media:master 476/499] drivers/media/usb/s2255/s2255drv.c:2405 s2255_stop_acquire() warn: inconsistent returns mutex:dev-cmdlock: locked (2391 [(-12)]) unlocked (2405 [0], 2405 [s32min-(-1),

2014-02-28 Thread kbuild test robot
Hi Dean, FYI, there are new smatch warnings show up in tree: git://linuxtv.org/media_tree.git master head: a06b429df49bb50ec1e671123a45147a1d1a6186 commit: 47d8c881c304642a68d398b87d9e8846e643c81a [476/499] [media] s2255drv: dynamic memory allocation efficiency fix

[PATCH] s2255drv: urgent memory leak fix.

2014-02-28 Thread Dean Anderson
Critical bug fix. Fixes memory leak introduced by commit 47d8c881c304642a68d398b87d9e8846e643c81a. Signed-off-by: Dean Anderson linux-...@sensoray.com --- drivers/media/usb/s2255/s2255drv.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/media/usb/s2255/s2255drv.c

[PATCH 1/5] rc-main: add generic scancode filtering

2014-02-28 Thread James Hogan
Add generic scancode filtering of RC input events, and fall back to permitting any RC_FILTER_NORMAL scancode filter to be set if no s_filter callback exists. This allows raw IR decoder events to be filtered, and potentially allows hardware decoders to set looser filters and rely on generic code to

[PATCH 3/5] rc: add allowed/enabled wakeup protocol masks

2014-02-28 Thread James Hogan
Only a single allowed and enabled protocol mask currently exists in struct rc_dev, however to support a separate wakeup filter protocol two of each are needed, ideally as an array. Therefore make both rc_dev::allowed_protos and rc_dev::enabled_protocols arrays, update all users to reference the

[PATCH 5/5] rc-main: automatically refresh filter on protocol change

2014-02-28 Thread James Hogan
When either of the normal or wakeup filter protocols are changed, refresh the corresponding scancode filter, i.e. try and set the same scancode filter with the new protocol. If that fails clear the filter instead. If no protocol was selected the filter is just cleared, and if no s_filter callback

[PATCH 4/5] rc: add wakeup_protocols sysfs file

2014-02-28 Thread James Hogan
Add a wakeup_protocols sysfs file which controls the new rc_dev::enabled_protocols[RC_FILTER_WAKEUP], which is the mask of protocols that are used for the wakeup filter. A new RC driver callback change_wakeup_protocol() is called to change the wakeup protocol mask. Signed-off-by: James Hogan

[PATCH 2/5] rc: abstract access to allowed/enabled protocols

2014-02-28 Thread James Hogan
The allowed and enabled protocol masks need to be expanded to be per filter type in order to support wakeup filter protocol selection. To ease that process abstract access to the rc_dev::allowed_protos and rc_dev::enabled_protocols members with inline functions. Signed-off-by: James Hogan

[PATCH 0/5] rc: scancode filtering improvements

2014-02-28 Thread James Hogan
These patches make some improvements relating to the recently added RC scancode filtering interface: - Patch 1 adds generic scancode filtering. This allows filtering to also work for raw rc drivers and scancode drivers without filtering capabilities. - Patches 2-4 future proof the sysfs API to

[PATCH v4 00/10] media: rc: ImgTec IR decoder driver

2014-02-28 Thread James Hogan
Add a driver for the ImgTec Infrared decoder block. Two separate rc input devices are exposed depending on kernel configuration. One uses the hardware decoder which is set up with timings for a specific protocol and supports mask/value filtering and wake events. The other uses raw edge interrupts

[PATCH v4 01/10] dt: binding: add binding for ImgTec IR block

2014-02-28 Thread James Hogan
Add device tree binding for ImgTec Consumer Infrared block, specifically major revision 1 of the hardware. Signed-off-by: James Hogan james.ho...@imgtec.com Acked-by: Rob Herring r...@kernel.org Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org Cc: Pawel Moll

[PATCH v4 02/10] rc: img-ir: add base driver

2014-02-28 Thread James Hogan
Add base driver for the ImgTec Infrared decoder block. The driver is split into separate components for raw (software) decode and hardware decoder which are in following commits. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc:

[PATCH v4 05/10] rc: img-ir: add to build

2014-02-28 Thread James Hogan
Add ImgTec IR decoder driver to the build system. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- drivers/media/rc/Kconfig | 2 ++ drivers/media/rc/Makefile| 1 +

[PATCH v4 07/10] rc: img-ir: add JVC decoder module

2014-02-28 Thread James Hogan
Add an img-ir module for decoding the JVC infrared protocol. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- v2: - Update to new scancode interface (32-bit NEC). - Update to new filtering interface (generic

[PATCH v4 08/10] rc: img-ir: add Sony decoder module

2014-02-28 Thread James Hogan
Add an img-ir module for decoding the Sony infrared protocol. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- v2: - Update to new scancode interface (32-bit NEC). - Update to new filtering interface (generic

[PATCH v4 09/10] rc: img-ir: add Sharp decoder module

2014-02-28 Thread James Hogan
Add an img-ir module for decoding the Sharp infrared protocol. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- v2: - Update to new scancode interface (32-bit NEC). - Update to new filtering interface (generic

[PATCH v4 03/10] rc: img-ir: add raw driver

2014-02-28 Thread James Hogan
Add raw IR remote control input driver for the ImgTec Infrared decoder block's raw edge interrupts. Generic software protocol decoders are used to allow multiple protocols to be supported at a time, including those not supported by the hardware decoder. Signed-off-by: James Hogan

[PATCH v4 06/10] rc: img-ir: add NEC decoder module

2014-02-28 Thread James Hogan
Add an img-ir module for decoding the NEC and extended NEC infrared protocols. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- v2: - Update scancode and filter callbacks to handle 32-bit NEC as used by Apple

[PATCH v4 10/10] rc: img-ir: add Sanyo decoder module

2014-02-28 Thread James Hogan
Add an img-ir module for decoding the Sanyo infrared protocol. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: linux-media@vger.kernel.org --- v2: - Update to new scancode interface (32-bit NEC). - Update to new filtering interface (generic

[PATCH v4 04/10] rc: img-ir: add hardware decoder driver

2014-02-28 Thread James Hogan
Add remote control input driver for the ImgTec Infrared block hardware decoder, which is set up with timings for a specific protocol and supports mask/value filtering and wake events. The hardware decoder timing values, raw data to scan code conversion function and scan code filter to raw data

CONTACT KENYA COMMERCIAL BANK LTD IMMEDIATELY FOR YOUR PAYMENT (3MILLION UNITED STATE DOLLARS)

2014-02-28 Thread Jantima Khuntaraksa
Attention: Please, Kindly contact KENYA COMMERCIAL BANK immediately for your compensation payment of (3MILLION UNITED STATE DOLLARS) via email: Email:(servic...@kenya.ncommercialbnk.com) quote your payment Ref No:KCB/00Y/2014 For purposes of immediate payment. -- To unsubscribe from this

Re: [PATCH 0/3] media/drx39xyj: fix DJH_DEBUG path null pointer dereferences, and compile errors.

2014-02-28 Thread Devin Heitmueller
On Fri, Feb 28, 2014 at 4:22 PM, Shuah Khan shuah...@samsung.com wrote: This patch series fixes null pointer dereference boot failure as well as compile errors. Seems kind of strange that I wasn't on the CC for this, since I was the original author of all that code (in fact, DJH are my

r820t.c:undefined reference to `byte_rev_table'

2014-02-28 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 86c7654f4a0afcbbd2fedefec01082f292b14cb4 commit: 103fe2fb2314f09d9b923c5919e70cbe66830d6d [media] r820t: Invert bits for read ops date: 11 months ago config: x86_64-randconfig-wa0-03010518 (attached as

[GIT PULL] SDR API 2nd part

2014-02-28 Thread Antti Palosaari
Moikka! These patches are based top of: http://git.linuxtv.org/media-tree.git/shortlog/refs/heads/sdr I am not able to make development during next week, so if there is any issues, please wait to week 12 I could fix, or do what ever is best required by situation. Both SDR drivers are in

Re: [PATCH 0/3] media/drx39xyj: fix DJH_DEBUG path null pointer dereferences, and compile errors.

2014-02-28 Thread Shuah Khan
On 02/28/2014 05:13 PM, Devin Heitmueller wrote: Seems kind of strange that I wasn't on the CC for this, since I was the original author of all that code (in fact, DJH are my initials). Mauro, did you strip off my authorship when you pulled the patches from my tree? The patches themselves look

cron job: media_tree daily build: ERRORS

2014-02-28 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sat Mar 1 04:00:26 CET 2014 git branch: test git hash: a06b429df49bb50ec1e671123a45147a1d1a6186 gcc