Re: [PATCHv3 13/22] staging: android: ion: Use CMA APIs directly

2017-04-10 Thread Laurent Pinchart
Hi Laura, Thank you for the patch. On Monday 03 Apr 2017 11:57:55 Laura Abbott wrote: > When CMA was first introduced, its primary use was for DMA allocation > and the only way to get CMA memory was to call dma_alloc_coherent. This > put Ion in an awkward position since there was no device struct

[PATCH 5/5] media: rc: meson-ir: change irq name to to of node name

2017-04-10 Thread Heiner Kallweit
Switch the interrupt description to the default which is the of node name. This is more in line with the interrupt descriptions in other meson drivers. Signed-off-by: Heiner Kallweit --- drivers/media/rc/meson-ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

[PATCH 3/5] media: rc: meson-ir: switch to managed rc device allocation / registration

2017-04-10 Thread Heiner Kallweit
Switch to the managed versions of rc_allocate_device/rc_register_device, thus simplifying the code. Signed-off-by: Heiner Kallweit --- drivers/media/rc/meson-ir.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/meson-ir.c b/drivers/media/r

[PATCH 2/5] media: rc: meson-ir: make use of the bitfield macros

2017-04-10 Thread Heiner Kallweit
Make use of the bitfield macros thus partially hiding the complexity of dealing with bitfields. The patch also includes a minor fix to REG0_RATE_MASK, so far it was set to bit 0..10, but according to the spec it's bit 0..11. Signed-off-by: Heiner Kallweit --- drivers/media/rc/meson-ir.c | 28 ++

[PATCH 1/5] media: rc: meson-ir: remove irq from struct meson_ir

2017-04-10 Thread Heiner Kallweit
The irq number is used in the probe function only, therefore just use a local variable. Signed-off-by: Heiner Kallweit --- drivers/media/rc/meson-ir.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/meson-ir.c b/drivers/media/rc/meson-ir.c index 5

[PATCH 4/5] media: rc: meson-ir: use readl_relaxed in the interrupt handler

2017-04-10 Thread Heiner Kallweit
We don't need the memory barriers here and an interrupt handler should be as fast as possible. Therefore switch to readl_relaxed. Signed-off-by: Heiner Kallweit --- drivers/media/rc/meson-ir.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/rc/meson-ir.c

Re: [PATCHv3 07/22] staging: android: ion: Remove page faulting support

2017-04-10 Thread Archit Taneja
Hi, On 04/04/2017 12:27 AM, Laura Abbott wrote: The new method of syncing with dma_map means that the page faulting sync implementation is no longer applicable. Remove it. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 117 -- 1 file ch

[PATCH 0/5] media: rc: meson-ir: series with smaller improvements

2017-04-10 Thread Heiner Kallweit
This series includes smaller improvements for the meson-ir driver. Tested on a Odroid C2. Heiner Kallweit (5): media: rc: meson-ir: remove irq from struct meson_ir media: rc: meson-ir: make use of the bitfield macros media: rc: meson-ir: switch to managed rc device allocation / registration

Re: [PATCHv3 08/22] staging: android: ion: Remove crufty cache support

2017-04-10 Thread Archit Taneja
Hi, On 04/04/2017 12:27 AM, Laura Abbott wrote: Now that we call dma_map in the dma_buf API callbacks there is no need to use the existing cache APIs. Remove the sync ioctl and the existing bad dma_sync calls. Explicit caching can be handled with the dma_buf sync API. We could get rid of the I

Re: [PATCH] Quirk for webcam in MacBook Pro 2016

2017-04-10 Thread Laurent Pinchart
Hi Daniel, On Monday 10 Apr 2017 20:01:18 Daniel Roschka wrote: > Hi Laurent, > > I'm really sorry for all the wrong formatting. I already took measures so it > won't happen again. Don't worry, I've seen worse :-) > > Your patch is now in my git tree, and I will push it upstream for v4.13 > > (

cron job: media_tree daily build: ERRORS

2017-04-10 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: Tue Apr 11 05:00:21 CEST 2017 media-tree git hash:4aed35ca73f6d9cfd5f7089ba5d04f5fb8623080 media_build gi

[linux-stable-rc:linux-4.9.y 1742/1772] arch/arm/mach-omap2/pdata-quirks.c:537:49: error: 'rx51_ir_data' undeclared here (not in a function)

2017-04-10 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y head: 7ee2dbbb610d590fcc19cd507e70fc17c0eb542c commit: f2ea7a5c37300861913e0884fc846ade633b06f0 [1742/1772] rx51: broken build config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-

[media] vimc: API proposal, configuring the topology from user space

2017-04-10 Thread Helen Koike
Hi, Continuing the discussion about the API of the vimc driver, I made some changes based on the previous comments, please see below and let me know your opinion about it. Helen /*** Configfs considerations: / Informal definitions: subsyst

Re: [PATCH] arm: dma: fix sharing of coherent DMA memory without struct page

2017-04-10 Thread Shuah Khan
On 04/06/2017 06:01 AM, Marek Szyprowski wrote: > Hi Shuah, > > On 2017-04-05 18:02, Shuah Khan wrote: >> When coherent DMA memory without struct page is shared, importer >> fails to find the page and runs into kernel page fault when it >> tries to dmabuf_ops_attach/map_sg/map_page the invalid pag

Looking for device driver advice

2017-04-10 Thread Patrick Doyle
I am looking for advice regarding the construction of a device driver for a MIPI CSI2 imager (a Sony IMX241) that is connected to a MIPI<->Parallel converter (Toshiba TC358748) wired into a parallel interface on a Soc (a Microchip/Atmel SAMAD2x device.) The Sony imager is controlled and configured

Re: [PATCH 0/3] support for Logilink VG0022a DVB-T2 stick

2017-04-10 Thread Andreas Kemnade
ping On Wed, 15 Mar 2017 23:22:07 +0100 Andreas Kemnade wrote: > Hi all, > here are some patches needed for supporting the > Logilink VG0022A DVB-T2 stick. > As the combination of chips in that stick is not > uncommon, the first two patches might also fix problems > for similar hardware. > > An

[PATCHv4 11/15] vidioc-queryctrl.rst: document V4L2_CTRL_FLAG_MODIFY_LAYOUT

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil Document this new control flag. Signed-off-by: Hans Verkuil --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 13 + Documentation/media/videodev2.h.rst.exceptions| 1 + 2 files changed, 14 insertions(+) diff --git a/Documentation/media/uapi/v4l/vidioc

[PATCHv4 09/15] v4l: Define a pixel format for the R-Car VSP1 2-D histogram engine

2017-04-10 Thread Hans Verkuil
From: Niklas Söderlund The format is used on the R-Car VSP1 video queues that carry 2-D histogram statistics data. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- Documentation/media/uapi/v4l/meta-formats.rst | 1 + .../media/uapi/v4l/

[PATCHv4 10/15] v4l: vsp1: Add HGT support

2017-04-10 Thread Hans Verkuil
From: Niklas Söderlund The HGT is a Histogram Generator Two-Dimensions. It computes a weighted frequency histograms for hue and saturation areas over a configurable region of the image with optional subsampling. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Laure

[PATCHv4 14/15] buffer.rst: clarify how V4L2_CTRL_FLAG_MODIFY_LAYOUT/GRABBER are used

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil Explain when the V4L2_CTRL_FLAG_MODIFY_LAYOUT and V4L2_CTRL_FLAG_MODIFY_GRABBER flags should be used. Signed-off-by: Hans Verkuil --- Documentation/media/uapi/v4l/buffer.rst | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Documentation/

[PATCHv4 15/15] vsp1: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for histogram controls

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil The two histogram controls will modify the layout of the metadata, so this flag should be set. Signed-off-by: Hans Verkuil --- drivers/media/platform/vsp1/vsp1_hgo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vsp1/vsp1_hgo.c b/drivers/media

[PATCHv4 01/15] v4l: Clearly document interactions between formats, controls and buffers

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart V4L2 exposes parameters that influence buffers sizes through the format ioctls (VIDIOC_G_FMT, VIDIOC_TRY_FMT, VIDIOC_S_FMT, and possibly VIDIOC_G_SELECTION and VIDIOC_S_SELECTION). Other parameters not part of the format structure may also influence buffer sizes or buffer l

[PATCHv4 05/15] v4l: vsp1: Support histogram generators in pipeline configuration

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart Histogram generators are single-pad entities that branch as leaf nodes at any point in the pipeline. Make sure that pipeline traversal and routing configuration support them correctly. Support for the actual HGO and HGT operation will come later. Signed-off-by: Laurent Pi

[PATCHv4 13/15] v4l2-ctrls.c: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for ROTATE

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil The rotate control will modify the layout by definition. Always set this flag. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ct

[PATCHv4 08/15] v4l: vsp1: Add HGO support

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart The HGO is a Histogram Generator One-Dimension. It computes per-channel histograms over a configurable region of the image with optional subsampling. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/Makefile | 2 +- drivers/media/platform/vsp1/vsp1.

[PATCHv4 12/15] videodev.h: add V4L2_CTRL_FLAG_MODIFY_LAYOUT

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil Add new flag to indicate that changing this control will change the buffer/mediabus layout as well. Signed-off-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev

[PATCHv4 00/15] R-Car VSP1 Histogram Support

2017-04-10 Thread Hans Verkuil
From: Hans Verkuil This patch series is the rebased version of this pull request: https://www.mail-archive.com/linux-media@vger.kernel.org/msg111025.html It slightly modifies 'Add metadata buffer type and format' (remove experimental note and add newline after label) and it adds support for V4L

[PATCHv4 07/15] v4l: Define a pixel format for the R-Car VSP1 1-D histogram engine

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart The format is used on the R-Car VSP1 video queues that carry 1-D histogram statistics data. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- Documentation/media/uapi/v4l/meta-formats.rst | 15 ++ .../media/uapi/v4l/pixfmt-meta-vsp1-hgo.rst| 168 +

[PATCHv4 06/15] v4l: vsp1: Fix HGO and HGT routing register addresses

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart The addresses are incorrect, fix them. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vsp1/vsp1_regs.h b/drivers/media/platform/vsp1/vsp1_regs.h i

[PATCHv4 03/15] v4l: Add metadata buffer type and format

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart The metadata buffer type is used to transfer metadata between userspace and kernelspace through a V4L2 buffers queue. It comes with a new metadata capture capability and format description. Signed-off-by: Laurent Pinchart Tested-by: Guennadi Liakhovetski Acked-by: Sakari

[PATCHv4 02/15] v4l: vsp1: wpf: Implement rotation support

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart Some WPF instances, on Gen3 devices, can perform 90° rotation when writing frames to memory. Implement support for this using the V4L2_CID_ROTATE control. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_rpf.c | 2 +- drivers/media/platform/vsp1/v

[PATCHv4 04/15] v4l: vsp1: Add histogram support

2017-04-10 Thread Hans Verkuil
From: Laurent Pinchart The histogram common code will be used to implement support for both the HGO and HGT histogram computation engines. Signed-off-by: Laurent Pinchart --- drivers/media/platform/Kconfig | 1 + drivers/media/platform/vsp1/Makefile | 1 + drivers/media/platf

Re: [PATCH 1/5] dt-bindings: media: Add document file for CXD2880 SPI I/F

2017-04-10 Thread Rob Herring
On Thu, Apr 06, 2017 at 04:54:33PM +0900, yasunari.takigu...@sony.com wrote: > From: Yasunari Takiguchi > > This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. > It contains the description of the SPI adapter binding. > > Signed-off-by: Yasunari Takiguchi > Signed-off-by: M

Re: [PATCH v3 1/8] v4l: Add metadata buffer type and format

2017-04-10 Thread Mauro Carvalho Chehab
Em Mon, 10 Apr 2017 19:58:46 +0200 Hans Verkuil escreveu: > On 04/10/2017 07:23 PM, Mauro Carvalho Chehab wrote: > > Em Tue, 28 Feb 2017 17:56:41 +0200 > > Laurent Pinchart escreveu: > > > >> The metadata buffer type is used to transfer metadata between userspace > >> and kernelspace through

[GIT PULL FOR v4.12] ov2640 & soc_camera sensor cleanups

2017-04-10 Thread Hans Verkuil
These are old patches (2015!) that have been lying around in my todo list ever since. Since I plan to work a bit on soc-camera sensors (at least those that I have) and since ov2640 was just moved out of soc-camera, it is time I kick these out. Regards, Hans The following changes since co

Re: [PATCH 2/2] em28xx: simplify ID-reading from Micron sensors

2017-04-10 Thread Frank Schäfer
Am 26.03.2017 um 16:24 schrieb Frank Schäfer: > > > Am 24.03.2017 um 20:16 schrieb Mauro Carvalho Chehab: >> Em Thu, 23 Mar 2017 19:03:20 +0100 >> Frank Schäfer escreveu: >> >>> Am 23.03.2017 um 13:56 schrieb Mauro Carvalho Chehab: Em Thu, 23 Mar 2017 13:01:32 +0100 Frank Schäfer escre

Re: [PATCH] Quirk for webcam in MacBook Pro 2016

2017-04-10 Thread Daniel Roschka
Hi Laurent, I'm really sorry for all the wrong formatting. I already took measures so it won't happen again. > Your patch is now in my git tree, and I will push it upstream for v4.13 > (v4.11 will be released very soon, and given the pending pull requests for > v4.12 in the Linux media tree I do

Re: [PATCH v3 1/8] v4l: Add metadata buffer type and format

2017-04-10 Thread Hans Verkuil
On 04/10/2017 07:23 PM, Mauro Carvalho Chehab wrote: > Em Tue, 28 Feb 2017 17:56:41 +0200 > Laurent Pinchart escreveu: > >> The metadata buffer type is used to transfer metadata between userspace >> and kernelspace through a V4L2 buffers queue. It comes with a new >> metadata capture capability a

Re: [PATCH v3 1/8] v4l: Add metadata buffer type and format

2017-04-10 Thread Mauro Carvalho Chehab
Em Tue, 28 Feb 2017 17:56:41 +0200 Laurent Pinchart escreveu: > The metadata buffer type is used to transfer metadata between userspace > and kernelspace through a V4L2 buffers queue. It comes with a new > metadata capture capability and format description. > > Signed-off-by: Laurent Pinchart >

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-10 Thread Laura Abbott
On 04/10/2017 09:25 AM, Greg Kroah-Hartman wrote: > On Mon, Apr 10, 2017 at 09:20:27AM -0700, Laura Abbott wrote: >> On 04/08/2017 03:38 AM, Greg Kroah-Hartman wrote: >>> On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: Hi, This is v3 of the series to do some serious Ion

[GIT PULL 4.12] si2157: Si2141 tuner support

2017-04-10 Thread Antti Palosaari
That patch set replaces existing si2146 support with new one, that looks more correct for my eyes. Antti The following changes since commit 7ca0ef3da09888b303991edb80cd0283ee641c9e: Merge tag 'v4.11-rc5' into patchwork (2017-04-04 11:11:43 -0300) are available in the git repository at: g

[RFC PATCH] Document new V4L2_CTRL_FLAG_MODIFY_LAYOUT flag

2017-04-10 Thread Hans Verkuil
This RFC patch adds documentation for the V4L2_CTRL_FLAG_MODIFY_LAYOUT flag and how this and the GRABBED flag should be used. When approved I'll post a proper patch series introducing this flag. This patch sits on top of Laurent's vsp1/next branch. Also available here: https://git.linuxtv.org/h

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-10 Thread Greg Kroah-Hartman
On Mon, Apr 10, 2017 at 09:20:27AM -0700, Laura Abbott wrote: > On 04/08/2017 03:38 AM, Greg Kroah-Hartman wrote: > > On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: > >> Hi, > >> > >> This is v3 of the series to do some serious Ion cleanup in preparation for > >> moving out of stagin

Re: [PATCHv3 00/22] Ion clean up in preparation in moving out of staging

2017-04-10 Thread Laura Abbott
On 04/08/2017 03:38 AM, Greg Kroah-Hartman wrote: > On Mon, Apr 03, 2017 at 11:57:42AM -0700, Laura Abbott wrote: >> Hi, >> >> This is v3 of the series to do some serious Ion cleanup in preparation for >> moving out of staging. I didn't hear much on v2 so I'm going to assume >> people are okay with

Re: [PATCH v3 1/8] dt-bindings: Document STM32 DCMI bindings

2017-04-10 Thread Rob Herring
On Tue, Apr 04, 2017 at 05:44:31PM +0200, Hugues Fruchet wrote: > This adds documentation of device tree bindings for the STM32 DCMI > (Digital Camera Memory Interface). > > Signed-off-by: Hugues Fruchet > --- > .../devicetree/bindings/media/st,stm32-dcmi.txt| 46 > ++ >

Re: [PATCHv3 17/22] staging: android: ion: Collapse internal header files

2017-04-10 Thread Laura Abbott
On 04/08/2017 11:12 AM, Emil Velikov wrote: > Hi Laura, > > Couple of trivial nitpicks below. > > On 3 April 2017 at 19:57, Laura Abbott wrote: > >> --- a/drivers/staging/android/ion/ion.h >> +++ b/drivers/staging/android/ion/ion.h >> @@ -1,5 +1,5 @@ >> /* >> - * drivers/staging/android/ion/io

Re: [PATCH v8 1/2] media: i2c/ov5645: add the device tree binding document

2017-04-10 Thread Rob Herring
On Mon, Apr 03, 2017 at 05:02:28PM +0300, Todor Tomov wrote: > Add the document for ov5645 device tree binding. > > Signed-off-by: Todor Tomov > Reviewed-by: Laurent Pinchart > --- > .../devicetree/bindings/media/i2c/ov5645.txt | 54 > ++ > 1 file changed, 54 insertio

Re: [PATCH] arm: dma: fix sharing of coherent DMA memory without struct page

2017-04-10 Thread Shuah Khan
On 04/05/2017 05:14 PM, Russell King - ARM Linux wrote: > On Wed, Apr 05, 2017 at 10:02:42AM -0600, Shuah Khan wrote: >> When coherent DMA memory without struct page is shared, importer >> fails to find the page and runs into kernel page fault when it >> tries to dmabuf_ops_attach/map_sg/map_page t

[PATCH v3 2/7] v4l: async: Add fwnode match support

2017-04-10 Thread Sakari Ailus
Add fwnode matching to complement OF node matching. And fwnode may also be an OF node. Do not enable fwnode matching yet. It will replace OF matching soon. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 15 +++ include/media/v4l2-async.h | 5 +

[PATCH v3 6/7] docs-rst: media: Switch documentation to V4L2 fwnode API

2017-04-10 Thread Sakari Ailus
Instead of including the V4L2 OF header in ReST documentation, use the V4L2 fwnode header instead. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart --- Documentation/media/kapi/v4l2-core.rst | 2 +- Documentation/media/kapi/v4l2-fwnode.rst | 3 +++ Documentation/media/kapi/v4l2-of.rs

[PATCH v3 0/7] V4L2 fwnode support

2017-04-10 Thread Sakari Ailus
Hello everyone, This patchset adds support for fwnode to V4L2. Besides OF, also ACPI based systems can be supported this way. By using V4L2 fwnode, the individual drivers do not need to be aware of the underlying firmware implementation. The patchset also removes specific V4L2 OF support and conve

[PATCH v3 4/7] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-04-10 Thread Sakari Ailus
Switch users of the v4l2_of_ APIs to the more generic v4l2_fwnode_ APIs. Async OF matching is replaced by fwnode matching and OF matching support is removed. Signed-off-by: Sakari Ailus Acked-by: Benoit Parrot # i2c/ov2569.c, am437x/am437x-vpfe.c and ti-vpe/cal.c --- drivers/media/i2c/Kconfig

[PATCH v3 5/7] docs-rst: media: Sort topic list alphabetically

2017-04-10 Thread Sakari Ailus
Bring some order by alphabetically ordering the list of topics. Signed-off-by: Sakari Ailus --- Documentation/media/kapi/v4l2-core.rst | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/media/kapi/v4l2-core.rst b/Documentation/media/kapi/v4l2-co

[PATCH v3 1/7] v4l: fwnode: Support generic fwnode for parsing standardised properties

2017-04-10 Thread Sakari Ailus
The fwnode_handle is a more generic way than OF device_node to describe firmware nodes. Instead of the OF API, use more generic fwnode API to obtain the same information. As the V4L2 fwnode support will be required by a small minority of e.g. ACPI based systems (the same might actually go for OF),

[PATCH v3 3/7] v4l: flash led class: Use fwnode_handle instead of device_node in init

2017-04-10 Thread Sakari Ailus
Pass the more generic fwnode_handle to the init function than the device_node. Signed-off-by: Sakari Ailus --- drivers/leds/leds-aat1290.c| 5 +++-- drivers/leds/leds-max77693.c | 5 +++-- drivers/media/v4l2-core/v4l2-flash-led-class.c | 12 ++-- i

[PATCH v3 7/7] v4l: Remove V4L2 OF framework in favour of V4L2 fwnode framework

2017-04-10 Thread Sakari Ailus
All drivers have been converted from V4L2 OF to V4L2 fwnode. The V4L2 OF framework is now unused. Remove it. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart --- drivers/media/v4l2-core/Makefile | 3 - drivers/media/v4l2-core/v4l2-of.c | 327 -- i

Re: [PATCH v2.3] v4l: Clearly document interactions between formats, controls and buffers

2017-04-10 Thread Mauro Carvalho Chehab
Em Mon, 6 Mar 2017 16:14:41 +0200 Laurent Pinchart escreveu: > V4L2 exposes parameters that influence buffers sizes through the format > ioctls (VIDIOC_G_FMT, VIDIOC_TRY_FMT, VIDIOC_S_FMT, and possibly > VIDIOC_G_SELECTION and VIDIOC_S_SELECTION). Other parameters not part of > the format struct

Re: [RFC PATCH 3/3] encoder-tpd12s015: keep the ls_oe_gpio on while the phys_addr is valid

2017-04-10 Thread Tomi Valkeinen
On 08/04/17 13:11, Hans Verkuil wrote: > So, this is a bit of a blast from the past since the omap4 CEC development > has been on hold for almost a year. But I am about to resume my work on this > now that the CEC framework was merged. > > The latest code is here, if you are interested: > > http

[GIT PULL FOR v4.12] Various fixes

2017-04-10 Thread Hans Verkuil
Various fixes for 4.12. Regards, Hans The following changes since commit 0538bee6fdec9b79910c1c9835e79be75d0e1bdf: [media] MAINTAINERS: update atmel-isi.c path (2017-04-10 08:13:08 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git for-v4.12f

Re: [PATCH v2 4/8] v4l: async: Provide interoperability between OF and fwnode matching

2017-04-10 Thread Sakari Ailus
Hi Laurent, On Sat, Apr 08, 2017 at 01:10:47AM +0300, Sakari Ailus wrote: > Hi Laurent, > > On Fri, Apr 07, 2017 at 01:07:48PM +0300, Laurent Pinchart wrote: > > Hi Sakari, > > > > Thank you for the patch. > > > > On Thursday 06 Apr 2017 16:12:06 Sakari Ailus wrote: > > > OF and fwnode support

[GIT PULL FOR v4.12] ov2640: move out of soc-camera (rebased)

2017-04-10 Thread Hans Verkuil
Hi Mauro, Here is the remainder of my "atmel-isi/ov7670/ov2640: convert to standalone drivers" pull request, rebased to the latest master. This should now merge fine. Regards, Hans The following changes since commit 0538bee6fdec9b79910c1c9835e79be75d0e1bdf: [media] MAINTAINERS: upda

Re: [GIT PULL FOR v4.12] atmel-isi/ov7670/ov2640: convert to standalone drivers

2017-04-10 Thread Mauro Carvalho Chehab
Em Tue, 4 Apr 2017 14:46:25 +0200 Hans Verkuil escreveu: > Converts atmel-isi to a regular v4l2 driver instead of relying on soc-camera. > > The ov2640 and ov7670 drivers are also converted to normal i2c drivers. > > Tested with my sama5d3-Xplained board, the ov2640 sensor and two ov7670 > sens

Re: [GIT PULL FOR v4.12] atmel-isi/ov7670/ov2640: convert to standalone drivers

2017-04-10 Thread Mauro Carvalho Chehab
Em Tue, 4 Apr 2017 14:46:25 +0200 Hans Verkuil escreveu: > Converts atmel-isi to a regular v4l2 driver instead of relying on soc-camera. > > The ov2640 and ov7670 drivers are also converted to normal i2c drivers. > > Tested with my sama5d3-Xplained board, the ov2640 sensor and two ov7670 > sens

Re: [PATCH] Quirk for webcam in MacBook Pro 2016

2017-04-10 Thread Laurent Pinchart
Hi Daniel, On Sunday 09 Apr 2017 19:43:22 Daniel Roschka wrote: > Hi Laurent, > > I don't want to sound impatient, but I as I don't know what your usual > reaction times to patches are and already waited three weeks without any > reaction, I kindly want to ask, if you already had a chance to look

Re: [PATCH] dev-capture.rst/dev-output.rst: video standards ioctls are optional

2017-04-10 Thread Hans Verkuil
On 04/10/2017 12:36 PM, Hans Verkuil wrote: > On 04/10/2017 12:21 PM, Mauro Carvalho Chehab wrote: >> Em Wed, 29 Mar 2017 09:56:47 +0200 >> Hans Verkuil escreveu: >> >>> The documentation for video capture and output devices claims that the >>> video standard >>> ioctls are required. This is not

Re: [PATCH] dev-capture.rst/dev-output.rst: video standards ioctls are optional

2017-04-10 Thread Hans Verkuil
On 04/10/2017 12:21 PM, Mauro Carvalho Chehab wrote: > Em Wed, 29 Mar 2017 09:56:47 +0200 > Hans Verkuil escreveu: > >> The documentation for video capture and output devices claims that the video >> standard >> ioctls are required. This is not the case, they are only required for >> PAL/NTSC/S

Re: [PATCH] dev-capture.rst/dev-output.rst: video standards ioctls are optional

2017-04-10 Thread Mauro Carvalho Chehab
Em Wed, 29 Mar 2017 09:56:47 +0200 Hans Verkuil escreveu: > The documentation for video capture and output devices claims that the video > standard > ioctls are required. This is not the case, they are only required for > PAL/NTSC/SECAM > type inputs and outputs. Sensors do not implement this a

Re: [PATCH v2 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-04-10 Thread Sakari Ailus
Moi, On 04/10/17 13:11, Mika Westerberg wrote: > On Mon, Apr 10, 2017 at 12:59:36PM +0300, Sakari Ailus wrote: >> Hi Mika and Laurent, >> >> On 04/10/17 12:21, Mika Westerberg wrote: >>> On Sat, Apr 08, 2017 at 01:55:15AM +0300, Sakari Ailus wrote: > My ACPI knowledge is limited, but don't ACP

Re: [PATCH v2 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-04-10 Thread Mika Westerberg
On Mon, Apr 10, 2017 at 12:59:36PM +0300, Sakari Ailus wrote: > Hi Mika and Laurent, > > On 04/10/17 12:21, Mika Westerberg wrote: > > On Sat, Apr 08, 2017 at 01:55:15AM +0300, Sakari Ailus wrote: > >>> My ACPI knowledge is limited, but don't ACPI nodes have 4 character names > >>> that > >>> ca

Re: [PATCH v2 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-04-10 Thread Sakari Ailus
Hi Mika and Laurent, On 04/10/17 12:21, Mika Westerberg wrote: > On Sat, Apr 08, 2017 at 01:55:15AM +0300, Sakari Ailus wrote: >>> My ACPI knowledge is limited, but don't ACPI nodes have 4 character names >>> that >>> can be combined in a string to create a full path ? >> >> There is something,

Re: [PATCH v2 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-04-10 Thread Mika Westerberg
On Sat, Apr 08, 2017 at 01:55:15AM +0300, Sakari Ailus wrote: > > My ACPI knowledge is limited, but don't ACPI nodes have 4 character names > > that > > can be combined in a string to create a full path ? > > There is something, yes, but the ACPI framework currently has no such > functionality.

Re: [PATCH v3 0/8] Add support for DCMI camera interface of STMicroelectronics STM32 SoC series

2017-04-10 Thread Hans Verkuil
On 04/04/2017 05:44 PM, Hugues Fruchet wrote: > This patchset introduces a basic support for Digital Camera Memory Interface > (DCMI) of STMicroelectronics STM32 SoC series. > > This first basic support implements RGB565 & YUV frame grabbing. > Cropping and JPEG support will be added later on. >

Re: [git:media_tree/master] [media] gspca: konica: add missing endpoint sanity check

2017-04-10 Thread Hans Verkuil
On 04/10/2017 10:18 AM, Johan Hovold wrote: > On Wed, Apr 05, 2017 at 06:07:31PM +, Mauro Carvalho Chehab wrote: >> This is an automatic generated email to let you know that the >> following patch were queued: >> >> Subject: [media] gspca: konica: add missing endpoint sanity check >> Author: J

Re: [PATCH 09/12] [media] s5p-mfc: use setup_timer

2017-04-10 Thread Sylwester Nawrocki
On 04/09/2017 03:34 AM, Geliang Tang wrote: Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang Applied, thanks.

Re: [git:media_tree/master] [media] gspca: konica: add missing endpoint sanity check

2017-04-10 Thread Johan Hovold
On Wed, Apr 05, 2017 at 06:07:31PM +, Mauro Carvalho Chehab wrote: > This is an automatic generated email to let you know that the > following patch were queued: > > Subject: [media] gspca: konica: add missing endpoint sanity check > Author: Johan Hovold > Date:Mon Mar 13 09:53:59 2017 -

[PATCH for v4.12] v4l2-tpg: don't clamp XV601/709 to lim range

2017-04-10 Thread Hans Verkuil
The XV601/709 encodings are special: they signal limited range, but use the full range to encode a larger gamut with R', G' and B' values outside the [0-1] range. So don't clamp to limited range for these two encodings. Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/common/v4l2-tpg/

[PATCH for v4.12] videodev2.h: fix outdated comment

2017-04-10 Thread Hans Verkuil
The XV601/709 Y'CbCr encoding was changed to limited range, but the comment still indicates full range. Signed-off-by: Hans Verkuil --- diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 316be62f3a45..5d842a61d94a 100644 --- a/include/uapi/linux/videodev2.h +++ b/i