Re: Troubles with kernel-doc and RST files

2016-07-17 Thread Jonathan Corbet
[Back home and trying to get going on stuff for real. I'll look at the issues listed in this message one at a time.] On Sun, 17 Jul 2016 10:01:54 -0300 Mauro Carvalho Chehab wrote: > 1) We now need to include each header file with documentation twice, > one to get the enums, structs, typedefs,

cron job: media_tree daily build: ERRORS

2016-07-17 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: Mon Jul 18 04:00:12 CEST 2016 git branch: test git hash: e05b1872f29a85532c2b34e3a4974a27158f1463 gcc versi

[PATCH 27/36] [media] doc-rst: add sh_mobile_ceu_camera crop documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add it to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + .../media/v4l-drivers/sh_mobile_ceu_camera.rst | 57 +++--- 2 files changed, 30 insertions(+), 28 deletions(-) diff --

[PATCH 02/36] [media] doc-rst: move cardlists to media/v4l-drivers

2016-07-17 Thread Mauro Carvalho Chehab
Convert the cardlists to ReST format and move them to Documentation/media/v4l-drivers/ Signed-off-by: Mauro Carvalho Chehab --- .../media/v4l-drivers/au0828-cardlist.rst | 11 ++ Documentation/media/v4l-drivers/bttv-cardlist.rst | 172 ++ Documentation/media/v4l-driver

[PATCH 30/36] [media] doc-rst: add documentation for si476x

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 2 + Documentation/media/v4l-drivers/si476x.rst | 229 - 2 files changed, 96 insertions(+), 135 deletions(-) diff --git a/Doc

[PATCH 32/36] [media] doc-rst: add documentation for uvcvideo

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst| 1 + Documentation/media/v4l-drivers/uvcvideo.rst | 48 ++-- 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/Doc

[PATCH 03/36] [media] doc-rst: Remove deprecated API.html document

2016-07-17 Thread Mauro Carvalho Chehab
This document points to some old stuff. Just remove it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/video4linux/API.html | 27 --- 1 file changed, 27 deletions(-) delete mode 100644 Documentation/video4linux/API.html diff --git a/Documentation/video4linux/API

[PATCH 26/36] [media] doc-rst: add documentation for saa7134

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to the media/v4l-device book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/saa7134.rst | 43 + 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/D

[PATCH 35/36] [media] doc-rst: add documentation about IR on V4L boards

2016-07-17 Thread Mauro Carvalho Chehab
This section is outdated, but let's add it, after converting to ReST, and then fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/v4l-with-ir.rst | 15 +-- 2 files changed, 10 insertions(+), 6 delet

[PATCH 15/36] [media] doc-rst: Add cx88 documentation to media book

2016-07-17 Thread Mauro Carvalho Chehab
Convert the cx88 documentation to rst and add it to the v4l-devices book Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/cx88.rst | 15 --- Documentation/media/v4l-drivers/index.rst | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Docu

[PATCH 22/36] [media] doc-rst: add omap4_camera documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert the omap4_camera documentation to ReST and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst| 1 + Documentation/media/v4l-drivers/omap4_camera.rst | 28 2 files changed, 15 insertion

[PATCH 10/36] [media] doc-rst: convert fourcc to rst format

2016-07-17 Thread Mauro Carvalho Chehab
Fix fourcc for it to be correcly parsed by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/fourcc.rst | 20 +--- Documentation/media/v4l-drivers/index.rst | 1 + 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Documentation/medi

[PATCH 31/36] [media] doc-rst: add soc-camera documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST format and add it at media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/si476x.rst | 12 +--- Documentation/media/v4l-drivers/soc-camera.rst | 41 +++---

[PATCH 14/36] [media] doc-rst: add documentation for cpia2 driver

2016-07-17 Thread Mauro Carvalho Chehab
Convert the documentation to rst, merge the two files and add to the index.rst. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/cpia2.rst | 202 + Documentation/media/v4l-drivers/cpia2_overview.rst | 38 Documentation/media/v4l-drivers/

[PATCH 16/36] [media] cx88.rst: Update the documentation

2016-07-17 Thread Mauro Carvalho Chehab
This doc is outdated, and contains information that it is not true anymore. Update it to reflect the changes that this driver suffered since I started working on it. While here, also update Gerd's name. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/cx88.rst | 52 +

[PATCH 36/36] [media] v4l-with-ir.rst: update it to reflect the current status

2016-07-17 Thread Mauro Carvalho Chehab
This document were really old. Update it to reflect the current status of the IR drivers for TV. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/v4l-with-ir.rst | 82 - 1 file changed, 40 insertions(+), 42 deletions(-) diff --git a/Documentation/

[PATCH 18/36] [media] doc-rst: add documentation for fimc driver

2016-07-17 Thread Mauro Carvalho Chehab
Convert the document to rst and add it to the v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/fimc.rst | 95 +++ Documentation/media/v4l-drivers/index.rst | 1 + 2 files changed, 60 insertions(+), 36 deletions(-) diff --gi

[PATCH 19/36] [media] doc-rst: Add ivtv documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert ivtv documentation to rst, update the links there and add to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/ivtv.rst | 209 +- 2 files changed, 121 insertions

[PATCH 13/36] [media] doc-rst: add Zoran zr364xx documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert the documentation to rst and add it to the book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/zr364xx.rst | 89 + 2 files changed, 65 insertions(+), 25 deletions(-) diff --git a/D

[PATCH 28/36] [media] doc-rst: add documentation for si470x

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/si470x.rst | 74 ++ 2 files changed, 56 insertions(+), 19 deletions(-) diff --git a/Docum

[PATCH 24/36] [media] doc-rst: add pxa_camera documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert pxa_camera to ReST format and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/pxa_camera.rst | 212 ++--- 2 files changed, 116 insertions(+), 97 dele

[PATCH 34/36] [media] doc-rst: add vivid documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to media/v4l-drivers book. As the sections here (and on other docs) are numbered, let's also make this book auto-numbered. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 2 + Documentation/media/v4l-drivers/vivid.rst | 667 +

[PATCH 33/36] [media] doc-rst: add documentation for Zoran driver

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/zoran.rst | 305 ++ 2 files changed, 189 insertions(+), 117 deletions(-) diff --git a/Doc

[PATCH 25/36] [media] doc-rst: add documentation for radiotrack

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/radiotrack.rst | 179 ++--- 2 files changed, 100 insertions(+), 80 deletions(-) diff

[PATCH 11/36] [media] doc-rst: convert cafe_ccic file to rst format

2016-07-17 Thread Mauro Carvalho Chehab
This file is almost ok, but it needs chapter/sections and a code-block. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/cafe_ccic.rst | 24 +++- Documentation/media/v4l-drivers/index.rst | 1 + 2 files changed, 16 insertions(+), 9 deletions(-) d

[PATCH 21/36] [media] doc-rst: add omap3isp documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert omap3isp documentation to ReST and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst| 1 + Documentation/media/v4l-drivers/omap3isp.rst | 135 ++- 2 files changed, 70 insertions(+), 66 de

[PATCH 17/36] [media] doc-rst: add davinci-vpbe documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to rst format and add it to the v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/davinci-vpbe.rst | 32 +--- Documentation/media/v4l-drivers/index.rst| 1 + 2 files changed, 18 insertions(+), 15 deletions(-) diff

[PATCH 23/36] [media] doc-rst: add documentation for pvrusb2

2016-07-17 Thread Mauro Carvalho Chehab
Convert pvrusb2 documentation to ReST file and removed the note about an html version of the documentation, as it is not shipped inside the Kernel. Add it to media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media

[PATCH 29/36] [media] doc-rst: add documentation for si4713

2016-07-17 Thread Mauro Carvalho Chehab
Convert it to ReST and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/si4713.rst | 188 - 1 file changed, 101 insertions(+), 87 deletions(-) diff --git a/Documentation/media/v4l-drivers/si4713.rst b/Doc

[PATCH 01/36] [media] extract_xc3028.pl: move it to scripts/dir

2016-07-17 Thread Mauro Carvalho Chehab
This doesn't belong at documentation. Move it to scripts. Signed-off-by: Mauro Carvalho Chehab --- {Documentation/video4linux => scripts}/extract_xc3028.pl | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {Documentation/video4linux => scripts}/extract_xc3028.pl (100%) diff --git a/D

[PATCH 09/36] [media] doc-rst: Move v4l docs to media/v4l-drivers

2016-07-17 Thread Mauro Carvalho Chehab
Move V4L documentation files to media/v4l-drivers. Those aren't core stuff, so they don't fit at the kAPI document. Signed-off-by: Mauro Carvalho Chehab --- Documentation/{video4linux/cafe_ccic => media/v4l-drivers/cafe_ccic.rst} | 0 Documentation/{video4linux/README.cpia2 => media/v4l-drivers

[PATCH 20/36] [media] doc-rst: add meye documentation

2016-07-17 Thread Mauro Carvalho Chehab
Convert the meye documentation to rst and add it to the media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/meye.rst | 103 -- 2 files changed, 57 insertions(+), 47 deleti

[PATCH 06/36] [media] doc-rst: move videobuf documentation to media/kapi

2016-07-17 Thread Mauro Carvalho Chehab
This document describes a kapi framework. Move it to the right place. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/v4l2-controls.rst | 169 +++-- .../videobuf => media/kapi/videobuf.rst} | 0 2 files changed, 122 insertions(+), 47 deletion

[PATCH 04/36] [media] doc-rst: move framework docs to kAPI documentation

2016-07-17 Thread Mauro Carvalho Chehab
Those documentation are part of the kAPI one. Move to the right place. Signed-off-by: Mauro Carvalho Chehab --- .../{video4linux/v4l2-controls.txt => media/kapi/v4l2-controls.rst} | 0 .../{video4linux/v4l2-framework.txt => media/kapi/v4l2-framework.rst} | 0 Documentation/media/media_driv

[PATCH 05/36] [media] doc-rst: do a poor man's conversion of v4l2-framework

2016-07-17 Thread Mauro Carvalho Chehab
Make Sphinx happy with v4l2-framework.rst by putting all C code inside code-block. Please note that this is a poor man ReST conversion, as several of those blocks should actually be converted to use :cpp:func:, pointing to the kAPI auto-generated documentation. The problem is that we currently la

[PATCH 12/36] [media] doc-rst: add gspca cardlist

2016-07-17 Thread Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/cardlist.rst | 1 + .../media/v4l-drivers/{gspca.rst => gspca-cardlist.rst} | 16 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) rename Documentation/media/v4l-drivers/{gspca.rst => gspca-c

[PATCH 07/36] [media] doc-rst: Convert videobuf documentation to ReST

2016-07-17 Thread Mauro Carvalho Chehab
The videobuf documentation is almost at rst format: we just needed to add titles and add some code-blocks there and that's it. Also, add a notice that this framework is deprecated. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/videobuf.rst | 51 ++

[PATCH 08/36] doc-rst: add v4l-drivers to index file

2016-07-17 Thread Mauro Carvalho Chehab
Adds documentation for V4L drivers. Signed-off-by: Mauro Carvalho Chehab --- Documentation/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/index.rst b/Documentation/index.rst index b61d8deb84d1..31273cc2e0bc 100644 --- a/Documentation/index.rst +++ b/Documentation/ind

[PATCH] [media] cec: Delete an unnecessary check before the function call "rc_free_device"

2016-07-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Jul 2016 22:52:49 +0200 The rc_free_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- dr

[PATCH] [media] tw686x-kh: Delete an unnecessary check before the function call "video_unregister_device"

2016-07-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Jul 2016 22:00:35 +0200 The video_unregister_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

[PATCH 04/15] [media] doc-rst: convert bt8xx doc to rst

2016-07-17 Thread Mauro Carvalho Chehab
This document almost follows a markup language, but it is not ReST. Fix it to be handled by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/bt8xx.rst | 120 ++ Documentation/media/dvb-drivers/index.rst | 1 + 2 files changed, 73 inse

[PATCH 14/15] [media] doc-rst: convert udev chapter to rst

2016-07-17 Thread Mauro Carvalho Chehab
This chapter is outdated. I almost removed, but, as we're lacking documentation about how to make DVB devices persistent, I opted, instead, to keep it, and add a note about that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 1 + Documentation/media/dvb-dr

[PATCH 11/15] [media] doc-rst: add opera-firmware.rst to DVB docs

2016-07-17 Thread Mauro Carvalho Chehab
This file is shown OK with ReST. Yet, as we changed the place where the get_dvb_firmware script is, we need to update it. While here, move the author's name to the beginning of the file. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 1 + Document

[PATCH 09/15] [media] doc-rst: convert DVB FAQ to ReST format

2016-07-17 Thread Mauro Carvalho Chehab
Convert the DVB FAQ to ReST format and add a note that this is outdated. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/faq.rst | 18 +- Documentation/media/dvb-drivers/index.rst | 1 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/D

[PATCH 08/15] [media] doc-rst: Convert dvb-usb to ReST format

2016-07-17 Thread Mauro Carvalho Chehab
This file is not on any markup language. Convert it to ReST format. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/dvb-usb.rst | 317 +++- Documentation/media/dvb-drivers/index.rst | 1 + 2 files changed, 221 insertions(+), 97 deletions(-) d

[PATCH 05/15] [media] doc-rst: convert cards to rst format

2016-07-17 Thread Mauro Carvalho Chehab
This file is using a markup-like language, but it is not quite ReST. Convert it, and add a note pointing to the Wiki page with the known supported hardware devices. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/cards.rst | 71 --- Documentat

[PATCH 15/15] [media] add DVB documentation to Sphinx

2016-07-17 Thread Mauro Carvalho Chehab
Now that all DVB files got converted, add it to Sphinx build. Signed-off-by: Mauro Carvalho Chehab --- Documentation/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/index.rst b/Documentation/index.rst index a5a100d43f4f..b61d8deb84d1 100644 --- a/Documentation/index.r

[PATCH 06/15] [media] doc-rst: Convert ci.txt to a rst file

2016-07-17 Thread Mauro Carvalho Chehab
The old ci.txt file had a very peculiar format, with doesn't match any markup language I know. Change it to be on ReST format, for it to be parsed by Sphinx. Also, as this is an old document, add a note about it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/ci.rst

[PATCH 12/15] [media] doc-rst: Convert technisat document to ReST

2016-07-17 Thread Mauro Carvalho Chehab
This document need some changes to be properly parsed by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 1 + Documentation/media/dvb-drivers/technisat.rst | 148 +++--- 2 files changed, 85 insertions(+), 64 deletions(-) dif

[PATCH 10/15] [media] doc-rst: Convert lmedm04 to rst format

2016-07-17 Thread Mauro Carvalho Chehab
This file was missing a name for the index, and weren't using any markup language. Make it looks better and convert to ReST. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 1 + Documentation/media/dvb-drivers/lmedm04.rst | 72 +++--

[PATCH 02/15] [media] doc-rst: move DVB introduction to a separate file

2016-07-17 Thread Mauro Carvalho Chehab
Instead of keeping the introduction together with the index, move it to a separate file, and add it via toctree at the index. The information there are outdated, so update it to point to the right links. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 71 +++

[PATCH 13/15] [media] doc-rst: convert ttusb-dev to rst

2016-07-17 Thread Mauro Carvalho Chehab
There are some things that needed to be done to convert it to ReST. Also, there are some obsolete info there related to Kernels 2.4 and 2.6. Update them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/index.rst | 1 + Documentation/media/dvb-drivers/ttusb-dec.rst |

[PATCH 07/15] [media] doc-rst: Convert contributors list to ReST

2016-07-17 Thread Mauro Carvalho Chehab
The contributors list needs some adjustments to be properly formatted. Also, this list has not been updated for a while. So, add a notice about that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/contributors.rst | 169 ++- Documentation/media/dvb-

[PATCH 01/15] [media] doc-rst: move DVB avulse docs to Documentation/media

2016-07-17 Thread Mauro Carvalho Chehab
There are several documentation stuff under Documentation/dvb. Move them to Documentation/media/dvb-drivers and rename them to rst, as they'll soon be converted to rst files. No changes at the documentation. Signed-off-by: Mauro Carvalho Chehab --- Documentation/{dvb/avermedia.txt => media/dvb

[PATCH 03/15] [media] doc-rst: Fix format of avermedia.rst

2016-07-17 Thread Mauro Carvalho Chehab
This file is almost at the ReST format, but some things need to be fixed for it to be parsed. Also, the documentation there is old. So, add a notice about that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/dvb-drivers/avermedia.rst | 510 -- Documentation

Re: [PATCH v2 2/3] dt-bindings: Document Renesas R-Car FCP power-domains usage

2016-07-17 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday 30 Jun 2016 17:50:29 Kieran Bingham wrote: > The power domain must be specified to bring the device out of module > standby. Document this in the bindings provided, so that new additions > are not missed. > > Signed-off-by: Kieran Bingham Acked-b

[PATCH] doc-rst: cec: update documentation

2016-07-17 Thread Hans Verkuil
Update and expand the CEC documentation. Especially w.r.t. non-blocking mode. Signed-off-by: Hans Verkuil --- This depends on https://patchwork.linuxtv.org/patch/35506/. --- diff --git a/Documentation/media/uapi/cec/cec-func-open.rst b/Documentation/media/uapi/cec/cec-func-open.rst index cbf1176

[GIT PULL FOR v4.8] (v2) CEC fixes, vivid CEC enhancement

2016-07-17 Thread Hans Verkuil
These patches fix a number of bugs in the CEC framework. These were discovered while extending and improving the compliance tests for the CEC API. The vivid patch adds MONITOR_ALL support. The latest compliance tests are here: https://git.linuxtv.org/hverkuil/v4l-utils.git/log/?h=cec-johan The

[PATCH 8/7] cec: poll should check if there is room in the tx queue

2016-07-17 Thread Hans Verkuil
For POLLOUT poll only checked if the adapter was configured, not if there was room in the transmit queue. Add that check. Signed-off-by: Hans Verkuil --- drivers/staging/media/cec/cec-api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/cec/cec-api.c

[GIT PULL FOR v4.8] CEC fixes, vivid CEC enhancement

2016-07-17 Thread Hans Verkuil
These patches fix a number of bugs in the CEC framework. These were discovered while extending and improving the compliance tests for the CEC API. The final patch adds MONITOR_ALL mode to vivid. The latest compliance tests are here: https://git.linuxtv.org/hverkuil/v4l-utils.git/log/?h=cec-johan

[PATCH 7/7] vivid: support monitor all mode

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Just pass the transmitted CEC message to all CEC adapters. This implements the Monitor All mode for vivid. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-cec.c | 44 +++- 1 file changed, 15 insertions(+), 29 deletions(-) diff

[PATCH 6/7] cec: fix test for unconfigured adapter in main message loop

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil The main message loop checks if the physical address was valid, and if not it is assumed that the adapter had been unconfigured. However, this check is no longer correct, instead it should check that both adap->is_configured and adap->is_configuring are false. Signed-off-by:

[PATCH 2/7] cec: clear all status fields before transmit and always fill in sequence

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Before transmitting a message clear all status fields and always fill in the sequence number. Make sure the sequence number is never 0. Signed-off-by: Hans Verkuil --- drivers/staging/media/cec/cec-adap.c | 22 +- 1 file changed, 13 insertions(+), 9 delet

[PATCH 5/7] cec: limit the size of the transmit queue

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil The size of the transmit queue was unlimited, which meant that in non-blocking mode you could flood the CEC adapter with messages to be transmitted. Limit this to 18 messages. Also print the number of pending transmits and the timeout value in the status debugfs file. Signed

[PATCH 1/7] cec: CEC_RECEIVE overwrote the timeout field

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil When CEC_RECEIVE returns a message the original timeout field was overwritten. Restore the timeout field. Signed-off-by: Hans Verkuil --- drivers/staging/media/cec/cec-api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/cec/cec-api.c b/drivers

[PATCH 4/7] cec: zero unused msg part after msg->len

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Ensure that the unused part of the msg array is zeroed. This is required by CEC 2.0 when receiving shorter messages than expected. In that case the remaining bytes are assumed to be 0. There are no such CEC messages yet, but it is required to be future proof. And since we're

[PATCH 3/7] cec: don't set fh to NULL in CEC_TRANSMIT

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil The filehandle was set to NULL when in non-blocking mode or when no reply is needed. This is wrong: the filehandle is needed in non-blocking mode to ensure that the result of the transmit can be obtained through CEC_RECEIVE. And the 'reply' check was also incorrect since it s

[PATCH 0/7] cec: various fixes

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil While writing more and better compliance tests for the CEC API I found a number of corner cases that were not handled correctly. For the most part it was fields that weren't initialized correctly, but but more serious was the fact that there was no limit to the number of pendi

[PATCH 3/7] [media] doc-rst: split media_drivers.rst into one file per API type

2016-07-17 Thread Mauro Carvalho Chehab
Just like the uAPI book is split into parts, let's split the kAPI documentation. That should make easier to maintain, and will split the final documentation into smaller html files. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/dtv-core.rst | 122 ++ Documentation/me

[PATCH 7/7] [media] doc-rst: Fix conversion for dvb-core.rst

2016-07-17 Thread Mauro Carvalho Chehab
The conversion from DocBook required some fixes: - Now, the C files with the exported symbols also need to be added. So, all headers need to be included twice: one to get the structs/enums/.. and another one for the functions; - Notes should use the ReST tag, as kernel-doc doesn't recognize

[PATCH 5/7] [media] doc-rst: Fix conversion for v4l2 core functions

2016-07-17 Thread Mauro Carvalho Chehab
The conversion from DocBook lead into some conversion issues, basically due to the lack of proper support at kernel-doc. So, address them: - Now, the C files with the exported symbols also need to be added. So, all headers need to be included twice: one to get the structs/enums/.. and another

[PATCH 4/7] [media] doc-rst: Fix issues with RC documentation

2016-07-17 Thread Mauro Carvalho Chehab
The kernel-doc script is now broken if it doesn't find all exported symbols documented. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/kapi/rc-core.rst | 9 include/media/lirc_dev.h | 2 +- include/media/rc-core.h | 45 +++

[PATCH 1/7] [media] doc-rst: Convert media API to rst

2016-07-17 Thread Mauro Carvalho Chehab
Move the contents of the media section at DocBooks/DocBook/device-drivers.tmpl to a new ReST book. For now, the contents is kept as-is. Next patches will fix the warnings and add cross-references that were removed due to the conversion. Signed-off-by: Mauro Carvalho Chehab --- Documentation/Doc

[PATCH 2/7] [media] doc-rst: media_drivers.rst: Fix paragraph headers for MC

2016-07-17 Thread Mauro Carvalho Chehab
Fix the paragraph identation for the media controller headers. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/media_drivers.rst | 41 --- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/Documentation/media/media_drivers.rst b/Documen

[PATCH 6/7] [media] doc-rst: Fix conversion for MC core functions

2016-07-17 Thread Mauro Carvalho Chehab
There were lots of issues at the media controller side, after the conversion: - Some documentation at the header files weren't using the kernel-doc start block; - Now, the C files with the exported symbols also need to be added. So, all headers need to be included twice: one to get the stru

Troubles with kernel-doc and RST files

2016-07-17 Thread Mauro Carvalho Chehab
I'm now converting the kAPI media doc to RST file, and I'm seeing several issues with kernel-doc conversion: 1) We now need to include each header file with documentation twice, one to get the enums, structs, typedefs, ... and another one for the functions: .. kernel-doc:: include/media/m

[PATCH v2 3/7] kfence: Extend kfences for listening on DMA fences

2016-07-17 Thread Chris Wilson
dma-buf provides an interfaces for receiving notifications from DMA hardware, and for implicitly tracking fences used for rendering into dma-buf. We want to be able to use these event sources along with kfence for easy collection and combining with other events. Signed-off-by: Chris Wilson Cc: Su

[PATCH v2 1/7] kfence: Introduce kfence, a N:M completion mechanism

2016-07-17 Thread Chris Wilson
Completions are a simple synchronization mechanism, suitable for 1:M barriers where many waiters maybe waiting for a single event. However, some event driven mechanisms require a graph of events where one event may depend upon several earlier events. The kfence extends the struct completion to be a

[PATCH v2 2/7] kfence: Wrap hrtimer to provide a time source for a kfence

2016-07-17 Thread Chris Wilson
A common requirement when scheduling a task is that it should be not be begun until a certain point in time is passed (e.g. queue_delayed_work()). kfence_await_hrtimer() causes the kfence to asynchronously wait until after the appropriate time before being woken. Signed-off-by: Chris Wilson Cc:

[PATCH v2 7/7] async: Introduce a dependency resolver for parallel execution

2016-07-17 Thread Chris Wilson
A challenge in driver initialisation is the coordination of many small sometimes independent, sometimes interdependent tasks. We would like to schedule the independent tasks for execution in parallel across as many cores as possible for rapid initialisation, and then schedule all the dependent task

[PATCH v2 6/7] async: Add execution barriers

2016-07-17 Thread Chris Wilson
A frequent mode of operation is fanning out N tasks to execute in parallel, collating results, fanning out M tasks, rinse and repeat. This is also common to the notion of the async/sync kernel domain split. A barrier provides a mechanism by which all work queued after the barrier must wait (i.e. no

[PATCH v2 5/7] async: Add support for explicit fine-grained barriers

2016-07-17 Thread Chris Wilson
The current async-domain model supports running a multitude of independent tasks with a coarse synchronisation point. This is sufficient for its original purpose of allowing independent drivers to run concurrently during various phases (booting, early resume, late resume etc), and keep the asynchro

[PATCH] v4l: vsp1: Report device model through media device information

2016-07-17 Thread Laurent Pinchart
Instead of hardcoding the media device model to "VSP1", report the actual hardware device model. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1.h | 1 + drivers/media/platform/vsp1/vsp1_drv.c | 10 +- 2 files changed, 10 insertions(+), 1 deletion(-) This patch

Re: [PATCH 0/5] dv-timings: add VICs and picture aspect ratio

2016-07-17 Thread Hans Verkuil
On 07/17/2016 11:08 AM, Hans Verkuil wrote: > From: Hans Verkuil > > The v4l2_bt_timings struct is missing information about the picture aspect > ratio and the CEA-861 and HDMI VIC (Video Identification Code). > > This patch series adds support for this. Note: the documentation patch is missing

[PATCH 4/5] cobalt: add cropcap support

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Now that the timings contain picture aspect ratio information, we can support cropcap to return the pixel aspect ratio. Signed-off-by: Hans Verkuil --- drivers/media/pci/cobalt/cobalt-v4l2.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/m

[PATCH 5/5] adv7604: add vic detect

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Obtain the correct timings based on the VIC code from the AVI InfoFrame. It does a sanity check to see if at least the measured width and height are in line with what the VIC code reports. If not, then use the timings instead of the VIC code (as per the CEA-861 spec). Signed-

[PATCH 1/5] videodev2.h: add VICs and picture aspect ratio

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Add picture aspect ratio information, the CEA-861 VIC (Video Identification Code) and the HDMI VIC to struct v4l2_bt_timings. The picture aspect was chosen rather than the pixel aspect since 1) the CEA-861 standard uses picture aspect, and 2) pixel aspect ratio can become tric

[PATCH 3/5] v4l2-dv-timings: add helpers to find vic and pixelaspect ratio

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Add a helper to find timings based on the CEA-861 VIC code. Also add a helper that returns the pixel aspect ratio based on the v4l2_dv_timings struct. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/Kconfig | 1 + drivers/media/v4l2-core/v4l2-dv-timings.c

[PATCH 0/5] dv-timings: add VICs and picture aspect ratio

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil The v4l2_bt_timings struct is missing information about the picture aspect ratio and the CEA-861 and HDMI VIC (Video Identification Code). This patch series adds support for this. Regards, Hans Hans Verkuil (5): videodev2.h: add VICs and picture aspect ratio v4l

[PATCH 2/5] v4l2-dv-timings: add VICs and picture aspect ratio

2016-07-17 Thread Hans Verkuil
From: Hans Verkuil Add the CEA-861 VIC, the HDMI VIC and the picture aspect ratio information where applicable. Signed-off-by: Hans Verkuil --- include/uapi/linux/v4l2-dv-timings.h | 97 +++- 1 file changed, 63 insertions(+), 34 deletions(-) diff --git a/includ

[PATCH] cobalt: support reduced fps

2016-07-17 Thread Hans Verkuil
Add support for reduced fps (i.e. 59.94 Hz instead of 60 Hz) for the HDMI output. Signed-off-by: Hans Verkuil --- drivers/media/pci/cobalt/cobalt-v4l2.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c b/drivers/media/pci/cobalt/c

[PATCH] adv7511: fix VIC autodetect

2016-07-17 Thread Hans Verkuil
The adv7511 will automatically fill in the VIC code in the AVI InfoFrame based on the timings of the incoming pixelport signals. However, to have this work correctly it needs to specify the fps value in a register. After doing this the proper VIC code is filled in. Signed-off-by: Hans Verkuil --

Re: [PATCH] af9035: fix dual tuner detection with PCTV 79e

2016-07-17 Thread Antti Palosaari
On 07/16/2016 11:05 PM, Stefan Pöschel wrote: Am 15.07.2016 um 08:21 schrieb Antti Palosaari: Applied and PULL requested for 4.7. Great, thanks! Anyhow, it does not apply for 4.6. You must backport that patch to 4.6 stable also! I have never done backporting before, so I need some advice I