Re: [PATCH 0/4] media: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Sakari Ailus
On Fri, Oct 20, 2017 at 01:31:19AM +0900, Akinobu Mita wrote: > The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the > subdev->flags. But some drivers overwrite subdev->flags immediately after > calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after > all. > > Thi

cron job: media_tree daily build: WARNINGS

2017-10-19 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: Fri Oct 20 05:00:18 CEST 2017 media-tree git hash:61065fc3e32002ba48aa6bc3816c1f6f9f8daf55 media_build gi

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Dmitry Torokhov
On Thu, Oct 19, 2017 at 03:45:38PM -0700, Kees Cook wrote: > On Thu, Oct 19, 2017 at 3:32 PM, Dmitry Torokhov > wrote: > > On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch to

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Kees Cook
On Thu, Oct 19, 2017 at 3:32 PM, Dmitry Torokhov wrote: > On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: >> In preparation for unconditionally passing the struct timer_list pointer to >> all timer callbacks, switch to using the new timer_setup() and from_timer() >> to pass the timer po

Re: [PATCH] media: input: Convert timers to use timer_setup()

2017-10-19 Thread Dmitry Torokhov
On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > One input_dev user hijacks the input_de

[PATCH v4 1/5] ARM: tegra: Add device tree node to describe IRAM

2017-10-19 Thread Dmitry Osipenko
From: Vladimir Zapolskiy All Tegra SoCs contain 256KiB IRAM, which is used to store CPU resume code and by hardware engines like a video decoder. Signed-off-by: Vladimir Zapolskiy --- arch/arm/boot/dts/tegra114.dtsi | 8 arch/arm/boot/dts/tegra124.dtsi | 8 arch/arm/boot/dts/

[PATCH v4 4/5] ARM: dts: tegra20: Add video decoder node

2017-10-19 Thread Dmitry Osipenko
Add Video Decoder Engine device node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index aaf32f96f1e8..6b2d7bf5c707 100644 --- a/a

[PATCH v4 3/5] staging: Introduce NVIDIA Tegra video decoder driver

2017-10-19 Thread Dmitry Osipenko
NVIDIA Tegra20/30/114/124/132 SoC's have video decoder engine that supports standard set of video formats like H.264 / MPEG-4 / WMV / VC1. Currently implemented decoding of CAVLC H.264 on Tegra20 only. Signed-off-by: Dmitry Osipenko --- drivers/staging/Kconfig|2 + drivers/stagin

[PATCH v4 5/5] ARM: defconfig: tegra: Enable Video Decoder driver

2017-10-19 Thread Dmitry Osipenko
Compile Tegra VDE driver as a module. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index 6678f2929356..c931bd48f7fd 100644 --- a/arch/arm

[PATCH v4 0/5] NVIDIA Tegra20 video decoder driver

2017-10-19 Thread Dmitry Osipenko
VDE driver provides accelerated video decoding to NVIDIA Tegra SoC's, it is a result of reverse-engineering efforts. Driver has been tested on Toshiba AC100 and Acer A500, it should work on any Tegra20 device. In userspace this driver is utilized by libvdpau-tegra [0] that implements VDPAU interfa

[PATCH v4 2/5] media: dt: bindings: Add binding for NVIDIA Tegra Video Decoder Engine

2017-10-19 Thread Dmitry Osipenko
Add binding documentation for the Video Decoder Engine which is found on NVIDIA Tegra20/30/114/124/132 SoC's. Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/media/nvidia,tegra-vde.txt | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devi

Re: [Patch 4/6] dt-bindings: media: ti-vpe: Document VPE driver

2017-10-19 Thread Tony Lindgren
* Rob Herring [171019 14:07]: > On Wed, Oct 18, 2017 at 8:02 AM, Benoit Parrot wrote: > >> > +Example: > >> > + vpe { > >> > + compatible = "ti,vpe"; > >> > + ti,hwmods = "vpe"; > >> > + clocks = <&dpll_core_h23x2_ck>; > >> > + clock-names = "fck"; > >> >

Re: [Patch 4/6] dt-bindings: media: ti-vpe: Document VPE driver

2017-10-19 Thread Rob Herring
On Wed, Oct 18, 2017 at 8:02 AM, Benoit Parrot wrote: > Rob Herring wrote on Tue [2017-Oct-17 16:00:51 -0500]: >> On Thu, Oct 12, 2017 at 02:27:17PM -0500, Benoit Parrot wrote: >> > Device Tree bindings for the Video Processing Engine (VPE) driver. >> > >> > Signed-off-by: Benoit Parrot >> > ---

Re: [PATCH v3 1/2] staging: Introduce NVIDIA Tegra20 video decoder driver

2017-10-19 Thread Rob Herring
On Tue, Oct 17, 2017 at 4:26 PM, Dmitry Osipenko wrote: > On 18.10.2017 00:13, Rob Herring wrote: >> On Tue, Oct 17, 2017 at 3:24 PM, Thierry Reding >> wrote: >>> On Tue, Oct 17, 2017 at 03:13:54PM -0500, Rob Herring wrote: >>> [...] > diff --git > a/Documentation/devicetree/bindings/arm

[GIT PULL FOR v4.15] More RC patches

2017-10-19 Thread Sean Young
Hi Mauro, Two new keymaps, convert the serial_ir to the new timer api and a fix for the imon driver. Thanks Sean The following changes since commit 61065fc3e32002ba48aa6bc3816c1f6f9f8daf55: Merge commit '3728e6a255b5' into patchwork (2017-10-17 17:22:20 -0700) are available in the git reposi

[PATCH 3/4] media: ov2640: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But this driver overwrites subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This stops breaking subdev->flags and preserves V4L2_SUBDEV_FL_IS_I2C. Side

[PATCH 4/4] media: ov5640: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But this driver overwrites subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This stops breaking subdev->flags and preserves V4L2_SUBDEV_FL_IS_I2C. Side

[PATCH 1/4] media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But this driver overwrites subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This stops breaking subdev->flags and preserves V4L2_SUBDEV_FL_IS_I2C. Side

[PATCH 2/4] media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But this driver overwrites subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This stops breaking subdev->flags and preserves V4L2_SUBDEV_FL_IS_I2C. Side

[PATCH 0/4] media: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But some drivers overwrite subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all. This patch series fixes the problem for each driver. Side note: According to

[GIT PULL for 4.15 v2] Atomisp cleanups, fixes

2017-10-19 Thread Sakari Ailus
Hi Mauro, Here's the second version of the atomisp pull request. Since v1, I've added more patches, including an oops fix from Hans de Goede and move to timer_setup from Kees Cook. Also Andy's patches to clean up the driver are in, as well as my patches to rename the atomisp specific drivers (modu

[GIT PULL for 4.15] More sensor driver patches

2017-10-19 Thread Sakari Ailus
Hi Mauro, Here's the third set of sensor driver patches for 4.15. Please pull. The following changes since commit 61065fc3e32002ba48aa6bc3816c1f6f9f8daf55: Merge commit '3728e6a255b5' into patchwork (2017-10-17 17:22:20 -0700) are available in the git repository at: ssh://linuxtv.org/git

Re: [PATCH v1 00/13] staging: atomisp: clean up bomb

2017-10-19 Thread Sakari Ailus
On Thu, Oct 19, 2017 at 02:40:31PM +0300, Andy Shevchenko wrote: > On Wed, 2017-10-18 at 23:53 +0300, Sakari Ailus wrote: > > On Wed, Sep 27, 2017 at 09:24:55PM +0300, Andy Shevchenko wrote: > > > The driver has been submitted with a limitation to few platforms and > > > sensors which it does suppo

Re: [PATCH 1/2] v4l-utils: do not query capabilities of sub-devices.

2017-10-19 Thread Sakari Ailus
Hi Harald and Hans, On Thu, Oct 19, 2017 at 03:09:15PM +0200, Harald Dankworth wrote: > Find the major and minor numbers of the device. Check if the > file /dev/dev/char/major:minor/uevent contains "DEVNAME=v4l-subdev". > If so, the device is a sub-device. > > Signed-off-by: Harald Dankworth > R

Re: [RFC PATCH 0/9] V4L2 Jobs API WIP

2017-10-19 Thread Sakari Ailus
Hi Alexandre, On Thu, Sep 28, 2017 at 06:50:18PM +0900, Alexandre Courbot wrote: > Hi everyone, > > Here is a new attempt at the "request" (which I propose to rename "jobs") API > for V4L2, hopefully in a manner that can converge to something that will be > merged. The core ideas should be easy t

Re: [PATCH] dt-bindings: media: xilinx: fix typo in example

2017-10-19 Thread Akinobu Mita
2017-10-19 1:08 GMT+09:00 Laurent Pinchart : > Hi Akinobu, > > Thank you for the patch. > > On Thursday, 12 October 2017 19:03:34 EEST Akinobu Mita wrote: >> Fix typo s/:/;/ >> >> Cc: Rob Herring >> Cc: Hyun Kwon >> Cc: Laurent Pinchart >> Signed-off-by: Akinobu Mita > > Good catch. > > Reviewe

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Thierry Reding
On Thu, Oct 19, 2017 at 03:37:43PM +0200, Hans Verkuil wrote: > On 10/19/17 15:30, Thierry Reding wrote: > > On Thu, Oct 19, 2017 at 03:17:16PM +0200, Thierry Reding wrote: > >> On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: > >>> From: Hans Verkuil > >>> > >>> In order to support C

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Hans Verkuil
On 10/19/17 15:30, Thierry Reding wrote: > On Thu, Oct 19, 2017 at 03:17:16PM +0200, Thierry Reding wrote: >> On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: >>> From: Hans Verkuil >>> >>> In order to support CEC the HDMI driver has to inform the CEC driver >>> whenever the physical

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Thierry Reding
On Thu, Oct 19, 2017 at 03:17:16PM +0200, Thierry Reding wrote: > On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: > > From: Hans Verkuil > > > > In order to support CEC the HDMI driver has to inform the CEC driver > > whenever the physical address changes. So when the EDID is read t

[PATCH 1/2] v4l-utils: do not query capabilities of sub-devices.

2017-10-19 Thread Harald Dankworth
Find the major and minor numbers of the device. Check if the file /dev/dev/char/major:minor/uevent contains "DEVNAME=v4l-subdev". If so, the device is a sub-device. Signed-off-by: Harald Dankworth Reviewed-by: Hans Verkuil --- utils/v4l2-ctl/v4l2-ctl.cpp | 56 +++

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > In order to support CEC the HDMI driver has to inform the CEC driver > whenever the physical address changes. So when the EDID is read the > CEC driver has to be informed and whenever the hotplug detect goes >

Re: [PATCH resend] [media] uvcvideo: zero seq number when disabling stream

2017-10-19 Thread Laurent Pinchart
Hi Hans, On Thursday, 19 October 2017 10:23:06 EEST Hans Yang wrote: > On 2017年10月18日 16:52, Guennadi Liakhovetski wrote: > > On Mon, 16 Oct 2017, Laurent Pinchart wrote: > >> > >> On Friday, 15 September 2017 09:27:51 EEST Hans Yang wrote: > >>> For bulk-based devices, when disabling the video s

Re: [PATCH v1 00/13] staging: atomisp: clean up bomb

2017-10-19 Thread Andy Shevchenko
On Wed, 2017-10-18 at 23:53 +0300, Sakari Ailus wrote: > On Wed, Sep 27, 2017 at 09:24:55PM +0300, Andy Shevchenko wrote: > > The driver has been submitted with a limitation to few platforms and > > sensors which it does support. Even though two sensor drivers have > > no > > users neither on ACPI-

[PATCH v2 2/2] [media] rc/keymaps: add support for RC of hisilicon poplar board

2017-10-19 Thread Jiancheng Xue
From: Younian Wang This is a NEC protocol type remote controller distributed with 96boards poplar@tocoding board. Signed-off-by: Younian Wang Signed-off-by: Jiancheng Xue --- drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-hisi-poplar.c | 69 +

[PATCH v2 1/2] [media] rc/keymaps: add support for RC of hisilicon TV demo boards

2017-10-19 Thread Jiancheng Xue
From: Younian Wang This is a NEC protocol type remote controller distributed with hisilicon TV demo boards. Signed-off-by: Younian Wang Signed-off-by: Jiancheng Xue --- drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-hisi-tv-demo.c | 81 +

[PATCH v2 0/2] [media] rc/keymaps: add support for two RCs of hisilicon boards.

2017-10-19 Thread Jiancheng Xue
Add support for two remote controllers of hisilicon boards. ChangeLog: v2: Supplement copyright statements for source files. Younian Wang (2): [media] rc/keymaps: add support for RC of hisilicon TV demo boards [media] rc/keymaps: add support for RC of hisilicon poplar board drivers/media/rc

[GIT PULL FOR v4.15] tegra-cec: new Tegra CEC driver

2017-10-19 Thread Hans Verkuil
Hi Mauro, This is a new CEC driver for the Tegra. Thierry has merged the dts and the drm cec-notifier patches for 4.15, so the CEC driver itself can now be merged in the media subsystem. Thanks! Hans The following changes since commit 61065fc3e32002ba48aa6bc3816c1f6f9f8daf55: Merge c

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-19 Thread Thierry Reding
On Thu, Oct 19, 2017 at 11:36:14AM +0200, Hans Verkuil wrote: > On 10/19/17 11:20, Thierry Reding wrote: > > On Mon, Sep 11, 2017 at 02:29:48PM +0200, Hans Verkuil wrote: > >> From: Hans Verkuil > >> > >> This patch series adds support for the Tegra CEC functionality. > >> > >> This v4 has been re

Re: [PATCHv4 4/4] drm/tegra: add cec-notifier support

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:52PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > In order to support CEC the HDMI driver has to inform the CEC driver > whenever the physical address changes. So when the EDID is read the > CEC driver has to be informed and whenever the hotplug detect goes >

Re: [PATCHv4 3/4] tegra-cec: add Tegra HDMI CEC driver

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:51PM +0200, Hans Verkuil wrote: [...] > diff --git a/drivers/media/platform/tegra-cec/tegra_cec.c > b/drivers/media/platform/tegra-cec/tegra_cec.c [...] > +static int tegra_cec_probe(struct platform_device *pdev) > +{ > + struct platform_device *hdmi_dev; > +

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-19 Thread Hans Verkuil
On 10/19/17 11:20, Thierry Reding wrote: > On Mon, Sep 11, 2017 at 02:29:48PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil >> >> This patch series adds support for the Tegra CEC functionality. >> >> This v4 has been rebased to the latest 4.14 pre-rc1 mainline. >> >> Please review! Other than f

[PATCH] [media] rockchip/rga: annotate PM functions as __maybe_unused

2017-10-19 Thread Arnd Bergmann
The newly added driver has incorrect #ifdef annotations on its PM functions, leading to a harmless compile-time warning when CONFIG_PM is disabled: drivers/media/platform/rockchip/rga/rga.c:760:13: error: 'rga_disable_clocks' defined but not used [-Werror=unused-function] static void rga_disable

Re: [PATCHv4 2/4] ARM: tegra: add CEC support to tegra124.dtsi

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:50PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Add support for the Tegra CEC IP to tegra124.dtsi and enable it on the > Jetson TK1. > > Signed-off-by: Hans Verkuil > --- > arch/arm/boot/dts/tegra124-jetson-tk1.dts | 4 > arch/arm/boot/dts/tegra124.

Re: [PATCHv4 1/4] dt-bindings: document the tegra CEC bindings

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:49PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > This documents the binding for the Tegra CEC module. > > Signed-off-by: Hans Verkuil > Acked-by: Rob Herring > --- > .../devicetree/bindings/media/tegra-cec.txt| 27 > ++ > 1 fi

Re: [PATCHv4 0/4] tegra-cec: add Tegra HDMI CEC support

2017-10-19 Thread Thierry Reding
On Mon, Sep 11, 2017 at 02:29:48PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > This patch series adds support for the Tegra CEC functionality. > > This v4 has been rebased to the latest 4.14 pre-rc1 mainline. > > Please review! Other than for the bindings that are now Acked I have not >

Re: [PATCH v2 3/4] media: i2c: Add TDA1997x HDMI receiver driver

2017-10-19 Thread Hans Verkuil
On 10/19/2017 09:20 AM, Tim Harvey wrote: > On Wed, Oct 18, 2017 at 5:04 AM, Hans Verkuil wrote: >> Hi Tim, >> >> Here is my review of this v2: >> >> On 10/12/17 06:45, Tim Harvey wrote: >>> Add support for the TDA1997x HDMI receivers. >>> > >>> + >>> +/* >>> + * Video Input formats >>> + */ >>>

Re: [PATCH resend] [media] uvcvideo: zero seq number when disabling stream

2017-10-19 Thread Hans Yang
Hi Laurent and Guennadi, On 2017年10月18日 16:52, Guennadi Liakhovetski wrote: Hi Laurent, On Mon, 16 Oct 2017, Laurent Pinchart wrote: Hi Hans, (CC'ing Guennadi Liakhovetski) Thank you for the patch. On Friday, 15 September 2017 09:27:51 EEST Hans Yang wrote: For bulk-based devices, when di

Re: [PATCH 0/2] [media] rc/keymaps: add support for two RCs of hisilicon boards.

2017-10-19 Thread Hans Verkuil
On 10/19/2017 09:12 AM, Jiancheng Xue wrote: > Hi Hans, > > On 2017/10/19 15:01, Hans Verkuil wrote: >> On 10/18/2017 12:54 PM, Jiancheng Xue wrote: >>> Add support for two remote controllers of hisilicon boards. >>> >>> Younian Wang (2): >>> [media] rc/keymaps: add support for RC of hisilicon T

Re: [PATCH v2 3/4] media: i2c: Add TDA1997x HDMI receiver driver

2017-10-19 Thread Tim Harvey
On Wed, Oct 18, 2017 at 5:04 AM, Hans Verkuil wrote: > Hi Tim, > > Here is my review of this v2: > > On 10/12/17 06:45, Tim Harvey wrote: >> Add support for the TDA1997x HDMI receivers. >> >> + >> +/* >> + * Video Input formats >> + */ >> +struct vhref_values { >> + u16 href_start; >> + u

Re: [PATCH 0/2] [media] rc/keymaps: add support for two RCs of hisilicon boards.

2017-10-19 Thread Jiancheng Xue
Hi Hans, On 2017/10/19 15:01, Hans Verkuil wrote: > On 10/18/2017 12:54 PM, Jiancheng Xue wrote: >> Add support for two remote controllers of hisilicon boards. >> >> Younian Wang (2): >> [media] rc/keymaps: add support for RC of hisilicon TV demo boards >> [media] rc/keymaps: add support for R

Re: [PATCH 0/2] [media] rc/keymaps: add support for two RCs of hisilicon boards.

2017-10-19 Thread Hans Verkuil
On 10/18/2017 12:54 PM, Jiancheng Xue wrote: > Add support for two remote controllers of hisilicon boards. > > Younian Wang (2): > [media] rc/keymaps: add support for RC of hisilicon TV demo boards > [media] rc/keymaps: add support for RC of hisilicon poplar board > > drivers/media/rc/keymap