cron job: media_tree daily build: ERRORS

2017-05-23 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: Wed May 24 05:00:20 CEST 2017 media-tree git hash:36bcba973ad478042d1ffc6e89afd92e8bd17030 media_build

[PATCH] staging: media: atomisp: fix non static symbol warnings

2017-05-23 Thread Juan Antonio Pedreira Martos
Fix a couple of sparse warnings: drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:59:14: warning: symbol 'repool_pgnr' was not declared. Should it be static? drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c:387:6: warning: symbol 'punit_ddr_dvfs_enable' was not declared. Should

[PATCH v2 11/17] rcar-vin: select capture mode based on free buffers

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Instead of selecting single or continuous capture mode based on how many buffers userspace intends to give us select capture mode based on number of free buffers we can allocate to hardware when the stream is started. This change is

[PATCH v2 01/17] rcar-vin: reset bytesperline and sizeimage when resetting format

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund These two were forgotten when refactoring the format reset code. If they are not also reset at the same time as width and height the format returned from G_FMT will not match reality. Signed-off-by: Niklas Söderlund

[PATCH v2 10/17] rcar-vin: move functions which acts on hardware

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund This only moves whole structs, defines and functions around, no code is changed inside any function. The reason for moving this code around is to prepare for refactoring and fixing of a start/stop stream bug without having to use

[PATCH v2 08/17] rcar-vin: use pad information when verifying media bus format

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Use information about pad index when enumerating mbus codes. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart ---

[PATCH v2 06/17] rcar-vin: refactor pad lookup code

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The pad lookup code can be broken out to increase readability and to reduce code duplication. Signed-off-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 36

[PATCH v2 13/17] rcar-vin: refactor and fold in function after stall handling rework

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund With the driver stopping and starting the stream each time the driver is stalled rvin_capture_off() can be folded in to the only caller. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent

[PATCH v2 03/17] rcar-vin: fix how pads are handled for v4l2 subdevice operations

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The rcar-vin driver only uses one pad, pad number 0. - All v4l2 operations that did not check that the requested operation was for pad 0 have been updated with a check to enforce this. - All v4l2 operations that stored (and later

[PATCH v2 07/17] rcar-vin: move pad lookup to async bound handler

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Information about pads will be needed when enumerating the media bus codes in the async complete handler which is run before rvin_v4l2_probe(). Move the pad lookup to the async bound handler so they are available when needed.

[PATCH v2 12/17] rcar-vin: allow switch between capturing modes when stalling

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund If userspace can't feed the driver with buffers as fast as the driver consumes them the driver will stop video capturing and wait for more buffers from userspace, the driver is stalled. Once it have been feed one or more free buffers

[PATCH v2 17/17] rcar-vin: fix bug in pixelformat selection

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund If the requested pixelformat is not supported fallback to the default format, do not revert the entire format. Signed-off-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-v4l2.c |

[PATCH v2 15/17] rcar-vin: register the video device at probe time

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The driver registers the video device from the async complete callback and unregistered in the async unbind callback. This creates problems if if the subdevice is bound, unbound and later rebound. The second time

[PATCH v2 05/17] rcar-vin: move subdev source and sink pad index to rvin_graph_entity

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund It makes more sense to store the sink and source pads in struct rvin_graph_entity since that contains other subdevice related information. The data type to store pad information in is unsigned int and not int, change this. While we

[PATCH v2 16/17] rcar-vin: add missing error check to propagate error

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The return value of __rvin_try_format_source is not checked, add a check and propagate the error. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart

[PATCH v2 14/17] rcar-vin: remove subdevice matching from bind and unbind callbacks

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund There is only one subdevice registered with the async framework so there is no need for the driver to check which subdevice is bound or unbound. Remove these checks since the async framework preforms this. Signed-off-by: Niklas

[PATCH v2 00/17] rcar-vin: fix issues with format and capturing

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Hi, This series fix a number of issues for the rcar-vin driver regarding format and capturing. It is based on top of '[GIT PULL FOR v4.13] V4L2 fwnode support' and tested on Koelsch. Parts of this series where previously part of

[PATCH v2 04/17] rcar-vin: fix standard in input enumeration

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The driver supports a single input only, which can be either analog or digital. If the subdevice supports dv_timings_cap the input is digital and the driver should not fill in the standard. Signed-off-by: Niklas Söderlund

[PATCH v2 09/17] rcar-vin: decrease buffers needed to capture

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund It's possible to grab frames using only one buffer, this should never have been set to anything else then 1. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart

[PATCH v2 02/17] rcar-vin: use rvin_reset_format() in S_DV_TIMINGS

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Use rvin_reset_format() in rvin_s_dv_timings() instead of just resetting a few fields. This fixes an issue where the field format was not properly set after S_DV_TIMINGS. Signed-off-by: Niklas Söderlund

[PATCH v7 2/2] media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver driver

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund A V4L2 driver for Renesas R-Car MIPI CSI-2 receiver. The driver supports the rcar-vin driver on R-Car Gen3 SoCs where separate CSI-2 hardware blocks are connected between the video sources and the video grabbers (VIN). Driver is

[PATCH v7 1/2] media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver documentation

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Documentation for Renesas R-Car MIPI CSI-2 receiver. The CSI-2 receivers are located between the video sources (CSI-2 transmitters) and the video grabbers (VIN) on Gen3 of Renesas R-Car SoC. Each CSI-2 device is connected to more

[PATCH v7 0/2] media: rcar-csi2: add Renesas R-Car MIPI CSI-2 support

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Hi, This is the latest incarnation of R-Car MIPI CSI-2 receiver driver. It's based on top of v4.12-rc1 and are tested on Renesas Salvator-X together with the out of tree patches for rcar-vin to add support for Gen3 VIN and a

[PATCH v2 2/2] media: entity: Add media_entity_pad_from_fwnode() function

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund This is a wrapper around the media entity pad_from_fwnode operation. Signed-off-by: Niklas Söderlund --- drivers/media/media-entity.c | 39 +++

[PATCH v2 1/2] media: entity: Add pad_from_fwnode entity operation

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund The optional operation can be used by entities to report how it maps its fwnode endpoints to media pad numbers. This is useful for devices which require advanced mappings of pads. Signed-off-by: Niklas Söderlund

[PATCH v2 0/2] media: entity: add operation to help map DT node to media pad

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Hi, This series add a new entity operation which will aid capture drivers to map a port/endpoint in DT to a media graph pad. This series is implemented support for the ongoing ADV748x work by Kieran Bingham. In his work he have a

[PATCH v2 0/2] v4l2-async: add subnotifier registration for subdevices

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Hi, This series enables incremental async find and bind of subdevices, please se patch 2/2 for a more detailed description. This is tested on Renesas H3 and M3-W together with the Renesas CSI-2 and VIN Gen3 driver (posted

[PATCH v2 2/2] v4l: async: add subnotifier registration for subdevices

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund When registered() of v4l2_subdev_internal_ops is called the subdevice have access to the master devices v4l2_dev and it's called with the async frameworks list_lock held. In this context the subdevice can register its own notifiers to

[PATCH v2 1/2] v4l: async: check for v4l2_dev in v4l2_async_notifier_register()

2017-05-23 Thread Niklas Söderlund
From: Niklas Söderlund Add a check for v4l2_dev to v4l2_async_notifier_register() as to fail as early as possible since this will fail later in v4l2_async_test_notify(). Signed-off-by: Niklas Söderlund ---

[PATCH 1/1] [media] i2c: add support for OV13858 sensor

2017-05-23 Thread Hyungwoo Yang
This patch adds driver for Omnivision's ov13858 sensor, the driver supports following features: - manual exposure/analog gain - two link frequencies - media controller support - runtime pm support Signed-off-by: Hyungwoo Yang --- drivers/media/i2c/Kconfig |8 +

Re: [Linaro-mm-sig] [PATCH] dma-buf: avoid scheduling on fence status query v2

2017-05-23 Thread Dave Airlie
On 28 April 2017 at 07:27, Gustavo Padovan wrote: > 2017-04-26 Christian König : > >> Am 26.04.2017 um 16:46 schrieb Andres Rodriguez: >> > When a timeout of zero is specified, the caller is only interested in >> > the fence status. >> > >> > In the

[PATCH v4] v4l: async: Match parent devices

2017-05-23 Thread Kieran Bingham
From: Kieran Bingham Devices supporting multiple endpoints on a single device node must set their subdevice fwnode to the endpoint to allow distinct comparisons. Adapt the match_fwnode call to compare against the provided fwnodes first, but to also

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Sakari Ailus
On Tue, May 23, 2017 at 10:47:58PM +0100, Kieran Bingham wrote: > On 23/05/17 22:43, Sakari Ailus wrote: > > On Wed, May 24, 2017 at 12:40:19AM +0300, Sakari Ailus wrote: > >>> * When all devices use endpoint matching, this code can be simplified, > >>> and the > >>> * parent comparisons can be

Re: [PATCH v3 1/2] device property: Add fwnode_graph_get_port_parent

2017-05-23 Thread Kieran Bingham
Hi Sakari, On 23/05/17 22:37, Sakari Ailus wrote: > Hi Kieran, > > On Tue, May 23, 2017 at 06:15:42PM +0100, Kieran Bingham wrote: >> >> >> On 23/05/17 13:58, Sakari Ailus wrote: >>> Hi Kieran, >>> >>> On Mon, May 22, 2017 at 06:36:37PM +0100, Kieran Bingham wrote: From: Kieran Bingham

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Kieran Bingham
On 23/05/17 22:43, Sakari Ailus wrote: > On Wed, May 24, 2017 at 12:40:19AM +0300, Sakari Ailus wrote: >>> * When all devices use endpoint matching, this code can be simplified, and >>> the >>> * parent comparisons can be removed. > > Oh, and this I'm not so sure about --- we'll need to match

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Sakari Ailus
On Wed, May 24, 2017 at 12:40:19AM +0300, Sakari Ailus wrote: > > * When all devices use endpoint matching, this code can be simplified, and > > the > > * parent comparisons can be removed. Oh, and this I'm not so sure about --- we'll need to match lens controllers and flash drivers. There are

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Sakari Ailus
Hi Kieran, On Tue, May 23, 2017 at 06:40:08PM +0100, Kieran Bingham wrote: > On 23/05/17 14:02, Sakari Ailus wrote: > > Hi Kieran, > > > > On Mon, May 22, 2017 at 06:36:38PM +0100, Kieran Bingham wrote: > >> From: Kieran Bingham > >> > >> Devices

Re: [[media] sir_ir] 592ddc9f7d: BUG: unable to handle kernel NULL pointer dereference at 00000000000005b8

2017-05-23 Thread Sean Young
ned-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com> > > dd8245f445 [media] atomisp: don't treat warnings as errors > 592ddc9f7d [media]

Re: [PATCH v3 1/2] device property: Add fwnode_graph_get_port_parent

2017-05-23 Thread Sakari Ailus
Hi Kieran, On Tue, May 23, 2017 at 06:15:42PM +0100, Kieran Bingham wrote: > > > On 23/05/17 13:58, Sakari Ailus wrote: > > Hi Kieran, > > > > On Mon, May 22, 2017 at 06:36:37PM +0100, Kieran Bingham wrote: > >> From: Kieran Bingham > >> > >> Provide a

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Kieran Bingham
On 23/05/17 14:02, Sakari Ailus wrote: > Hi Kieran, > > On Mon, May 22, 2017 at 06:36:38PM +0100, Kieran Bingham wrote: >> From: Kieran Bingham >> >> Devices supporting multiple endpoints on a single device node must set >> their subdevice fwnode to the

Re: [PATCH v3 1/2] device property: Add fwnode_graph_get_port_parent

2017-05-23 Thread Kieran Bingham
On 23/05/17 13:58, Sakari Ailus wrote: > Hi Kieran, > > On Mon, May 22, 2017 at 06:36:37PM +0100, Kieran Bingham wrote: >> From: Kieran Bingham >> >> Provide a helper to obtain the parent device fwnode without first >> parsing the remote-endpoint as per

Re: [PATCH v3 2/2] media: i2c: adv748x: add adv748x driver

2017-05-23 Thread Kieran Bingham
On 18/05/17 22:48, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. Thanks for the review, I've worked through these, and changes that were straightforward have already been done locally. Those that were more complicated or will take more thought are now on my todo list and

Re: [RFC 2/2] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-05-23 Thread Hans Verkuil
On 05/23/2017 06:38 PM, Jose Abreu wrote: > Hi Hans, > > > Thanks for the review! > > On 22-05-2017 11:36, Hans Verkuil wrote: >> On 04/21/2017 11:53 AM, Jose Abreu wrote: >>> +static int dw_hdmi_query_dv_timings(struct v4l2_subdev *sd, >>> + struct v4l2_dv_timings *timings) >>> +{

Re: [RFC 2/2] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-05-23 Thread Jose Abreu
Hi Hans, Thanks for the review! On 22-05-2017 11:36, Hans Verkuil wrote: > On 04/21/2017 11:53 AM, Jose Abreu wrote: >> This is an initial submission for the Synopsys Designware HDMI RX >> Controller Driver. This driver interacts with a phy driver so that >> a communication between them is

Re: [PATCH v3 3/4] media: adv7180: Add adv7180cp, adv7180st bindings

2017-05-23 Thread Rob Herring
On Fri, May 19, 2017 at 03:07:03PM +0200, Ulrich Hecht wrote: > To differentiate between two classes of chip packages that have > different numbers of input ports. > > Signed-off-by: Ulrich Hecht > --- > Documentation/devicetree/bindings/media/i2c/adv7180.txt |

Re: [PATCH v3 2/2] v4l: async: Match parent devices

2017-05-23 Thread Sakari Ailus
Hi Kieran, On Mon, May 22, 2017 at 06:36:38PM +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Devices supporting multiple endpoints on a single device node must set > their subdevice fwnode to the endpoint to allow distinct comparisons. > >

Re: [PATCH v3 1/2] device property: Add fwnode_graph_get_port_parent

2017-05-23 Thread Sakari Ailus
Hi Kieran, On Mon, May 22, 2017 at 06:36:37PM +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Provide a helper to obtain the parent device fwnode without first > parsing the remote-endpoint as per fwnode_graph_get_remote_port_parent. > >

Re: [RFC v4 13/18] vb2: Don't sync cache for a buffer if so requested

2017-05-23 Thread Sakari Ailus
Hi Tomasz, On Wed, May 10, 2017 at 07:00:10PM +0800, Tomasz Figa wrote: > Hi Sakari, > > Few comments inline. > > On Mon, May 8, 2017 at 11:03 PM, Sakari Ailus > wrote: > > From: Samu Onkalo > > > > The user may request to the driver (vb2)

Re: [RFC v4 10/18] vb2: dma-contig: Fix DMA attribute and cache management

2017-05-23 Thread Sakari Ailus
Hi Tomasz, Thanks for the review! Considering where things currently stand, I thing getting the three first patches merged in the near future would make sense. The rest will need a bit more work, and adding buffer flags that aren't used wouldn't really make sense either. See below. On Wed, May

Re: [PATCH 5/7] rc-core: ir-raw - leave the internals of rc_dev alone

2017-05-23 Thread Sean Young
On Mon, May 01, 2017 at 06:10:17PM +0200, David Härdeman wrote: > Replace the REP_DELAY value with a static value, which makes more sense. > Automatic repeat handling in the input layer has no relevance for the drivers > idea of "a long time". > > Signed-off-by: David Härdeman

Re: [PATCH v4 21/27] rcar-vin: add group allocator functions

2017-05-23 Thread Niklas Söderlund
Hi Sakari, Thanks for your feedback. On 2017-05-04 18:12:20 +0300, Sakari Ailus wrote: > Hi Niklas, > > On Fri, Apr 28, 2017 at 12:41:57AM +0200, Niklas Söderlund wrote: > > In media controller mode all VIN instances needs to be part of the same > > media graph. There is also a need to each VIN

Re: [PATCH v2 1/2] binding for stm32 cec driver

2017-05-23 Thread Benjamin Gaignard
2017-05-23 2:14 GMT+02:00 Rob Herring : > On Tue, May 16, 2017 at 02:56:22PM +0200, Benjamin Gaignard wrote: > > Commit message? is missing, sorry.. > > Preferred subject prefix is "dt-bindings: media: ..." ok > >> Signed-off-by: Benjamin Gaignard